コード例 #1
0
// ---------------------------------------------------------------------------
// 
// ---------------------------------------------------------------------------
//
void CAiwPrintingProvider::LaunchImagePrintApplicationL()
    {
    FLOG(_L("[CAiwPrintingProvider]<<< LaunchImagePrintApplicationL"));
    TUid appuid;
    appuid.iUid = KImagePrintUID;
    if (!IsImagePrintUiRunning())
        { 
        TRAPD( err, iService = CAknLaunchAppService::NewL(
        appuid,
        this,
        NULL ));
	   
	    if ( err != KErrNone )
		   { 
		   FTRACE(FPrint(_L("[CAiwPrintingProvider] error when launch is  %d"), err ));
	       FLOG(_L("[CAiwPrintingProvider] LaunchImagePrintApplicationL  error"));
		   }   
        }
    else
        {
     	ShowNoteL(); 
		}
    
    FLOG(_L("[CAiwPrintingProvider]>>> LaunchImagePrintApplicationL"));
    }
コード例 #2
0
void CMailBoxContainer::RFileCopyDoneL(CRFileCopier* /*aObject*/,TInt aError)
{
	TBuf<100> Errbuf;
	
	if(aError == KErrNone)
	{
		StringLoader::Load(Errbuf,R_SH_STR_FILCOPIED);			
	}
	else
	{
		StringLoader::Load(Errbuf,R_SH_STR_COPFAILED);
		Errbuf.AppendNum(aError);
	}
	
	ShowNoteL(Errbuf, ETrue);
}
コード例 #3
0
/*
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
*/
void CMgAppUi::TimerExpired()
{
	if(iOkToContinue)
	{    
        if(KAppIsTrial){
        
            TBuf<255> trialBuff;
            TBool isFirstTime(EFalse);
            TInt hoursLeft(0);
            if(CTrialHandler::IsNowOkL(isFirstTime,hoursLeft)){
                CTrialHandler::SetDateNowL();
                
                trialBuff.Copy(_L("You have "));
                trialBuff.AppendNum(hoursLeft);
                trialBuff.Append(_L("hours left on your Trial."));   
                
                ShowNoteL(trialBuff);
            }else{
                trialBuff.Copy(KtxTrialSMSMessage1);
                trialBuff.Append(KtxtApplicationName);
                trialBuff.Append(KtxTrialSMSMessage2);
                trialBuff.Append(KtxTrialOviLink);
                CAknQueryDialog* dlg = CAknQueryDialog::NewL();
                if(dlg->ExecuteLD(R_QUERY,trialBuff))
                {
                    OpenOviSiteL(KtxTrialOviLink);
                }
            }
        }
    
		if(iMySplashScreen)
		{
			RemoveFromStack(iMySplashScreen);
		}
	
		if(iMainContainer)
		{
			RemoveFromStack(iMainContainer);
		}
	
		delete iMainContainer;
		iMainContainer = NULL;
	
		if(StatusPane()->CurrentLayoutResId() != R_AVKON_STATUS_PANE_LAYOUT_USUAL)
		{
			StatusPane()->SwitchLayoutL(R_AVKON_STATUS_PANE_LAYOUT_USUAL);
		}
	
		StatusPane()->DrawNow();
	
		iMainContainer = new(ELeave)CMainContainer(Cba());
		iMainContainer->SetMopParent(this);
		AddToStackL(iMainContainer);
		iMainContainer->ConstructL();
	
		delete iMySplashScreen;
		iMySplashScreen = NULL;
	}
	else
	{
		HandleCommandL(EQuickExit);
	}
}
コード例 #4
0
ファイル: CPKIDlg.cpp プロジェクト: kuailexs/symbiandump-mw3
// -----------------------------------------------------------------------------
// CPKIDialog::Note
// ?implementation_description
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
void CPKIDialog::Note( 
    MPKIDialog::TNoteType aNoteType, 
    TRequestStatus& aStatus )
    {
    ShowNoteL( aStatus, aNoteType );
    }