87 * Symbian 2nd phase constructor. |
87 * Symbian 2nd phase constructor. |
88 */ |
88 */ |
89 virtual void ConstructL(); |
89 virtual void ConstructL(); |
90 |
90 |
91 /** |
91 /** |
92 * Used in asynchronous notifier launch to store received parameters |
92 * Used in asynchronous notifier launch to start the actual processing |
93 * into members variables and make needed initializations. |
93 * of parameters received in StartL. StartL just stores a copy of the |
94 * @param aBuffer A buffer containing received parameters |
94 * parameter buffer, schedules a callback to call this method and returns |
95 * @param aReturnVal The return value to be passed back. |
95 * ASAP, so the actual work begins here, safely outside of the StartL |
96 * @param aMessage Should be completed when the notifier is deactivated. |
96 * context so that waiting dialogs can be freely used if need be. |
97 * @return None. |
97 * @return None. |
98 */ |
98 */ |
99 virtual void GetParamsL(const TDesC8& aBuffer, |
99 virtual void ProcessStartParamsL() = 0; |
100 TInt aReplySlot, |
|
101 const RMessagePtr2& aMessage)=0; |
|
102 |
100 |
103 /** |
101 /** |
104 * A utility function for setting the power status of Bluetooth. |
102 * A utility function for setting the power status of Bluetooth. |
105 * If the power is not on the user will be presented a query. |
103 * If the power is not on the user will be presented a query. |
106 * @return ETrue if BT is turned on successfully; EFalse otherwise |
104 * @return ETrue if BT is turned on successfully; EFalse otherwise |
280 * Checks the timestamp since last query. |
278 * Checks the timestamp since last query. |
281 * @return true if too often |
279 * @return true if too often |
282 */ |
280 */ |
283 TBool CheckQueryInterval(); |
281 TBool CheckQueryInterval(); |
284 |
282 |
|
283 static TInt ProcessStartParamsCallBack(TAny* aNotif); |
|
284 |
285 protected: // Data |
285 protected: // Data |
286 |
286 |
287 RMessagePtr2 iMessage; // Received message |
287 RMessagePtr2 iMessage; // Received message |
288 TInt iReplySlot; // Reply slot |
288 TInt iReplySlot; // Reply slot |
|
289 HBufC8* iParamBuffer; // Copy of the param buffer received in StartL |
|
290 |
|
291 CAsyncCallBack* iProcessStartParamsCallBack; |
|
292 |
289 TNotifierInfo iInfo; // Notifier parameters structure |
293 TNotifierInfo iInfo; // Notifier parameters structure |
290 TBTRegistryQueryState iBTRegistryQueryState; |
294 TBTRegistryQueryState iBTRegistryQueryState; |
291 CBTDeviceArray* iDeviceArray; // for getting device from registry |
295 CBTDeviceArray* iDeviceArray; // for getting device from registry |
292 CBTDevice* iDevice; // Current Bluetooth device |
296 CBTDevice* iDevice; // Current Bluetooth device |
293 TBTDevAddr iBTAddr; // Gotten from PckBuffer, constant no matter how iDevice changes. |
297 TBTDevAddr iBTAddr; // Gotten from PckBuffer, constant no matter how iDevice changes. |
294 CBTNotifUIUtil* iNotifUiUtil; // Utility to show UI notes & queries |
298 CBTNotifUIUtil* iNotifUiUtil; // Utility to show UI notes & queries |
|
299 CBTNotifUIUtil* iAuthoriseDialog; // to show Authorisation dialogs |
295 CBTEngSettings* iBTEngSettings; |
300 CBTEngSettings* iBTEngSettings; |
296 TBool iIsCoverUI; |
301 TBool iIsCoverUI; |
297 |
302 |
298 private: |
303 private: |
299 CBTEngDevMan* iDevMan; // for BT registry manipulation |
304 CBTEngDevMan* iDevMan; // for BT registry manipulation |
300 |
|
301 |
|
302 |
|
303 }; |
305 }; |
304 |
306 |
305 #endif |
307 #endif |
306 |
308 |
307 // End of File |
309 // End of File |