bluetoothengine/btnotif/inc/btnotifier.h
branchRCL_3
changeset 72 4b59561a31c0
parent 61 269724087bed
equal deleted inserted replaced
64:1934667b0e2b 72:4b59561a31c0
    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 start the actual processing
    92         * Used in asynchronous notifier launch to store received parameters
    93         * of parameters received in StartL. StartL just stores a copy of the
    93         * into members variables and make needed initializations.
    94         * parameter buffer, schedules a callback to call this method and returns
    94         * @param aBuffer A buffer containing received parameters
    95         * ASAP, so the actual work begins here, safely outside of the StartL
    95         * @param aReturnVal The return value to be passed back.
    96         * context so that waiting dialogs can be freely used if need be.
    96         * @param aMessage Should be completed when the notifier is deactivated.
    97         * @return None.
    97         * @return None.
    98         */
    98         */
    99         virtual void ProcessStartParamsL() = 0;
    99         virtual void GetParamsL(const TDesC8& aBuffer,
       
   100                                 TInt aReplySlot,
       
   101                                 const RMessagePtr2& aMessage)=0;
   100 
   102 
   101         /**
   103         /**
   102         * A utility function for setting the power status of Bluetooth.
   104         * A utility function for setting the power status of Bluetooth.
   103         * If the power is not on the user will be presented a query.
   105         * If the power is not on the user will be presented a query.
   104         * @return ETrue if BT is turned on successfully; EFalse otherwise
   106         * @return ETrue if BT is turned on successfully; EFalse otherwise
   278          * Checks the timestamp since last query.
   280          * Checks the timestamp since last query.
   279          * @return true if too often
   281          * @return true if too often
   280          */
   282          */
   281         TBool CheckQueryInterval();
   283         TBool CheckQueryInterval();
   282 
   284 
   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 
       
   293         TNotifierInfo               iInfo;                  // Notifier parameters structure
   289         TNotifierInfo               iInfo;                  // Notifier parameters structure
   294         TBTRegistryQueryState       iBTRegistryQueryState;
   290         TBTRegistryQueryState       iBTRegistryQueryState;
   295         CBTDeviceArray*             iDeviceArray;  // for getting device from registry
   291         CBTDeviceArray*             iDeviceArray;  // for getting device from registry
   296         CBTDevice*                  iDevice;                // Current Bluetooth device
   292         CBTDevice*                  iDevice;                // Current Bluetooth device
   297         TBTDevAddr                  iBTAddr; // Gotten from PckBuffer, constant no matter how iDevice changes.
   293         TBTDevAddr                  iBTAddr; // Gotten from PckBuffer, constant no matter how iDevice changes.
   298         CBTNotifUIUtil*             iNotifUiUtil;           // Utility to show UI notes & queries
   294         CBTNotifUIUtil*             iNotifUiUtil;           // Utility to show UI notes & queries
   299         CBTNotifUIUtil*             iAuthoriseDialog;       // to show Authorisation dialogs
       
   300         CBTEngSettings*             iBTEngSettings;
   295         CBTEngSettings*             iBTEngSettings;
   301         TBool                       iIsCoverUI;
   296         TBool                       iIsCoverUI;
   302 
   297 
   303     private:
   298     private:
   304         CBTEngDevMan*               iDevMan;  // for BT registry manipulation
   299         CBTEngDevMan*               iDevMan;  // for BT registry manipulation
       
   300 
       
   301 
       
   302 
   305     };
   303     };
   306 
   304 
   307 #endif
   305 #endif
   308 
   306 
   309 // End of File
   307 // End of File