/** * Handle a command for this view (override) * @param aCommand command id to be handled */ void CVoIPListBoxView::HandleCommandL(TInt aCommand) { switch (aCommand) { case EAknSoftkeyBack: { AppUi()->HandleCommandL(aCommand); break; } case EEikCmdExit: { AppUi()->HandleCommandL(aCommand); break; } case EVoIPExitMenuItemCommand: { AppUi()->HandleCommandL(aCommand); break; } case EVoIPOpenMenuItemCommand: { DoEditL(); break; } case EVoIPEditMenuItemCommand: { DoEditL(); break; } case EVoIPVoiceCallMenuItemCommand: { DoVoiceCall(); //bring main window back to foreground RWsSession& wsSession = CEikonEnv::Static()->WsSession(); TApaTask task(wsSession); task.SetWgId(CEikonEnv::Static()->RootWin().Identifier()); task.BringToForeground(); break; } case EVoIPInternetCallMenuItemCommand: { DoInternetCall(); //bring main window back to foreground RWsSession& wsSession = CEikonEnv::Static()->WsSession(); TApaTask task(wsSession); task.SetWgId(CEikonEnv::Static()->RootWin().Identifier()); task.BringToForeground(); break; } case EVoIPTextMessageMenuItemCommand: { DoSMS(); break; } case EVoIPMultimediaMessageMenuItemCommand: { DoMMS(); break; } case EVoIPNewContactMenuItemCommand: { DoNewL(); break; } case EVoIPDeleteMenuItemCommand: { DoDeleteL(); break; } case EVoIPHelpMenuItemCommand: { break; } case EVoIPAboutMenuItemCommand: { break; } case EVoIPSIPStartMenuItemCommand: { DoSIPStart(); break; } case EVoIPSIPStopMenuItemCommand: { DoSIPStop(); break; } case EVoIPSIPSettingsMenuItemCommand: { AppUi()->ActivateLocalViewL(TUid::Uid( ESymbian_ua_guiSettingItemListViewId)); break; } default: AppUi()->HandleCommandL(aCommand); break; } }
// perform the file operations void CFileOperator::DoChangesL() { while(*iCurrentOp != EOpEnd) { TestStepPrepare(*iCurrentOp); if (iOption & ENoNotify) { iLoggers[0]->MeasureStart(); } else { iSmphS->Signal(iNumCli); // Signal notification threads that preparation is done WaitForSignalsAll(); // Wait for notification threads to finish requesting notifications MesureStartsAll(); } RDebug::Print(_L("Start Timing and File operations...")); switch(*iCurrentOp) { case EOpCreate: DoCreateL(); break; case EOpReplace: DoReplaceL(); break; case EOpChgAttr: DoChangeAttL(); break; case EOpRename: DoRenameL(); break; case EOpWrite: DoWriteL(); break; case EOpResize: DoResizeL(); break; case EOpDelete: DoDeleteL(); break; case EOpManyChanges: DoManyChangesOnSingleFileL(); break; case EOpManyFiles: DoSmallChangesOnManyFilesL(); break; case EOpCreateDir: DoCreateDirL(); break; case EOpRenameDir: DoRenameDirL(); break; case EOpDeleteDir: DoDeleteDirL(); break; case EOpMixed: DoMixedOperationsL(); break; default: User::Leave(KErrArgument); } RDebug::Print(_L("File Operation Ended...")); if (iOption & ENoNotify) { RDebug::Print(_L("Timing ended...")); iLoggers[0]->MeasureEnd(); iLoggers[0]->LogTestStepTime(*iCurrentOp, iNumFiles); } else { RFile file; TFileName endFile(gLogFilePath); endFile.Append(_L("test.end")); TInt r = file.Replace(iFs, endFile, EFileWrite); SAFETEST0(r == KErrNone); file.Close(); WaitForSignalsAll(); // Wait for notification threads to receive all the notifications } TestStepFinish(*iCurrentOp); iCurrentOp++; } }