bluetoothengine/bteng/inc/btengsrvsettingsmgr.h
branchRCL_3
changeset 23 9386f31cc85b
parent 22 613943a21004
equal deleted inserted replaced
22:613943a21004 23:9386f31cc85b
    27 #include "btengprivatecrkeys.h"
    27 #include "btengprivatecrkeys.h"
    28 #include "btengconstants.h"
    28 #include "btengconstants.h"
    29 #include "btengactive.h"
    29 #include "btengactive.h"
    30 
    30 
    31 class CBTEngServer;
    31 class CBTEngServer;
    32 class CHbIndicatorSymbian;
       
    33 
    32 
    34 
    33 
    35 /**
    34 /**
    36  *  ?one_line_short_description
    35  *  ?one_line_short_description
    37  *  ?more_complete_description
    36  *  ?more_complete_description
   111      * @since Symbian^3
   110      * @since Symbian^3
   112      */
   111      */
   113     void StopBTStackL();
   112     void StopBTStackL();
   114 
   113 
   115     /**
   114     /**
   116      * Handles a power event that HW power is going to turn off or
   115      * Update the central repository key for Bluetooth power state.
   117      * has been changed turned on.
   116      *
   118      *
   117      * @since Symbian^3
   119      * @since Symbian^4
   118      * @param aValue The new Bluetooth power state.
   120      * @param aValue The new Bluetooth HW power state.
   119      */
   121      */
   120     void UpdateCenRepPowerKeyL( TBTPowerState aValue );
   122     void HandleHwPowerChangeL( TBTPowerState aValue );
       
   123 
   121 
   124     /**
   122     /**
   125     * ?description
   123     * ?description
   126     *
   124     *
   127     * @since S60 v3.2
   125     * @since S60 v3.2
   129     */
   127     */
   130     void SetUiIndicatorsL();
   128     void SetUiIndicatorsL();
   131     
   129     
   132     /**
   130     /**
   133     * ?description
   131     * ?description
   134     * 
   132     *
   135     * @param aState Current State of the Bluetooth
   133     * @since S60 v3.2
       
   134     * @param ?arg1 ?description
   136     */
   135     */
   137     void SetIndicatorStateL( const TInt aState );
   136     void SetIndicatorStateL( const TInt aIndicator, const TInt aState );
   138     
   137 
   139     /**
   138     /**
   140      * Update the Bluetooth visibility mode.
   139      * Update the Bluetooth visibility mode.
   141      *
   140      *
   142      * @since Symbian^3
   141      * @since Symbian^3
   143      * @param ?arg1 ?description
   142      * @param ?arg1 ?description
   198      * From MBTEngActiveObserver.
   197      * From MBTEngActiveObserver.
   199      * Callback to notify that an outstanding request has completed.
   198      * Callback to notify that an outstanding request has completed.
   200      *
   199      *
   201      * @since Symbian^3
   200      * @since Symbian^3
   202      * @param aActive Pointer to the active object that completed.
   201      * @param aActive Pointer to the active object that completed.
       
   202      * @param aId The ID that identifies the outstanding request.
   203      * @param aStatus The status of the completed request.
   203      * @param aStatus The status of the completed request.
   204      */
   204      */
   205     virtual void RequestCompletedL( CBTEngActive* aActive, TInt aStatus );
   205     virtual void RequestCompletedL( CBTEngActive* aActive, TInt aId, TInt aStatus );
   206     
   206 
   207     /**
       
   208      * Callback for handling cancelation of an outstanding request.
       
   209      *
       
   210      * @param aId The ID that identifies the outstanding request.
       
   211      */
       
   212     virtual void CancelRequest( TInt aRequestId );
       
   213     
       
   214     /**
   207     /**
   215      * From MBTEngActiveObserver.
   208      * From MBTEngActiveObserver.
   216      * Callback to notify that an error has occurred in RunL.
   209      * Callback to notify that an error has occurred in RunL.
   217      *
   210      *
   218      * @since Symbian^3
   211      * @since Symbian^3
   219      * @param aActive Pointer to the active object that completed.
   212      * @param aActive Pointer to the active object that completed.
       
   213      * @param aId The ID that identifies the outstanding request.
   220      * @param aStatus The status of the completed request.
   214      * @param aStatus The status of the completed request.
   221      */
   215      */
   222     virtual void HandleError( CBTEngActive* aActive, TInt aError );
   216     virtual void HandleError( CBTEngActive* aActive, TInt aId, TInt aError );
   223 
   217 
   224 private:
   218 private:
   225 
   219 
   226     /**
   220     /**
   227      * C++ default constructor.
   221      * C++ default constructor.
   249      * @param aCurrentState On return, will contain the current power state.
   243      * @param aCurrentState On return, will contain the current power state.
   250      * @param aNewState The requested power state.
   244      * @param aNewState The requested power state.
   251      * @param aTemporary Indicates if this is about a tempororary state change.
   245      * @param aTemporary Indicates if this is about a tempororary state change.
   252      */
   246      */
   253     void CheckTemporaryPowerStateL( TBTPowerState& aCurrentState,
   247     void CheckTemporaryPowerStateL( TBTPowerState& aCurrentState,
   254                                      TBTPowerState aNewState, TBool aTemporary );  
   248                                      TBTPowerState aNewState, TBool aTemporary );
   255 
   249 
   256 private: // data
   250 private: // data
   257 
   251 
   258 #ifdef __WINS__
   252 #ifdef __WINS__
   259     /**
   253     /**
   303     /**
   297     /**
   304      * Client-server message for power change requests.
   298      * Client-server message for power change requests.
   305      */
   299      */
   306     RMessage2 iMessage;
   300     RMessage2 iMessage;
   307     
   301     
   308     /**
       
   309      *  Orbit Indicator to display Bluetooth Status
       
   310      */
       
   311     CHbIndicatorSymbian* iBTIndicator;
       
   312     
       
   313     /*
       
   314      *  Indicator State
       
   315      */
       
   316     TInt iIndicatorState;
       
   317     };
   302     };
   318 
   303 
   319 
   304 
   320 #endif // BTENGSRVSETTINGS_H
   305 #endif // BTENGSRVSETTINGS_H