diff -r 04da681812a9 -r 457cd4423b8c commondrm/drmutility/src/DrmUtilityGlobalNoteWrapper.cpp --- a/commondrm/drmutility/src/DrmUtilityGlobalNoteWrapper.cpp Tue Apr 27 16:56:11 2010 +0300 +++ b/commondrm/drmutility/src/DrmUtilityGlobalNoteWrapper.cpp Tue May 11 16:28:38 2010 +0300 @@ -21,6 +21,7 @@ #include #include #include +#include #include #include // EAknSoftkeyNo #include @@ -89,6 +90,7 @@ DRM::CDrmUtilityGlobalNoteWrapper::~CDrmUtilityGlobalNoteWrapper() { Cancel(); // Cancel active object + delete iGlobalMsgQuery; } // ----------------------------------------------------------------------------- @@ -182,6 +184,32 @@ } // ----------------------------------------------------------------------------- +// CDrmUtilityGlobalNoteWrapper::ShowNoteL +// ----------------------------------------------------------------------------- +// +void DRM::CDrmUtilityGlobalNoteWrapper::ShowMessageQueryL( + TInt aMessageResourceId, + TInt aHeaderResourceId, + const TDesC& aString) + { + TBuf messageBuffer( + iResourceReader->ReadResourceString( aMessageResourceId ) ); + + StringLoader::Format( iFinalMessageBuffer, messageBuffer, -1, aString ); + + iHeaderBuffer = iResourceReader->ReadResourceString( aHeaderResourceId ); + + CAknGlobalMsgQuery* iGlobalMsgQuery = CAknGlobalMsgQuery::NewL(); + + iStatus = KRequestPending; + iGlobalMsgQuery->ShowMsgQueryL(iStatus, iFinalMessageBuffer, + R_AVKON_SOFTKEYS_OK_EMPTY, iHeaderBuffer, KNullDesC); + + SetActive(); + iWait.Start(); + } + +// ----------------------------------------------------------------------------- // CDrmUtilityGlobalNoteWrapper::ShowPreviewListQueryL // ----------------------------------------------------------------------------- // @@ -305,6 +333,10 @@ void DRM::CDrmUtilityGlobalNoteWrapper::RunL() { iWait.AsyncStop(); + if(iGlobalMsgQuery) + { + iGlobalMsgQuery->CancelMsgQuery(); + } } // -----------------------------------------------------------------------------