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