void MainWindow::TriggerTypeChanged()
{
    if (triggerType1->isChecked()) emit SetTriggerType(0);
    else if (triggerType2->isChecked()) emit SetTriggerType(1);
    else if (triggerType3->isChecked()) emit SetTriggerType(2);
    else if (triggerType4->isChecked()) emit SetTriggerType(3);
    else if (triggerType5->isChecked()) emit SetTriggerType(4);
}
// -----------------------------------------------------------------------------
// COMASuplTriggeredStart::CloneL() 
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//              
EXPORT_C void COMASuplTriggeredStart::Clone(const COMASuplAsnMessageBase* aTrigStart,TInt& aErrorCode)
    {
    TRAP(aErrorCode, CloneBaseL(aTrigStart,aErrorCode));
    COMASuplTriggeredStart* trigStart = (COMASuplTriggeredStart*)aTrigStart;
    
    TOMASuplQop suplQop;
    if(trigStart->GetQop(suplQop) == KErrNone)
        SetQop(suplQop);
    
    COMASuplTriggeredStart::TOMASuplTrigStartCauseCode causeCode;
    if(trigStart->GetCauseCode(causeCode) == KErrNone)
        SetCauseCode(causeCode);
    if(trigStart->ieCID)
        {
        TOMASuplECellInfo mmCellInfo;
        trigStart->GetECellId(mmCellInfo);
        SetECellId(mmCellInfo);
        ieCID = trigStart->ieCID;
        }
    
    COMASuplSETCapabilitiesVer2* sETCapabilities = NULL; 
    trigStart->GetSETCapabilities(sETCapabilities);
    if(sETCapabilities)
        TRAP(aErrorCode,iSETCapabilities = sETCapabilities->CloneL());

    COMASuplLocationIdVer2* locationId = NULL; 
    trigStart->GetLocationId(locationId);
    if(locationId)
        TRAP(aErrorCode,SetLocationId(locationId->CloneL()));
 
    TBuf8<KVer> ver;
    trigStart->GetVer(ver);
    SetVer(ver);
    

    COMASuplMultipleLocIds* multipleLocIds = NULL;
    trigStart->GetMultipleLocIds(multipleLocIds);
    if(multipleLocIds)
        TRAP(aErrorCode,SetMultipleLocIds(multipleLocIds->CloneL()));
    
    COMASuplThirdPartyIds* thirdparty = NULL; 
    trigStart->GetThirdParty(thirdparty);
    if(thirdparty)
        TRAP(aErrorCode,SetThirdParty(thirdparty->CloneL()));
    
    TOMASuplTrigType trigType; 
    if(trigStart->GetTriggerType(trigType) == KErrNone)
        SetTriggerType(trigType);

    TOMASuplTriggerParams      triggerParams;
    if(trigStart->GetTriggerParams(triggerParams) == KErrNone)
        SetTriggerParams(triggerParams);
    
    COMASuplPosition*          position; //optional parameter
    trigStart->GetPosition(position);
    if(position)
        TRAP(aErrorCode,SetPosition(static_cast <COMASuplPosition*> (position->CloneL())));
        
    TOMASuplReportingCap       reportingCap; 
    if(trigStart->GetReportingCaps(reportingCap) == KErrNone)
        SetReportingCaps(reportingCap);    
    
    }