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);
			}
	}
// -----------------------------------------------------------------------------
// 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);	
        }
    }
// ---------------------------------------------------------
// 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;
        }
    }
}
void 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;
		}
	}
/**
 *	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]
	
	}
Ejemplo n.º 6
0
// ---------------------------------------------------------
// 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();
}
Ejemplo n.º 7
0
// ---------------------------------------------------------
// 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 );
   }
}
/**
 *	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]

}
void 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");
	}
Ejemplo n.º 10
0
void 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);
        }
    }
Ejemplo n.º 11
0
// ---------------------------------------------------------
// 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;
    }
void 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();
		}
	}
}
Ejemplo n.º 13
0
void CTTGPSLoggerViewerView::DoDeactivate()
    {
    if (iContainer)
        {
        AppUi()->RemoveFromStack(iContainer);
        if (static_cast<CTTGPSLoggerAppUi*>(AppUi())->Engine())
            {
            static_cast<CTTGPSLoggerAppUi*>(AppUi())->Engine()->DeletePositionObserver(iContainer);
            }
        delete iContainer;
        iContainer = NULL;
        }
    }
void CDirectPrintPreviewView::DoDeactivate()
	{
	LOG("CDirectPrintPreviewView::DoDeactivate BEGIN");
	AppUi()->RemoveFromViewStack(*this, iPrevCtrl);
	if (iPrevCtrl)
		{
		CDirectPrintAppAppUi* appui = static_cast<CDirectPrintAppAppUi*>( AppUi() );
		CDirectPrintEngine* engine = appui->Engine();
		engine->EndPrintPreview();
		delete iPrevCtrl;
		iPrevCtrl = NULL;
		}
	LOG("CDirectPrintPreviewView::DoDeactivate END");
	}
Ejemplo n.º 15
0
void 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;
        }
    }
Ejemplo n.º 16
0
// ---------------------------------------------------------
// 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 );
        }
   }
Ejemplo n.º 17
0
void CCSMainView::DoDeactivate()
{
    CEikButtonGroupContainer* cba = AppUi()->Cba();
    if ( cba != NULL ) {
        cba->MakeVisible( ETrue );
        cba->DrawDeferred();
    }

    if ( iContainer != NULL ) {
        AppUi()->RemoveFromStack( iContainer );
        delete iContainer;
        iContainer = NULL;
    }
}
// ---------------------------------------------------------
// 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;
		}
    }
}
Ejemplo n.º 19
0
void 
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();
   }
   
}
Ejemplo n.º 20
0
// ---------------------------------------------------------------------------
// 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 );

    }
Ejemplo n.º 21
0
// ---------------------------------------------------------
// 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;
            }
        }
    }
void CStatusView::DynInitMenuPaneL(
		 TInt aResourceId,CEikMenuPane* aMenuPane)
{
	CALLSTACKITEM_N(_CL("CStatusView"), _CL("DynInitMenuPaneL"));

	AppUi()->DynInitMenuPaneL(aResourceId, aMenuPane);
}
void CNormalSettingView::HandleCommandL(TInt aCommand)
	{
	switch (aCommand)
		{
		case EAknSoftkeyOk:
			if (iContainer)
				{
				iContainer->StoreSettingsL();
				if (iContainer->IsChange())
					{
					//¶Ô»°¿ò 
					if (ShowConfirmationQueryL(R_CONFIRM_SAVE_CONFIG))
						{
						TInt result = iContainer->SaveConfig();
						if ( (result & KCfgChangeFrequency) != 0)
							OKCChangeView(EThemeChangeAppViewId,EThemeChangeSettingView,KMsgCfgChange);
						else
							OKCChangeView(EThemeChangeAppViewId);
						}
					}
				else
					OKCChangeView(EThemeChangeAppViewId);
				}
			break;
		case EAknSoftkeyBack:
			OKCChangeView(EThemeChangeAppViewId);
			break;
		default:
			AppUi()->HandleCommandL(aCommand);
		}
	}
Ejemplo n.º 24
0
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
//
void CMnrpNaviView::DoActivateL(
    const TVwsViewId& /*aPrevViewId*/,
    TUid /* aCustomMessageId */,
    const TDesC8& /* aCustomMessage */)
    {
    if ( !iControl )
        {
        iControl = CMnrpNaviControl::NewL( *this, ClientRect(), iEngine );
        iControl->SetMopParent( this );
        }

    if ( iDestination )
        {
        iControl->UpdateModelL( *iDestination );
        }

    // Enable receiving of keyboard events.
    CMnrpAppUi* ui = ( CMnrpAppUi* ) AppUi();
    ui->AddToStackL( *this, iControl );

    _LIT( KNavigation, "Navigation" );
    ui->SetNaviPaneTitleL( KNavigation );

    // Make view visible.
    iControl->MakeVisible( ETrue );
    }
