equal
deleted
inserted
replaced
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> |
|
27 |
26 |
28 namespace DRM |
27 namespace DRM |
29 { |
28 { |
30 |
29 |
31 // CONSTANTS |
30 // CONSTANTS |
101 TInt aValue, |
100 TInt aValue, |
102 TInt aStringPos = -1, |
101 TInt aStringPos = -1, |
103 TInt aValuePos = -1 ); |
102 TInt aValuePos = -1 ); |
104 |
103 |
105 /** |
104 /** |
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 /** |
|
116 * Synchronous wrapper for showing global preview list query. |
105 * Synchronous wrapper for showing global preview list query. |
117 * @param aTextResourceId resource id of preview structure to be |
106 * @param aTextResourceId resource id of preview structure to be |
118 * displayed |
107 * displayed |
119 * @return button code |
108 * @return button code |
120 */ |
109 */ |
156 // used to read resources |
145 // used to read resources |
157 CStringResourceReader* iResourceReader; |
146 CStringResourceReader* iResourceReader; |
158 |
147 |
159 // Resource id of buttons in confirmation query |
148 // Resource id of buttons in confirmation query |
160 TInt iButtonsId; |
149 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; |
|
168 }; |
150 }; |
169 |
151 |
170 } |
152 } |
171 |
153 |
172 #endif // __DRMUTILITYGLOBALNOTEWRAPPER_H__ |
154 #endif // __DRMUTILITYGLOBALNOTEWRAPPER_H__ |