commondrm/drmutility/inc/DrmUtilityGlobalNoteWrapper.h
branchRCL_3
changeset 27 1481bf457703
parent 26 1221b68b8a5f
equal deleted inserted replaced
26:1221b68b8a5f 27:1481bf457703
    21 #define __DRMUTILITYGLOBALNOTEWRAPPER_H__
    21 #define __DRMUTILITYGLOBALNOTEWRAPPER_H__
    22 
    22 
    23 //  INCLUDES
    23 //  INCLUDES
    24 #include <e32base.h>
    24 #include <e32base.h>
    25 #include <stringresourcereader.h>
    25 #include <stringresourcereader.h>
       
    26 #include <AknGlobalMsgQuery.h>
    26 
    27 
    27 namespace DRM 
    28 namespace DRM 
    28 {
    29 {
    29 
    30 
    30 // CONSTANTS
    31 // CONSTANTS
   100         	            TInt aValue,
   101         	            TInt aValue,
   101         	            TInt aStringPos = -1,
   102         	            TInt aStringPos = -1,
   102         	            TInt aValuePos = -1 );
   103         	            TInt aValuePos = -1 );
   103         	            
   104         	            
   104         /**
   105         /**
       
   106         * Asynchronous wrapper for showing global message query.
       
   107         * @param aMessageResourceId resource id of string to be displayed
       
   108         * @param aHeaderResourceId resource id of header to be displayed in the query
       
   109         * @param aString string that replaces %U in resource string        
       
   110         */            
       
   111         void ShowMessageQueryL(TInt aMessageResourceId,
       
   112     													TInt aHeaderResourceId,
       
   113     													const TDesC& aString);
       
   114         	            
       
   115         /**
   105         * Synchronous wrapper for showing global  preview list query.
   116         * Synchronous wrapper for showing global  preview list query.
   106         * @param aTextResourceId resource id of preview structure to be
   117         * @param aTextResourceId resource id of preview structure to be
   107         *        displayed
   118         *        displayed
   108         * @return button code
   119         * @return button code
   109         */
   120         */
   145         // used to read resources
   156         // used to read resources
   146         CStringResourceReader* iResourceReader;
   157         CStringResourceReader* iResourceReader;
   147         
   158         
   148         // Resource id of buttons in confirmation query
   159         // Resource id of buttons in confirmation query
   149         TInt iButtonsId;
   160         TInt iButtonsId;
       
   161         
       
   162         // AVKON Global message query, used in method ShowMessageQueryL, activated asynchronously so needs to be owned
       
   163         CAknGlobalMsgQuery* iGlobalMsgQuery;
       
   164         // Message buffer for the global message query, contains dialog text with replaced string
       
   165         TBuf<KDRMNoteBufferMaxSize + KMaxFileName> iFinalMessageBuffer;
       
   166         // Message buffer for the global message query header text
       
   167         TBuf<KDRMNoteBufferMaxSize> iHeaderBuffer;
   150     };
   168     };
   151 
   169 
   152 }
   170 }
   153 
   171 
   154 #endif      // __DRMUTILITYGLOBALNOTEWRAPPER_H__   
   172 #endif      // __DRMUTILITYGLOBALNOTEWRAPPER_H__