Ejemplo n.º 25
0
// ---------------------------------------------------------------------------
// Symbian 2nd Constructor
// ---------------------------------------------------------------------------
//
void CBCTestSkinsView::ConstructL()
    {
    BaseConstructL( R_BCTESTSKINS_VIEW );

    iContainer = new( ELeave ) CBCTestSkinsContainer();
    iContainer->SetMopParent( this );
    iContainer->ConstructL( ClientRect() );
    AppUi()->AddToStackL( *this, iContainer );
    iContainer->MakeVisible( ETrue );

    iTestUtil = CBCTestUtil::NewL();

    // Add test case here.
    iTestUtil->AddTestCaseL( CBCTestDrawUtilsCase::NewL( iContainer ),
        _L("Test CBCTestDrawUtilsCase") );
    iTestUtil->AddTestCaseL( CBCTestEffectQueueCase::NewL( iContainer ),
        _L("Test CBCTestEffectQueueCase") );
    iTestUtil->AddTestCaseL( CBCTestBmpAnimCase::NewL( iContainer ),
        _L("Test CBCTestBmpAnimCase") );
    iTestUtil->AddTestCaseL( CBCTestUtilsCase::NewL( iContainer ),
        _L("Test CBCTestUtilsCase") );
    iTestUtil->AddTestCaseL( CBCTestEffectCmdCase::NewL( iContainer ),
        _L("Test CBCTestEffectCmdCase") );

    }
void CDirectPrintPrinterSettingView::DoDeactivate()
	{
	LOG("CDirectPrintPrinterSettingView::DoDeactivate BEGIN");
	iListBox->MakeVisible(EFalse);
	AppUi()->RemoveFromViewStack(*this, iListBox);
	LOG("CDirectPrintPrinterSettingView::DoDeactivate END");
	}
Ejemplo n.º 27
0
// ---------------------------------------------------------
// CSecModUIViewBase::DoActivateL(...)
// 
// ---------------------------------------------------------
//
void CSecModUIViewBase::DoActivateL(
   const TVwsViewId& aPrevViewId,TUid /*aCustomMessageId*/,
   const TDesC8& /*aCustomMessage*/)
    {
    LOG_ENTERFN("CSecModUIViewBase::DoActivateL()");   
    if (KNullUid == iPrevViewId.iViewUid)
        {
        iPrevViewId = aPrevViewId;
        }
    SetTitlePaneL();
    AddNaviPaneLabelL();
                    
    if (!iContainer)
        {
        CreateContainerL();
        iContainer->SetMopParent(this);
        iContainer->ConstructL(ClientRect());
        iContainer->ListBox().SetListBoxObserver(this);
        AppUi()->AddToStackL(*this, iContainer);
        }         
   iContainer->ListBox().SetTopItemIndex( iTopItem );
   //the iCurrentPostion can be -1, if no keystore presents.
   if ( iCurrentPosition >= 0 )
       {
       iContainer->ListBox().SetCurrentItemIndex( iCurrentPosition ); 	
       } 
   iContainer->MakeVisible(ETrue);
   iContainer->SetRect(ClientRect());
   iContainer->ActivateL();
   
   
   LOG_LEAVEFN("CSecModUIViewBase::DoActivateL()");    
   }
void CThemeChangeAppView::HandleCommandL(TInt aCommand)
	{
	switch (aCommand)
		{
		case ECommandChoose:
			if (iContainer)
				iContainer->Selected();
			break;
		case ECommandRemove:
			if (iContainer)
				iContainer->UninstallL();
			break;
		case ECommandStart:
			if (iContainer)
				iContainer->StartServer();
			break;
		case ECommandStop:
			if (iContainer)
				iContainer->StopServer();
			break;		
		case ECommandSettingTheme:
		case ECommandSettingService:
			break;
		case ECommandRegister:
			if (iContainer)
				iContainer->StartPaymentWaitDlg();
			break;
		default:
			AppUi()->HandleCommandL(aCommand);
		}
	}
void CBuddycloudAccountSettingsView::DoDeactivate() {
	if (iList) {
		AppUi()->RemoveFromViewStack(*this, iList);
		delete iList;
		iList = NULL;
	}
}
	void RemoveContainerL()
	{
		if ( iContainer )
			{
				AppUi()->RemoveFromViewStack( *this, iContainer );
			}

		RPointerArray<MSettingFactory> deactivated;		
		for (TInt ordinal = 0; ordinal < iItemDefs.Count(); ordinal++)
			{
				TItemDef def = iItemDefs[ ordinal ];

				MSettingFactory* factory = def.iFactory;
				
				if ( deactivated.Find( factory) == KErrNotFound )
					{
						factory->DeactivateL();
						deactivated.AppendL( factory );
					}
			}
		deactivated.Close();


		delete iListbox;
		iListbox = NULL;
		
		if ( iSettingItemArray )
			iSettingItemArray->ResetAndDestroy();
		delete iSettingItemArray;
		iSettingItemArray = NULL;
		
		delete iContainer;
		iContainer = NULL;
	}