phoneengine/servicehandling/inc/cpeservicehandling.h
changeset 22 6bb1b21d2484
parent 21 92ab7f8d0eab
child 51 f39ed5e045e0
equal deleted inserted replaced
21:92ab7f8d0eab 22:6bb1b21d2484
    18 
    18 
    19 #ifndef C_PESERVICEHANDLING_H
    19 #ifndef C_PESERVICEHANDLING_H
    20 #define C_PESERVICEHANDLING_H
    20 #define C_PESERVICEHANDLING_H
    21 
    21 
    22 #include <e32base.h>
    22 #include <e32base.h>
    23 // <-- QT PHONE START -->
       
    24 // #include <cch.h>
       
    25 // <-- QT PHONE END -->
       
    26 #include "mpeservicehandling.h"
    23 #include "mpeservicehandling.h"
    27 
    24 
    28 class  MPEPhoneModelInternal;
    25 class  MPEPhoneModelInternal;
    29 
    26 
    30 /**
    27 /**
    33  *  
    30  *  
    34  *  @lib peservicehandling.lib
    31  *  @lib peservicehandling.lib
    35  *  @since S60 v5.0
    32  *  @since S60 v5.0
    36  */
    33  */
    37 NONSHARABLE_CLASS( CPEServiceHandling ): public CBase,
    34 NONSHARABLE_CLASS( CPEServiceHandling ): public CBase,
    38 // <-- QT PHONE START -->
       
    39                                          //public MCchServiceStatusObserver,
       
    40 // <-- QT PHONE END -->
       
    41                                          public MPEServiceHandling
    35                                          public MPEServiceHandling
    42     {
    36     {
    43 
    37 
    44     public: // Constructors and destructor
    38     public: // Constructors and destructor
    45 
    39 
    82          * From MPEServiceHandling.
    76          * From MPEServiceHandling.
    83          * Disable service.
    77          * Disable service.
    84          */ 
    78          */ 
    85         void DisableService() const;
    79         void DisableService() const;
    86     
    80     
    87     public: // from MCchServiceStatusObserver
       
    88         
       
    89         /**
       
    90          * From MCchServiceStatusObserver.
       
    91          * Signaled when service status or error changes.
       
    92          *
       
    93          * @param   aServiceId      Identifier of the service.
       
    94          * @param   aType           Service type.
       
    95          * @param   aServiceStatus  Service status.
       
    96          */
       
    97         // <-- QT PHONE START -->
       
    98         /*void ServiceStatusChanged( TInt aServiceId, 
       
    99                                    const TCCHSubserviceType aType,
       
   100                                    const TCchServiceStatus& aServiceStatus );*/
       
   101         // <-- QT PHONE END -->
       
   102     private: // Constructors
    81     private: // Constructors
   103 
    82 
   104         /**
    83         /**
   105          * C++ default constructor.
    84          * C++ default constructor.
   106          */
    85          */
   108         
    87         
   109         /**
    88         /**
   110          * By default Symbian 2nd phase constructor is private.
    89          * By default Symbian 2nd phase constructor is private.
   111          */
    90          */
   112         void ConstructL();
    91         void ConstructL();
   113         
    92                
   114     private: // functions
       
   115     
       
   116         /**
       
   117          * Enable service, if not already enabled.
       
   118          *
       
   119          * @param  aState       Service state.
       
   120          * @param  aService     Service.
       
   121          * @return Error code.
       
   122          */
       
   123         // <-- QT PHONE START -->
       
   124         /*TInt EnableServiceIfNeeded( const TCCHSubserviceState& aState, 
       
   125                                     CCchService& aService );*/
       
   126         
       
   127         /**
       
   128         * Sends ServiceHandlingError message to PhoneEngine and saves 
       
   129         * errorcode to member variable.
       
   130         * 
       
   131         * @param  aErrorCode, Cch errorcode.
       
   132         */      
       
   133         //void SendErrorMessage( TInt aErrorCode );
       
   134         // <-- QT PHONE END -->
       
   135        
       
   136     private: // data
    93     private: // data
   137         
    94         
   138         /**
       
   139          * CCH client.
       
   140          * Own.
       
   141          */
       
   142         // <-- QT PHONE START -->
       
   143         //CCch* iCchClient;
       
   144         // <-- QT PHONE END -->
       
   145 
       
   146         /**
    95         /**
   147          * PhoneModel.
    96          * PhoneModel.
   148          * Not own.
    97          * Not own.
   149          */
    98          */
   150         MPEPhoneModelInternal& iModel;
    99         MPEPhoneModelInternal& iModel;