commondrm/drmutility/inc/DrmUtilityGlobalNoteWrapper.h
branchRCL_3
changeset 32 457cd4423b8c
parent 0 95b198f216e5
child 71 1221b68b8a5f
--- a/commondrm/drmutility/inc/DrmUtilityGlobalNoteWrapper.h	Tue Apr 27 16:56:11 2010 +0300
+++ b/commondrm/drmutility/inc/DrmUtilityGlobalNoteWrapper.h	Tue May 11 16:28:38 2010 +0300
@@ -23,6 +23,7 @@
 //  INCLUDES
 #include <e32base.h>
 #include <stringresourcereader.h>
+#include <AknGlobalMsgQuery.h>
 
 namespace DRM 
 {
@@ -102,6 +103,16 @@
         	            TInt aValuePos = -1 );
         	            
         /**
+        * Asynchronous wrapper for showing global message query.
+        * @param aMessageResourceId resource id of string to be displayed
+        * @param aHeaderResourceId resource id of header to be displayed in the query
+        * @param aString string that replaces %U in resource string        
+        */            
+        void ShowMessageQueryL(TInt aMessageResourceId,
+    													TInt aHeaderResourceId,
+    													const TDesC& aString);
+        	            
+        /**
         * Synchronous wrapper for showing global  preview list query.
         * @param aTextResourceId resource id of preview structure to be
         *        displayed
@@ -147,6 +158,13 @@
         
         // Resource id of buttons in confirmation query
         TInt iButtonsId;
+        
+        // AVKON Global message query, used in method ShowMessageQueryL, activated asynchronously so needs to be owned
+        CAknGlobalMsgQuery* iGlobalMsgQuery;
+        // Message buffer for the global message query, contains dialog text with replaced string
+        TBuf<KDRMNoteBufferMaxSize + KMaxFileName> iFinalMessageBuffer;
+        // Message buffer for the global message query header text
+        TBuf<KDRMNoteBufferMaxSize> iHeaderBuffer;
     };
 
 }