当前位置: 首页>>代码示例>>C++>>正文


C++ CAknMessageQueryDialog::ExecuteLD方法代码示例

本文整理汇总了C++中CAknMessageQueryDialog::ExecuteLD方法的典型用法代码示例。如果您正苦于以下问题:C++ CAknMessageQueryDialog::ExecuteLD方法的具体用法?C++ CAknMessageQueryDialog::ExecuteLD怎么用?C++ CAknMessageQueryDialog::ExecuteLD使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CAknMessageQueryDialog的用法示例。


在下文中一共展示了CAknMessageQueryDialog::ExecuteLD方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: PropertiesL

void CCdlExplorerContainer::PropertiesL()
	{
	CCdlExplorable* selected = CurrentSelected();
	if (selected)
		{
		TBuf<256> buf;
		selected->Properties(buf);
		CAknMessageQueryDialog* dialog = new (ELeave) CAknMessageQueryDialog;
		dialog->SetMessageTextL(buf);
		dialog->ExecuteLD(R_PROPERTIES_MESSAGE_QUERY);
		}
	}
开发者ID:cdaffara,项目名称:symbiandump-mw4,代码行数:12,代码来源:CdlExplorerContainer.cpp

示例2: HandleCommandL

void CBuddycloudCommunitiesContainer::HandleCommandL(TInt aCommand) {
	if(aCommand == EMenuEditItemCommand) {
		HandleItemSelectionL(iList->CurrentItemIndex());
	}
	else if(aCommand == EMenuDeleteCommand) {
		CAknMessageQueryDialog* aDialog = new (ELeave) CAknMessageQueryDialog();

		if(aDialog->ExecuteLD(R_DELETE_DIALOG) != 0) {
			iBuddycloudLogic->GetDescSetting(ESettingItemTwitterUsername).Zero();
			iBuddycloudLogic->GetDescSetting(ESettingItemTwitterPassword).Zero();
			
			iBuddycloudLogic->SendCommunityCredentials(ECommunityTwitter);
		}
	}
}
开发者ID:Persepoliss,项目名称:symbian-client,代码行数:15,代码来源:BuddycloudCommunitiesContainer.cpp

示例3: DisplayQueryOrNoteL

TBool CMLauncherAppUi::DisplayQueryOrNoteL(TMsgType aMsgType,TInt aTextResource,TInt aHeaderResource/*=-1*/,TInt aDlgResource/*=-1*/)
{
	switch(aMsgType)
	{
	case EMsgNotePersistent:aMsgType=EMsgBigNote;aHeaderResource=R_NOTE_HEADER;break;
	case EMsgWarningPersistent:aMsgType=EMsgBigNote;aHeaderResource=R_WARNING_HEADER;break;
	case EMsgErrorPersistent:aMsgType=EMsgBigNote;aHeaderResource=R_ERROR_HEADER;break;
	default:break; //to avoid a warning
	};
	
	switch(aMsgType)
	{
	case EMsgQueryYesNo:
	{
		CAknQueryDialog *dlgQuery=CAknQueryDialog::NewL();
		CleanupStack::PushL(dlgQuery);
		HBufC* queryPrompt=StringLoader::LoadLC(aTextResource);
		dlgQuery->SetPromptL(*queryPrompt);
		CleanupStack::PopAndDestroy(queryPrompt);
		CleanupStack::Pop(dlgQuery);
		return dlgQuery->ExecuteLD(R_QUERY_CONFIRMATION);
	};break;
	case EMsgBigNote:
	{
		HBufC* text=StringLoader::LoadLC(aTextResource);
		HBufC* header=StringLoader::LoadLC(aHeaderResource);
		CAknMessageQueryDialog* dlg = new (ELeave)CAknMessageQueryDialog(text,header);//takes ownership of text and header
		CleanupStack::Pop(2,text);
		if(aDlgResource<=0)aDlgResource=R_MSG_BIG_NOTE;
		dlg->ExecuteLD(aDlgResource);
	};break;
	
	default:
		Panic(EUnrecognizedMsgType);
	};//switch
	return EFalse; //so that we do not get a warning
}
开发者ID:lohanf,项目名称:MLauncher,代码行数:37,代码来源:MLauncherAppUi.cpp

示例4: IdleWorker

