satengine/SatServer/Commands/SetUpCallCmd/inc/csetupcallrequesthandler.h
changeset 19 e44a8c097b15
parent 12 ae8abd0db65c
child 31 a2467631ae02
equal deleted inserted replaced
15:d7fc66ccd6fb 19:e44a8c097b15
    20 #define CSETUPCALLREQUESTHANDLER_H
    20 #define CSETUPCALLREQUESTHANDLER_H
    21 
    21 
    22 #include <e32base.h>
    22 #include <e32base.h>
    23 #include "msatmultimodeapi.h"
    23 #include "msatmultimodeapi.h"
    24 
    24 
    25 #include "csetupcallstatushandler.h"
       
    26 
       
    27 class CSetUpCallHandler;
    25 class CSetUpCallHandler;
    28 class MSatAsyncToSync;
    26 class MSatAsyncToSync;
    29 
    27 
    30 /**
    28 /**
    31 *  This is the handler for the ETel MM api Request.
    29 *  This is the handler for the ETel MM api Request.
    32 *  This active objects is registered with ETelMM Api to send request and 
    30 *  This active objects is registered with ETelMM Api to send request and 
    33 *  receive notifications about some Request Complete.
    31 *  receive notifications about some Request Complete.
    34 *
    32 *
    35 *  @lib CallControlCmd
       
    36 *  @since S60 v5.0.1
       
    37 */
    33 */
    38 
    34 
    39 class CSetupCallRequestHandler : public CActive,
    35 class CSetupCallRequestHandler : public CActive
    40                                  public MSetupCallStatusObserver
       
    41     {
    36     {
    42 
       
    43 public:
    37 public:
    44 
    38 
    45     /**
    39     /**
    46      * Two-phased constructor.
    40      * Two-phased constructor.
    47      * @param aPhone A reference to the MSatMultiModeApi.
    41      * @param aPhone A reference to the MSatMultiModeApi.
    72     /**
    66     /**
    73      * Cancel the asynchronous operations that required to the ETel MM api  
    67      * Cancel the asynchronous operations that required to the ETel MM api  
    74      */
    68      */
    75     void CancelOperation();
    69     void CancelOperation();
    76     
    70     
    77     /**
       
    78      *  From MSetupCallStatusObserver
       
    79      *  The call status update notification from ETel MM
       
    80      */
       
    81     void CallSatatusChanged( const TInt status );
       
    82  
    71  
    83 protected:
    72 protected:
    84 
    73 
    85     /**
    74     /**
    86      * From CActive, handles the request completion.
    75      * From CActive, handles the request completion.
   101      * @param aPhone A reference to MSatMultiModeApi.
    90      * @param aPhone A reference to MSatMultiModeApi.
   102      */
    91      */
   103     CSetupCallRequestHandler( MSatMultiModeApi& aPhone,
    92     CSetupCallRequestHandler( MSatMultiModeApi& aPhone,
   104         CSetUpCallHandler* aDispatcher );
    93         CSetUpCallHandler* aDispatcher );
   105         
    94         
   106     /**
       
   107      * Two phase contruction.
       
   108      */    
       
   109     void ConstructL();
       
   110 
       
   111 private: //new method
       
   112     
       
   113     void HandleSetupCallStatusChange();
       
   114         
       
   115 private: // Data
    95 private: // Data
   116 
    96 
   117     /**
    97     /**
   118      * Reference to the MSatMultiModeApi
    98      * Reference to the MSatMultiModeApi
   119      */
    99      */
   123      * Pointer to SendSs command handler
   103      * Pointer to SendSs command handler
   124      */
   104      */
   125     CSetUpCallHandler* iDispatcher;
   105     CSetUpCallHandler* iDispatcher;
   126 
   106 
   127     /**
   107     /**
   128      * Use to monite the status of call
       
   129      * Own
       
   130      */
       
   131     CSetupCallStatusHandler *iStatusHandler;
       
   132     
       
   133     /**
       
   134      * Current call is an emergency call.
   108      * Current call is an emergency call.
   135      */
   109      */
   136     TBool iEmergencyCall;
   110     TBool iEmergencyCall;
   137     
   111       
   138     /**
       
   139      * Terminal response to the SIM has been send
       
   140      */
       
   141     TBool iResponsed;
       
   142     
       
   143     };
   112     };
   144 
   113 
   145 #endif      // CSETUPCALLREQUESTHANDLER_H
   114 #endif      // CSETUPCALLREQUESTHANDLER_H