TBool CConverterDialog::OkToExitL(TInt aKeycode) { CEikChoiceList* typesList = static_cast<CEikChoiceList*>(Control(ECvtTypeField)); iTargetType = typesList->Array()->MdcaPoint(typesList->CurrentItem()); // if format options button pressed, show dialog if (aKeycode == EFormatOptions) { if (CFormatOptionsDialog::RunDlgLD(iFileName, iTargetType, iMediaClientEngine, iFormatOptions)) iOptionsSetFor = typesList->CurrentItem(); return EFalse; } return ETrue; }
TBool CRecordDialog::OkToExitL(TInt aKeycode) { _LIT(KRecordFile, "c:\\record-output"); CEikChoiceList* typesList = static_cast<CEikChoiceList*>(Control(ECvtTypeField)); iFileName = KRecordFile; TPtrC type = typesList->Array()->MdcaPoint(typesList->CurrentItem()); iFileName.Append(type); // if format options button pressed, show dialog if (aKeycode == EFormatOptions) { if (CRecordFormatOptionsDialog::RunDlgLD(type, iMediaClientEngine, iRecordFormatOptions)) iOptionsSetFor = typesList->CurrentItem(); return EFalse; } return ETrue; }