bluetoothengine/bteng/inc/btengsrvstate.h
changeset 23 988cddd6adbd
parent 0 f63038272f30
equal deleted inserted replaced
22:4255033c5d30 23:988cddd6adbd
    18 
    18 
    19 
    19 
    20 #ifndef BTENGSRVSTATE_H
    20 #ifndef BTENGSRVSTATE_H
    21 #define BTENGSRVSTATE_H
    21 #define BTENGSRVSTATE_H
    22 
    22 
    23 
    23 #include <bluetooth/hci/hcitypes.h>
    24 //#include <?include_file>
       
    25 
    24 
    26 #include "btengactive.h"
    25 #include "btengactive.h"
    27 #include "btserversdkcrkeys.h"
       
    28 
    26 
    29 class MBTEngActiveObserver;
    27 class MBTEngActiveObserver;
    30 class CBTEngServer;
    28 class CBTEngServer;
    31 
       
    32 /**  ?description */
       
    33 //const ?type ?constant_var = ?constant;
       
    34 
    29 
    35 
    30 
    36 /**
    31 /**
    37  *  Class CBTEngSrvState
    32  *  Class CBTEngSrvState
    38  *
    33  *
    91      * Destructor
    86      * Destructor
    92      */
    87      */
    93     virtual ~CBTEngSrvState();
    88     virtual ~CBTEngSrvState();
    94 
    89 
    95     /**
    90     /**
    96      * ?description
    91      * Getter for the current operation.
    97      *
    92      *
    98      * @since S60 v3.2
    93      * @since S60 v3.2
    99      * @param ?arg1 ?description
    94      * @return The current operation.
   100      * @param ?arg2 ?description
       
   101      * @return ?description
       
   102      */
    95      */
   103     CBTEngSrvState::TBTEngSrvOperation CurrentOperation();
    96     CBTEngSrvState::TBTEngSrvOperation CurrentOperation();
   104 
    97 
   105     /**
    98     /**
   106      * ?description
    99      * Start the state machine. If the state machine was already running,
       
   100      * it is simply restarted.
   107      *
   101      *
   108      * @since S60 v3.2
   102      * @since S60 v3.2
   109      * @param ?arg1 ?description
   103      * @param ?arg1 ?description
   110      * @param ?arg2 ?description
       
   111      * @return ?description
       
   112      */
   104      */
   113     void StartStateMachineL( TBool aState );
   105     void StartStateMachineL( TBTPowerState aState );
   114 
   106 
   115     /**
   107     /**
   116      * ?description
   108      * Schedule the next state operation.
   117      *
   109      *
   118      * @since S60 v3.2
   110      * @since S60 v3.2
   119      * @param ?arg1 ?description
       
   120      * @param ?arg2 ?description
       
   121      * @return ?description
       
   122      */
   111      */
   123     void ChangeState();    
   112     void ChangeState();    
   124 
   113 
   125 private:
   114 private:
   126 
   115 
   131 
   120 
   132     /**
   121     /**
   133      * Symbian 2nd-phase constructor
   122      * Symbian 2nd-phase constructor
   134      */
   123      */
   135     void ConstructL();
   124     void ConstructL();
   136     
   125 
       
   126     /**
       
   127      * Callback function for asynchronous cycle.
       
   128      */
   137     static TInt ChangeStateCb(TAny* aThis);
   129     static TInt ChangeStateCb(TAny* aThis);
   138     
   130 
       
   131     /**
       
   132      * Execute the next state operation.
       
   133      */
   139     void RequestCompletedL();
   134     void RequestCompletedL();
   140     
   135 
       
   136     /**
       
   137      * Handle an error that occurred during a state operation.
       
   138      */
   141     void HandleError(TInt aError);
   139     void HandleError(TInt aError);
   142 
   140 
   143 private: // data
   141 private: // data
   144 
   142 
   145     /**
   143     /**