这篇教程C++ AppUi函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中AppUi函数的典型用法代码示例。如果您正苦于以下问题:C++ AppUi函数的具体用法?C++ AppUi怎么用?C++ AppUi使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了AppUi函数的27个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: HandleCommandL void HandleCommandL(TInt aCommand) { CALLSTACKITEM_N(_CL("CDynamicSettingsViewImpl"), _CL("HandleCommandL")); switch ( aCommand ) { case EContextUICmdSettingsChange: { ShowSettingPageL( ETrue ); } break; case EContextUICmdResetUiState1: { Settings().WriteSettingL( SETTING_DONT_DOUBLE_CONFIRM_DELETES, 0 ); Settings().WriteSettingL( SETTING_SHOW_WARNING_ON_BACK, 1 ); } break; case EContextUICmdSettingsSave: StoreSettingsL(); break; case EAknSoftkeyOk: case EAknSoftkeyDone: case EAknSoftkeyBack: StoreSettingsL(); if (iPreviousLocalViewId==TUid::Uid(0)) { AppUi()->ActivateViewL(iPreviousViewId); } else { AppUi()->ActivateLocalViewL(iPreviousLocalViewId); } break; default: AppUi()->HandleCommandL(aCommand); } }
开发者ID:flaithbheartaigh,项目名称:jaikuengine-mobile-client,代码行数:34,
示例2: switch// -----------------------------------------------------------------------------// CAknExGridView::HandleCommandL()// Handles the commands.// -----------------------------------------------------------------------------//void CNoughtsAndCrossesSettingsView::HandleCommandL (TInt aCommand) { switch (aCommand) { case EAknSoftkeyOk: { CNoughtsAndCrossesDocument* document = static_cast< CNoughtsAndCrossesDocument*> (AppUi()->Document()); iListBox->StoreSettingsL(); document->SaveSettingsAndInformationL(); document->NewGame(); AppUi()->ActivateLocalViewL (TUid::Uid (EMultiViewsPlayGameId)); break; } case EAknSoftkeyCancel: { AppUi()->ActivateLocalViewL (TUid::Uid (EMultiViewsPlayGameId)); break; } default: AppUi()->HandleCommandL (aCommand); } }
开发者ID:fedor4ever,项目名称:packaging,代码行数:30,
示例3: switch// ---------------------------------------------------------// CSymTorrentIAPSelectView::HandleCommandL(TInt aCommand)// takes care of view command handling// ---------------------------------------------------------//void CSymTorrentIAPSelectView::HandleCommandL(TInt aCommand){ switch ( aCommand ) { case EAknSoftkeySelect: case EAknSoftkeyOk: { if (iContainer->CurrentItemIndex() >= 0) DOCUMENT->SetIAPIDL(iIAPIDs[iContainer->CurrentItemIndex()]); AppUi()->ActivateLocalViewL(KMainViewId); break; } case EAknSoftkeyCancel: case EAknSoftkeyBack: { AppUi()->ActivateLocalViewL(KMainViewId); break; } default: { break; } }}
开发者ID:Nokia700,项目名称:SymTorrent,代码行数:31,
示例4: switchvoid CDirectPrintPrinterSettingView::HandleCommandL(TInt aCommand) { switch (aCommand) { case EAknSoftkeyBack: { iListBox->StoreSettingsL(); StoreDriverInfoL(); StoreTypeInfoL(); StoreBearerInfoL(); StoreExtendSettingsL(); WriteDataL(); // write to model GetBearerMgr()->SetJobSettings(); // write to bearer GetModel().SetIsNewData(EFalse); AppUi()->HandleCommandL(EDirectPrintCmdIdPrinterSettingViewBack); } break; default: { AppUi()->HandleCommandL(aCommand); } break; } }
开发者ID:cdaffara,项目名称:symbiandump-ossapps,代码行数:25,
示例5: SetupStatusPaneL/** * Handles user actions during activation of the view, * such as initializing the content. */void Csymbian_ua_guiSettingItemListView::DoActivateL( const TVwsViewId& aPrevViewId, TUid /*aCustomMessageId*/, const TDesC8& /*aCustomMessage*/ ) { previousView = aPrevViewId.iViewUid; SetupStatusPaneL(); CEikButtonGroupContainer* cba = AppUi()->Cba(); if ( cba != NULL ) { cba->MakeVisible( EFalse ); } if ( iSymbian_ua_guiSettingItemList == NULL ) { iSettings = TSymbian_ua_guiSettingItemListSettings::NewL(); CVoIPDocument* doc = static_cast<CVoIPDocument*>(CEikonEnv::Static()->EikAppUi()->Document()); doc->LoadSettingValuesL(*iSettings); iSymbian_ua_guiSettingItemList = new ( ELeave ) CSymbian_ua_guiSettingItemList( *iSettings, this ); iSymbian_ua_guiSettingItemList->SetMopParent( this ); iSymbian_ua_guiSettingItemList->ConstructFromResourceL( R_SYMBIAN_UA_GUI_SETTING_ITEM_LIST_SYMBIAN_UA_GUI_SETTING_ITEM_LIST ); iSymbian_ua_guiSettingItemList->ActivateL(); //iSymbian_ua_guiSettingItemList->LoadSettingValuesL(); iSymbian_ua_guiSettingItemList->LoadSettingsL(); AppUi()->AddToStackL( *this, iSymbian_ua_guiSettingItemList ); } // ]]] end generated region [Generated Contents] }
开发者ID:bohwaz,项目名称:s60voip,代码行数:38,
示例6: new// ---------------------------------------------------------// CSymTorrentStatusView::DoActivateL(...)// // ---------------------------------------------------------//void CSymTorrentStatusView::DoActivateL( const TVwsViewId& /*aPrevViewId*/,TUid /*aCustomMessageId*/, const TDesC8& /*aCustomMessage*/){ static_cast<CSymTorrentAppUi*>(AppUi())->SetCurrentViewId(ESymTorrentStatusView); if (!iStatusContainer) { iStatusContainer = new (ELeave) CSymTorrentStatusContainer; iStatusContainer->SetMopParent(this); iStatusContainer->ConstructL( ClientRect(), iAppUi, iTorrentMgr ); AppUi()->AddToStackL( *this, iStatusContainer ); if (PREFERENCES->RightSoftkeyMode() == ESTSoftkeyHide) { Cba()->SetCommandL(2, ESymTorrentCmdHide, KLitHideButtonText); Cba()->DrawDeferred(); } else { Cba()->SetCommandL(2, EAknSoftkeyExit, KLitExitButtonText); Cba()->DrawDeferred(); } iTorrentMgr->SetEngineStateObserverL(iStatusContainer); } static_cast<CSymTorrentAppUi*>(AppUi())->TitlePane()->SetTextToDefaultL();}
开发者ID:Nokia700,项目名称:SymTorrent,代码行数:34,
示例7: switch// ---------------------------------------------------------// CSplashView::HandleCommandL(TInt aCommand)// ?implementation_description// ---------------------------------------------------------//void CSplashView::HandleCommandL(TInt aCommand){ switch ( aCommand ) { case EAknSoftkeyOk: { AppUi()->HandleCommandL( EWayFinderSoftkeyStart);/* iWayFinderUI->iIniFile->shownNewsChecksum = *//* iWayFinderUI->iIniFile->latestNewsChecksum; *//* iWayFinderUI->iIniFile->Save(); */ iWayFinderUI->iIniFile->SetShownNewsChecksum(); } break;/* case EWayFinderSoftKeyUpgrade: *//* { *//* if ( iWayFinderUI->ShowUpgradeInfoCba()) { *//* iShowUpgrade = ETrue; *//* AppUi()->HandleCommandL( EWayFinderSoftkeyStart ); *//* } *//* } */ break; default: AppUi()->HandleCommandL( aCommand ); }}
开发者ID:VLjs,项目名称:Wayfinder-S60-Navigator,代码行数:30,
示例8: SetupStatusPaneL/** * Handles user actions during activation of the view, * such as initializing the content. */void Csymbian_ua_guiSettingItemListView::DoActivateL ( const TVwsViewId& /*aPrevViewId*/, TUid /*aCustomMessageId*/, const TDesC8& /*aCustomMessage*/){ // [[[ begin generated region: do not modify [Generated Contents] SetupStatusPaneL(); CEikButtonGroupContainer* cba = AppUi()->Cba(); if (cba != NULL) { cba->MakeVisible (EFalse); } if (iSymbian_ua_guiSettingItemList == NULL) { iSettings = TSymbian_ua_guiSettingItemListSettings::NewL(); iSymbian_ua_guiSettingItemList = new (ELeave) CSymbian_ua_guiSettingItemList (*iSettings, this); iSymbian_ua_guiSettingItemList->SetMopParent (this); iSymbian_ua_guiSettingItemList->ConstructFromResourceL (R_SYMBIAN_UA_GUI_SETTING_ITEM_LIST_SYMBIAN_UA_GUI_SETTING_ITEM_LIST); iSymbian_ua_guiSettingItemList->ActivateL(); iSymbian_ua_guiSettingItemList->LoadSettingValuesL(); iSymbian_ua_guiSettingItemList->LoadSettingsL(); AppUi()->AddToStackL (*this, iSymbian_ua_guiSettingItemList); } // ]]] end generated region [Generated Contents]}
开发者ID:max3903,项目名称:SFLphone,代码行数:32,
示例9: LOGvoid CDirectPrintPreviewView::DoActivateL(const TVwsViewId& /*aPrevViewId*/, TUid /*aCustomMessageId*/, const TDesC8& /*aCustomMessage*/) { LOG("CDirectPrintPreviewView::DoActivateL BEGIN"); CAknToolbar* toolbar = AppUi()->CurrentFixedToolbar(); toolbar->SetToolbarObserver(this); // set the title pane SetActiveTitleL(R_DIRECTPRINT_PREVIEW_TITLE); if (!iPrevCtrl) { CDirectPrintAppAppUi* appui = static_cast<CDirectPrintAppAppUi*>( AppUi() ); CDirectPrintEngine* engine = appui->Engine(); const TInt KPanelGutter=5; const TInt KShadowWidth=2; const TInt KLabelFontHeight=12; TFontSpec normalFontSpec = CEikonEnv::Static()->NormalFont()->FontSpecInTwips(); TFontSpec fontSpec(normalFontSpec); fontSpec.iHeight = KLabelFontHeight; iPrintPreviewFormat.iLabelFontSpecInPixels=fontSpec; iPrintPreviewFormat.iMinPanelGutterInPixels=TSize(KPanelGutter,KPanelGutter); iPrintPreviewFormat.iPanelShadowWidthInPixels=KShadowWidth; iPrintPreviewFormat.iPanelShadowColor=KRgbDarkGray; iPrintPreviewFormat.iPanelMarginColor=KRgbGray; iPrintPreviewFormat.iLabelOffsetInPixels=5; iPrevCtrl = CDirectPrintPreviewControl::NewL(NULL); iPrevCtrl->SetMopParent(this); //iNumPagesInDoc = engine->MaxPageNum(); iNumPagesInDoc = 3; iFirstPageToDisplay = 1; iNumPagesToView = 1; iNumBands = 2; iMarginState = CPrintPreviewImage::EShowMargins; engine->StartPrintPreviewL(); iPrevCtrl->InitializeFormat(*(engine->PrintSetup()), *(engine->PageRegionPrinter()), iPrintPreviewFormat, iNumPagesInDoc, iFirstPageToDisplay, iNumPagesToView, iMarginState); iPrevCtrl->ActivateL(); iPrevCtrl->SetNumBands(2); } iPrevCtrl->SetRect(ClientRect()); iPrevCtrl->SetDrawFlag(ETrue); iPrevCtrl->MakeVisible(ETrue); iPrevCtrl->DrawDeferred(); AppUi()->AddToStackL(*this, iPrevCtrl); ChangeVisibleState(); LOG("CDirectPrintPreviewView::DoActivateL END"); }
开发者ID:cdaffara,项目名称:symbiandump-ossapps,代码行数:57,
示例10: ClientRectvoid CTTGPSLoggerViewerView::DoActivateL(const TVwsViewId& aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage) { if (!iContainer) { iContainer = CTTGPSLoggerViewerContainer::NewL(this, ClientRect()); if (static_cast<CTTGPSLoggerAppUi*>(AppUi())->Engine()) { static_cast<CTTGPSLoggerAppUi*>(AppUi())->Engine()->AddPositionObserver(iContainer); } AppUi()->AddToStackL(iContainer); } }
开发者ID:dai108tgg,项目名称:ttgpslogger,代码行数:12,
示例11: AppUi// ---------------------------------------------------------// CSymellaSettingsView::HandleCommandL(TInt aCommand)// ?implementation_description// ---------------------------------------------------------//void CSymellaSettingsView::DoDeactivate() { if ( iContainer ) { AppUi()->RemoveFromViewStack( *this, iContainer ); if (!AppUi()->View(KWebCacheViewId)->IsForeground()) static_cast<CSymellaAppUi*>(AppUi())->ShowTabGroupL(); } delete iContainer; iContainer = NULL; }
开发者ID:imrekel,项目名称:Symella,代码行数:18,
示例12: AppUivoid CBuddycloudAccountSettingsView::HandleCommandL(TInt aCommand) { if(aCommand == EAknSoftkeyDone) { AppUi()->ActivateLocalViewL(KFollowingViewId); } else if(aCommand == EMenuHelpCommand) { AppUi()->HandleCommandL(aCommand); } else if(aCommand == EMenuEditItemCommand) { if(iList) { iList->EditCurrentItemL(); } }}
开发者ID:Persepoliss,项目名称:symbian-client,代码行数:13,
示例13: AppUivoid CTTGPSLoggerViewerView::DoDeactivate() { if (iContainer) { AppUi()->RemoveFromStack(iContainer); if (static_cast<CTTGPSLoggerAppUi*>(AppUi())->Engine()) { static_cast<CTTGPSLoggerAppUi*>(AppUi())->Engine()->DeletePositionObserver(iContainer); } delete iContainer; iContainer = NULL; } }
开发者ID:dai108tgg,项目名称:ttgpslogger,代码行数:13,
示例14: switchvoid CTTGPSLoggerViewerView::HandleCommandL(TInt aCommand) { switch (aCommand) { case EEikCmdExit: case EAknSoftkeyExit: { AppUi()->Exit(); break; } case EAknSoftkeyBack: { TTGPSLoggerCommon::SetTextStatusPaneL(R_TTGP_TBUF32_STATUSPANE_TITLE_MAIN); AppUi()->ActivateLocalViewL(TUid::Uid(ETTGPSLoggerViewMainId)); break; } case ETTGPSLoggerCBACopy: case ETTGPSLoggerTBViewerCopy: { if (iContainer) { iContainer->CopyL(); } break; } case ETTGPSLoggerCBAReload: { if (iContainer) { iContainer->ReloadL(); } break; } case ETTGPSLoggerTBViewerNMEASt: { TTGPSLoggerCommon::SetTextStatusPaneL(R_TTGP_TBUF32_STATUSPANE_TITLE_NMEAVIEWER); static_cast<CTTGPSLoggerAppUi*>(CEikonEnv::Static()->EikAppUi())->ActivateLocalViewL(TUid::Uid(ETTGPSLoggerViewNMEAViewerId)); break; } case ETTGPSLoggerTBViewerGPSSt: { TTGPSLoggerCommon::SetTextStatusPaneL(R_TTGP_TBUF32_STATUSPANE_TITLE_GPSSTATUS); static_cast<CTTGPSLoggerAppUi*>(CEikonEnv::Static()->EikAppUi())->ActivateLocalViewL(TUid::Uid(ETTGPSLoggerViewGPSStatusId)); break; } default: Panic(ETTGPSLoggerUi); break; } }
开发者ID:dai108tgg,项目名称:ttgpslogger,代码行数:50,
示例15: new// ---------------------------------------------------------// CSymTorrentDetailsView::DoActivateL(...)// // ---------------------------------------------------------//void CSymTorrentDetailsView::DoActivateL( const TVwsViewId& /*aPrevViewId*/,TUid /*aCustomMessageId*/, const TDesC8& /*aCustomMessage*/) { static_cast<CSymTorrentAppUi*>(AppUi())->SetCurrentViewId(ESymTorrentDetailsView); if (!iDetailsContainer) { iDetailsContainer = new (ELeave) CSymTorrentDetailsContainer; iDetailsContainer->SetMopParent(this); iDetailsContainer->ConstructL( ClientRect(), iAppUi, iTorrentMgr ); AppUi()->AddToStackL( *this, iDetailsContainer ); } }
开发者ID:Nokia700,项目名称:SymTorrent,代码行数:19,
示例16: CALLSTACKITEM// ---------------------------------------------------------// CContextbookView::HandleCommandL(TInt aCommand)// ?implementation_description// ---------------------------------------------------------//void CContextbookView::HandleCommandL(TInt aCommand){ CALLSTACKITEM(_L("CContextbookView::HandleCommandL")); switch ( aCommand ) { case EAknSoftkeyBack: { AppUi()->HandleCommandL(EAknSoftkeyBack); break; } case EcontextbookCmdSMS: { iContainer->sms_current(); //iLog->write_time(); //iLog->write_to_output(_L("Cmd SendSMS")); //iLog->write_nl(); break; } case EcontextbookCmdNick: { if (iLog) { iLog->write_time(); iLog->write_to_output(_L("Cmd SetNick")); iLog->write_nl(); } set_nick(); break; } case EcontextbookCmdCall: { //iLog->write_time(); //iLog->write_to_output(_L("Cmd Call")); //iLog->write_nl(); iContainer->call_current(); break; } case EcontextbookCmdPresenceDetails: { iContainer->show_presence_details_current(); } break; default: { AppUi()->HandleCommandL( aCommand ); break; } }}
开发者ID:flaithbheartaigh,项目名称:jaikuengine-mobile-client,代码行数:55,
示例17: newvoid CVicinityView::DoActivateL(const TVwsViewId& aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage) { iWayFinderUI->GetNavigationDecorator()->MakeScrollButtonVisible( ETrue ); if (!iContainer) { iContainer = new (ELeave) CVicinityContainer; iContainer->SetMopParent(this); iContainer->ConstructL(ClientRect(), this, iWayFinderUI, iMapView); if( iGpsPos.lat != MAX_INT32 ) { iContainer->setGpsPos( iGpsPos, (int) iHeading360 ); } iContainer->SetDetailFetcher(m_detailFetcher); iContainer->SetFavoriteFetcher(m_favoriteFetcher); AppUi()->AddToStackL(* this, iContainer); } /* Special case for fixed point vicinity information */ if(!iWayFinderUI->IsGpsConnected()) { iContainer->ForceUpdate(); } }
开发者ID:VLjs,项目名称:Wayfinder-S60-Navigator,代码行数:29,
示例18: BaseConstructL// ---------------------------------------------------------------------------// Symbian 2nd Constructor// ---------------------------------------------------------------------------//void CBCTestAppFrmView::ConstructL(CAknViewAppUi* aUI) { BaseConstructL( R_BCTESTAPPFRM_VIEW ); iContainer = new( ELeave ) CBCTestAppFrmContainer(); iContainer->SetMopParent( this ); iContainer->ConstructL( ClientRect() ); AppUi()->AddToStackL( *this, iContainer ); iContainer->MakeVisible( ETrue ); iTestUtil = CBCTestUtil::NewL(); // Add test case here. iTestUtil->AddTestCaseL( CBCTestAknApplication::NewL(), _L("CBCTestAknApplication") ); iTestUtil->AddTestCaseL( CBCTestAknDoc::NewL(), _L("CBCTestAknDoc") ); iTestUtil->AddTestCaseL( CBCTestAknViewAppUi::NewL(aUI, Id()), _L("CBCTestAknViewAppUi") ); iTestUtil->AddTestCaseL( CBCTestEikMObserver::NewL(), _L("CBCTestEikMObserver") ); iTestUtil->AddTestCaseL( CBCTestVCursor::NewL(), _L("CBCTestVCursor") ); iTestUtil->AddTestCaseL( CBCTestEikenv::NewL( iContainer ), _L("CBCTestEikEnv") ); iTestUtil->AddTestCaseL( CBCTestAppFrmAknAppUICase::NewL(iContainer), KAppFrmAknAppUICase ); iTestUtil->AddTestCaseL( CBCTestAppFrmAknViewCase::NewL(iContainer,this), KAppFrmAknViewCase ); iTestUtil->AddTestCaseL( CBCTestAppFrmEikAppUICase::NewL(iContainer), KAppFrmEikAppUICase ); iTestUtil->AddTestCaseL( CBCTestAppFrmEikSrvCase::NewL(iContainer), KAppFrmEikSrvCase ); }
开发者ID:cdaffara,项目名称:symbiandump-mw1,代码行数:33,
示例19: switch// ---------------------------------------------------------// CSymTorrentStatusView::HandleCommandL(TInt aCommand)// takes care of view command handling// ---------------------------------------------------------//void CSymTorrentStatusView::HandleCommandL(TInt aCommand) { switch ( aCommand ) { case EAknSoftkeyBack: { iAppUi->ActivateMainViewL(); break; } case ESymTorrentCmdDownloadstate: { iAppUi->ActivateDownloadStateViewL(); break; } case ESymTorrentCmdTorrentFiles: { iAppUi->ActivateFilesViewL(); break; } default: { AppUi()->HandleCommandL( aCommand ); break; } } }
开发者ID:Nokia700,项目名称:SymTorrent,代码行数:31,
示例20: CALLSTACKITEM_Nvoid CStatusView::DynInitMenuPaneL( TInt aResourceId,CEikMenuPane* aMenuPane){ CALLSTACKITEM_N(_CL("CStatusView"), _CL("DynInitMenuPaneL")); AppUi()->DynInitMenuPaneL(aResourceId, aMenuPane);}
开发者ID:flaithbheartaigh,项目名称:jaikuengine-mobile-client,代码行数:7,
|