本文整理汇总了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);
}
}
示例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);
}
}
}
示例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
}
示例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
//.........这里部分代码省略.........