/** Handles all commands in the view. Called by the UI framework when a command has been issued. The command Ids are defined in the .hrh file. @param aCommand The command to be executed @see CQikViewBase::HandleCommandL */ void Cayfly_s60AppView::HandleCommandL(CQikCommand& aCommand) { appui->HandleCommandL(aCommand.Id()); /*switch(aCommand.Id()) { default: CQikViewBase::HandleCommandL(aCommand); break; }*/ }
/** Handles all commands in the view Called by the UI framework when a command has been issued. The command Ids are defined in the .hrh file. @param aCommand The command to be executed @see CQikViewBase::HandleCommandL */ void CMobileOfficeImageView::HandleCommandL(CQikCommand& aCommand) { CMobileOfficeAppUi* app = (CMobileOfficeAppUi*)iEikonEnv->EikAppUi(); app->CheckDemo(); switch(aCommand.Id()) { case EMobileOfficeCmdPicture: { iEikonEnv->EikAppUi()->ActivateViewL(TVwsViewId(KUidMobileOfficeApp,KUidMobileOfficeImageView)); break; } case EMobileOfficeCmdProp: { iEikonEnv->EikAppUi()->ActivateViewL(TVwsViewId(KUidMobileOfficeApp,KUidMobileOfficePropView)); break; } case EMobileOfficeCmdOpen: { iEikonEnv->EikAppUi()->ActivateViewL(TVwsViewId(KUidMobileOfficeApp,KUidMobileOfficeEditorView)); break; } case EMobileOfficeCmdHelp: { TCoeHelpContext helpContext(KUidMobileOfficeApp,_L("Thumbnail")); CQikHelpLauncher::LaunchLD(helpContext); break; } case EMobileOfficeCmdAppAbout: { CQikSimpleDialog* dialog = new(ELeave) CQikSimpleDialog; dialog->PrepareLC(R_MY_SIMPLE_ABOUT_DIALOG); dialog->RunL(); CleanupStack::PopAndDestroy(dialog); break; } case EQikCmdGoBack: { iEikonEnv->EikAppUi()->ActivateViewL(TVwsViewId(KUidMobileOfficeApp,app->OpenDocument()->NextViewID())); break; } // Go back and exit command will be passed to the CQikViewBase to handle. default: CQikViewBase::HandleCommandL(aCommand); break; } }