equal
deleted
inserted
replaced
13 #define CSOFTNOTIFICATION_H |
13 #define CSOFTNOTIFICATION_H |
14 |
14 |
15 #include <e32base.h> |
15 #include <e32base.h> |
16 #include <jni.h> |
16 #include <jni.h> |
17 #include <HbIndicatorsymbian.h> |
17 #include <HbIndicatorsymbian.h> |
|
18 #include <HbDeviceNotificationDialogsymbian.h> |
18 |
19 |
19 NONSHARABLE_CLASS(CSoftNotification) : public CBase, |
20 NONSHARABLE_CLASS(CSoftNotification) : public CBase, |
20 MHbIndicatorSymbianObserver |
21 MHbIndicatorSymbianObserver, MHbDeviceNotificationDialogObserver |
21 { |
22 { |
22 public: |
23 public: |
23 |
24 |
24 /** |
25 /** |
25 * Static constructor |
26 * Static constructor |
37 /** |
38 /** |
38 * Dynamic soft notification was activated by user. |
39 * Dynamic soft notification was activated by user. |
39 */ |
40 */ |
40 void IndicatorUserActivated(const TDesC &aType, |
41 void IndicatorUserActivated(const TDesC &aType, |
41 CHbSymbianVariantMap &aData); |
42 CHbSymbianVariantMap &aData); |
|
43 |
|
44 /** |
|
45 * Notification dialog is touched by the user. |
|
46 * |
|
47 * @param aDialog Notification dialog |
|
48 */ |
|
49 void NotificationDialogActivated(const CHbDeviceNotificationDialogSymbian* aDialog); |
|
50 |
|
51 /** |
|
52 * Notification dialog is closed. |
|
53 * |
|
54 * @param aDialog Notification dialog |
|
55 * @param aCompletionCode Notification dialog completion code |
|
56 */ |
|
57 void NotificationDialogClosed(const CHbDeviceNotificationDialogSymbian* aDialog, TInt aCompletionCode); |
42 |
58 |
43 public: |
59 public: |
44 // New functions |
60 // New functions |
45 |
61 |
46 /** |
62 /** |
104 // New methods |
120 // New methods |
105 |
121 |
106 /** |
122 /** |
107 * Set assigned member data to custom notification parameters |
123 * Set assigned member data to custom notification parameters |
108 * |
124 * |
109 * @param aParam custom soft notification params to fill |
125 * @return aParam custom soft notification params to fill |
110 */ |
126 */ |
111 CHbSymbianVariant* NotificationParamsL(); |
127 CHbSymbianVariant* NotificationParamsL(); |
|
128 |
|
129 /** |
|
130 * Storing softnotification to database |
|
131 */ |
|
132 void AddorUpdateSoftNotificationToStorage(); |
112 |
133 |
113 private: |
134 private: |
114 // Data |
135 // Data |
115 |
136 |
116 CHbIndicatorSymbian* iIndicator; |
137 CHbIndicatorSymbian* iIndicator; |
|
138 CHbDeviceNotificationDialogSymbian* iNotificationDialog; |
117 TUid iMidletId; |
139 TUid iMidletId; |
118 TInt iNotificationId; |
140 TInt iNotificationId; |
119 HBufC* iPrimaryText; |
141 HBufC* iPrimaryText; |
120 HBufC* iSecondaryText; |
142 HBufC* iSecondaryText; |
121 HBufC* iImagePath; |
143 HBufC* iImagePath; |
122 jobject iPeer; |
144 jobject iPeer; |
123 jmethodID iMethodId; |
145 jmethodID iMethodId; |
124 JNIEnv* iJniEnv; |
146 JNIEnv* iJniEnv; |
|
147 bool iIsNoteExist; |
125 }; |
148 }; |
126 |
149 |
127 #endif // CSOFTNOTIFICATION_H |
150 #endif // CSOFTNOTIFICATION_H |
128 |
151 |