18 #define USBUINOTIFIER_H |
18 #define USBUINOTIFIER_H |
19 // INCLUDES |
19 // INCLUDES |
20 #include <usbuinotif.h> |
20 #include <usbuinotif.h> |
21 #include <eikenv.h> |
21 #include <eikenv.h> |
22 #include <data_caging_path_literals.hrh> |
22 #include <data_caging_path_literals.hrh> |
23 #include <usbman.h> |
|
24 #include <usbwatcher.h> |
|
25 #include <AknCapServerClient.h> |
|
26 #include "usbuinotifdebug.h" |
23 #include "usbuinotifdebug.h" |
27 // CONSTANTS |
24 // CONSTANTS |
28 // Literal resource filename |
25 // Literal resource filename |
29 _LIT(KResourceFileName, "usbuinotif.rsc"); |
26 _LIT(KResourceFileName, "usbuinotif.rsc"); |
30 |
27 |
70 * @param aBuffer A buffer containing received parameters |
67 * @param aBuffer A buffer containing received parameters |
71 * @param aReplySlot a Reply slot. |
68 * @param aReplySlot a Reply slot. |
72 * @param aMessage Should be completed when the notifier is deactivated. |
69 * @param aMessage Should be completed when the notifier is deactivated. |
73 * @return None. |
70 * @return None. |
74 */ |
71 */ |
75 virtual void GetParamsL(const TDesC8& aBuffer, TInt aReplySlot, |
72 virtual void StartDialogL(const TDesC8& aBuffer, TInt aReplySlot, |
76 const RMessagePtr2& aMessage)=0; |
73 const RMessagePtr2& aMessage)=0; |
77 |
|
78 /** |
|
79 * A function for checking the status of Apps key. |
|
80 * @param aEnable A Boolean according to Apps key status |
|
81 * @return None. |
|
82 */ |
|
83 void SuppressAppSwitching(TBool aEnable); |
|
84 |
74 |
85 /** |
75 /** |
86 * Check if message needs to be completed and complete it |
76 * Check if message needs to be completed and complete it |
87 * @param aReason The completetion code |
77 * @param aReason The completetion code |
88 */ |
78 */ |
89 void CompleteMessage(TInt aReason); |
79 void CompleteMessage(TInt aReason); |
90 |
80 |
91 /* |
81 /** |
92 * Check whether the keylock is on. If yes turn it off. |
82 * Initialize HbTextResolrer, if not initialized before |
93 * @since S60 3.2 |
83 * (checks it from TLS) |
94 */ |
84 */ |
95 void DisableKeylock(); |
85 void InitializeTextResolver(); |
96 |
86 |
97 /* |
|
98 * Restore the keyguard on if it has been disabled by DisableKeylock. |
|
99 * @since S60 3.2 |
|
100 */ |
|
101 void RestoreKeylock(); |
|
102 |
|
103 protected: |
87 protected: |
104 // Functions from base classes |
88 // Functions from base classes |
105 |
|
106 /** |
|
107 * From CActive Gets called when a request completes. |
|
108 * @param None. |
|
109 * @return None. |
|
110 */ |
|
111 virtual void RunL()=0; |
|
112 |
|
113 /** |
|
114 * From CActive Gets called when a leave occurres in RunL. |
|
115 * @param aError Symbian OS errorcode. |
|
116 * @return error code. |
|
117 */ |
|
118 virtual TInt RunError(TInt aError); |
|
119 |
89 |
120 /** |
90 /** |
121 * From MEikSrvNotifierBase2 Called when a notifier is first loaded |
91 * From MEikSrvNotifierBase2 Called when a notifier is first loaded |
122 * to allow any initial construction that is required. |
92 * to allow any initial construction that is required. |
123 * @param None. |
93 * @param None. |
174 * @param aBuffer The updated data. |
144 * @param aBuffer The updated data. |
175 * @return A pointer to return value. |
145 * @return A pointer to return value. |
176 */ |
146 */ |
177 virtual TPtrC8 UpdateL(const TDesC8& aBuffer); |
147 virtual TPtrC8 UpdateL(const TDesC8& aBuffer); |
178 |
148 |
179 /** |
149 |
180 * From CActive Gets called when a request is cancelled. |
150 |
181 * @param None. |
|
182 * @return None. |
|
183 */ |
|
184 virtual void DoCancel(); |
|
185 |
|
186 private: |
|
187 TBool iKeylockChanged; // Flag used to restore the keylock |
|
188 RAknUiServer iAknServer; |
|
189 protected: |
151 protected: |
190 // Data |
152 // Data |
191 |
153 |
192 RMessagePtr2 iMessage; // Received message |
154 RMessagePtr2 iMessage; // Received message |
193 TInt iReplySlot; // Reply slot |
155 TInt iReplySlot; // Reply slot |
194 TBool iNeedToCompleteMessage; // Flag for releasing messages |
156 TBool iNeedToCompleteMessage; // Flag for releasing messages |
195 |
157 |
196 TInt iResourceFileFlag; // Flag for eikon env. |
158 TInt iResourceFileFlag; // Flag for eikon env. |
197 TNotifierInfo iInfo; // Notifier parameters structure |
159 TNotifierInfo iInfo; // Notifier parameters structure |
198 CEikonEnv* iEikEnv; // Local eikonenv, not own |
160 CEikonEnv* iEikEnv; // Local eikonenv, not own |
199 TBool iAppsKeyBlocked; // Apps key status |
161 TBool iTranslator ; |
200 |
|
201 TBool iCoverDisplaySupported; // Cover Display UI feature support |
|
202 |
|
203 }; |
162 }; |
204 |
163 |
205 #endif // USBUINOTIFIER_H |
164 #endif // USBUINOTIFIER_H |
206 // End of File |
165 // End of File |