20 #ifndef __DRMUTILITYINFONOTEWRAPPER_H__ |
20 #ifndef __DRMUTILITYINFONOTEWRAPPER_H__ |
21 #define __DRMUTILITYINFONOTEWRAPPER_H__ |
21 #define __DRMUTILITYINFONOTEWRAPPER_H__ |
22 |
22 |
23 // INCLUDES |
23 // INCLUDES |
24 #include <e32base.h> |
24 #include <e32base.h> |
25 #include <aknglobalnote.h> |
25 #include <AknGlobalNote.h> |
26 |
26 |
27 namespace DRM |
27 namespace DRM |
28 { |
28 { |
29 |
29 |
30 /** |
30 /** |
31 * Wrapper class for displaying global notes. |
31 * Wrapper class for displaying global notes. |
32 */ |
32 */ |
33 NONSHARABLE_CLASS ( CDrmUtilityInfoNoteWrapper ) : public CActive |
33 NONSHARABLE_CLASS ( CDrmUtilityInfoNoteWrapper ) : public CActive |
34 { |
34 { |
35 public: // Constructors and destructor |
35 public: // Constructors and destructor |
36 |
36 |
37 /** |
37 /** |
38 * Two-phased constructor. |
38 * Two-phased constructor. |
39 */ |
39 */ |
40 static CDrmUtilityInfoNoteWrapper* NewL(); |
40 static CDrmUtilityInfoNoteWrapper* NewL(); |
41 |
41 |
42 static CDrmUtilityInfoNoteWrapper* NewLC(); |
42 static CDrmUtilityInfoNoteWrapper* NewLC(); |
43 |
43 |
44 /** |
44 /** |
45 * Destructor. |
45 * Destructor. |
46 */ |
46 */ |
47 virtual ~CDrmUtilityInfoNoteWrapper(); |
47 virtual ~CDrmUtilityInfoNoteWrapper(); |
48 |
48 |
50 |
50 |
51 |
51 |
52 /** |
52 /** |
53 * Synchronous wrapper for showing global note. |
53 * Synchronous wrapper for showing global note. |
54 * @param aType type of Info note to be displayed |
54 * @param aType type of Info note to be displayed |
55 * @param aNoteText string containing note text |
55 * @param aNoteText string containing note text |
56 * @param aResource resource identifier |
56 * @param aResource resource identifier |
57 * @param aString is transferred for CoverUi string data |
57 * @param aString is transferred for CoverUi string data |
58 * @param aValue is transferred for CoverUi numerical data |
58 * @param aValue is transferred for CoverUi numerical data |
59 * @return button code |
59 * @return button code |
60 */ |
60 */ |
61 void ShowNoteL( TAknGlobalNoteType aType, |
61 void ShowNoteL( TAknGlobalNoteType aType, |
62 const TDesC& aNoteText, |
62 const TDesC& aNoteText, |
63 TInt aResourceId = -1, |
63 TInt aResourceId = -1, |
64 const TDesC& aString = KNullDesC, |
64 const TDesC& aString = KNullDesC, |
65 TInt aValue = -1 ); |
65 TInt aValue = -1 ); |
66 |
66 |
67 /** |
67 /** |
68 * Synchronous wrapper for showing global note. |
68 * Synchronous wrapper for showing global note. |
69 * @param[inout] aResourceId takes primary display |
69 * @param[inout] aResourceId takes primary display |
70 * resource ID and returns CoverUiId |
70 * resource ID and returns CoverUiId |
71 * @return boolean if ID was valid CoverUiId |
71 * @return boolean if ID was valid CoverUiId |
72 */ |
72 */ |
73 static TBool EvaluateCoverResourceId( TInt& aResourceId ); |
73 static TBool EvaluateCoverResourceId( TInt& aResourceId ); |
74 |
74 |
75 private: // From CActive |
75 private: // From CActive |
76 |
76 |
77 void DoCancel(); |
77 void DoCancel(); |
78 void RunL(); |
78 void RunL(); |
79 |
79 |
80 private: |
80 private: |
81 |
81 |
82 /** |
82 /** |
83 * C++ default constructor. |
83 * C++ default constructor. |
84 */ |
84 */ |
85 CDrmUtilityInfoNoteWrapper(); |
85 CDrmUtilityInfoNoteWrapper(); |
86 |
86 |
87 /** |
87 /** |
88 * By default Symbian 2nd phase constructor is private. |
88 * By default Symbian 2nd phase constructor is private. |
89 */ |
89 */ |
90 void ConstructL(); |
90 void ConstructL(); |
91 |
91 |
92 private: // Data |
92 private: // Data |
93 |
93 |
94 CAknGlobalNote* iNote; |
94 CAknGlobalNote* iNote; |
95 }; |
95 }; |
96 |
96 |
97 } |
97 } |
98 |
98 |
99 #endif // __DRMUTILITYINFONOTEWRAPPER_H__ |
99 #endif // __DRMUTILITYINFONOTEWRAPPER_H__ |
100 |
100 |
101 // End of File |
101 // End of File |
102 |
102 |