TInt CMLauncherAppUi::IdleWorker()
{
	//LOG(ELogGeneral,1,"CMLauncherAppUi::IdleWorker: start");
	TInt otherJobs(EFalse);
	//TInt err(0);
	
	if(iMusicPlayerView && iCurrentView==iMusicPlayerView && iMusicPlayerView->IsImgProcessingOngoing())
	{
		iMusicPlayerView->iFlags|=CMusicPlayerView::EReactivateCIdleAfterImgProcessingEnds;
		iIdle->Cancel();
		LOG0("CMLauncherAppUi::IdleWorker: end (cancelled because ImgEngine is active!)");
		return 0; //no more work to do
	}
	iJobs|=EDoingJobs; //this is so that we do not re-schedule the CIdle AO during some job
	
	if(iJobs&EJobDisplayMessage)
	{
		LOG0("CMLauncherAppUi::IdleWorker: Displaying msg ...");
		//we have to display a message
		if(iDlgMsg)
		{
			CAknMessageQueryDialog *dlgMsg=iDlgMsg;
			iDlgMsg=NULL;
			dlgMsg->ExecuteLD(R_MESSAGE_DLG_OK_EMPTY);
		};

		if(iDlgNote)
		{
			CAknResourceNoteDialog *dlgNote=iDlgNote;
			iDlgNote=NULL;
			dlgNote->ExecuteLD(*iDlgNoteString);
			delete iDlgNoteString;
			iDlgNoteString=NULL;
		};
		iJobs&=~EJobDisplayMessage;
		LOG0("Displaying msg done!");
	}
	else if(iJobs&EJobClean)
	{
		LOG0("CMLauncherAppUi::IdleWorker: Cleaning ...");
		//we have to clean the Comm stuff
		CCommSender::DeleteInstance();
		if(iFlags&EDeleteBtKeepListening)
			CCommReceiver::GetInstanceL()->Clean(ETrue);
		else
			CCommReceiver::DeleteInstance();
		iJobs&=~EJobClean;
		LOG0("Cleaning done!");
	}
	else if(iMusicPlayerView && iCurrentView==iMusicPlayerView && iMusicPlayerView->iJobs)
		otherJobs|=iMusicPlayerView->IdleWorker();
	else if(iListView && iCurrentView==iListView && iListView->iJobs)
		otherJobs|=iListView->IdleWorker();
	else if(iJobs & EJobSubfolders)
	{
		//LOG0("CMLauncherAppUi::IdleWorker:  subfolders"); 
		__ASSERT_ALWAYS(MyDoc().iFilesTree->iCurrentParent,Panic(ECurrentParentIsNull));
		TBool update(EFalse);
		if(iIi==-1)
			iIi=0; //we are just started
		if(iIi<MyDoc().iFilesTree->iCurrentParent->ChildrenCount())
		{
			if(MyDoc().iFilesTree->MakeChildren(&(*MyDoc().iFilesTree->iCurrentParent->iChildren)[iIi]))
			{
				iFlags|=EListViewNeedsUpdatingProperties;
				//LOG0("Subfolder job: created some children"); 
			}
			iIi++;
			//update the view from time to time
			if((iFlags&EListViewNeedsUpdatingProperties) && !(iIi % KItemsUpdateView))
				update=ETrue;
		}
		else
		{
			//we are finishing
			iIi=-1;
			iJobs-=EJobSubfolders;
			if(iFlags&EListViewNeedsUpdatingProperties)
			{
				iFlags&=~EListViewNeedsUpdatingProperties;
				update=ETrue;
			};
		};
		if(update && iListView)
			iListView->CurrentListChanged(CFFListView::EProperties);
	}
	else if(iJobs & EJobStartDiscoveringSourcesAndParsingMetadata)
	{
		if(MyDoc().iPreferences->iCFlags&CMLauncherPreferences::ENoPreferencesFileFound)
		{
			HBufC* text(NULL);
#ifdef __TOUCH_ENABLED__
			if(AknLayoutUtils::PenEnabled())
				text=StringLoader::LoadLC(R_FFLIST_HELP_TEXT_TOUCH);
			else
#endif
				text=StringLoader::LoadLC(R_FFLIST_HELP_TEXT_NONTOUCH);

			HBufC* header=StringLoader::LoadLC(R_FFLIST_HELP_HEADER);
			CAknMessageQueryDialog* dlg = new (ELeave)CAknMessageQueryDialog(text,header);//takes ownership of text and header
//.........这里部分代码省略.........
开发者ID:lohanf,项目名称:MLauncher,代码行数:101,代码来源:MLauncherAppUi.cpp


注:本文中的CAknMessageQueryDialog::ExecuteLD方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。