31 * |
33 * |
32 * @lib peservicehandling.lib |
34 * @lib peservicehandling.lib |
33 * @since S60 v5.0 |
35 * @since S60 v5.0 |
34 */ |
36 */ |
35 NONSHARABLE_CLASS( CPEServiceHandling ): public CBase, |
37 NONSHARABLE_CLASS( CPEServiceHandling ): public CBase, |
36 public MCchServiceStatusObserver, |
38 // <-- QT PHONE START --> |
|
39 //public MCchServiceStatusObserver, |
|
40 // <-- QT PHONE END --> |
37 public MPEServiceHandling |
41 public MPEServiceHandling |
38 { |
42 { |
39 |
43 |
40 public: // Constructors and destructor |
44 public: // Constructors and destructor |
41 |
45 |
42 /** |
46 /** |
43 * Two-phased constructor. |
47 * Two-phased constructor. |
44 */ |
48 */ |
45 IMPORT_C static CPEServiceHandling* NewL( MPEPhoneModelInternal& aModel ); |
49 IMPORT_C static CPEServiceHandling* NewL( MPEPhoneModelInternal& aModel ); |
46 |
50 |
47 /** |
51 /** |
48 * Two-phased constructor. |
52 * Two-phased constructor. |
49 */ |
53 */ |
50 IMPORT_C static CPEServiceHandling* NewLC( MPEPhoneModelInternal& aModel ); |
54 IMPORT_C static CPEServiceHandling* NewLC( MPEPhoneModelInternal& aModel ); |
51 |
55 |
52 /** |
56 /** |
53 * Destructors. |
57 * Destructors. |
54 */ |
58 */ |
55 IMPORT_C virtual ~CPEServiceHandling(); |
59 IMPORT_C virtual ~CPEServiceHandling(); |
56 |
60 |
57 public: // from MPEServiceHandling |
61 public: // from MPEServiceHandling |
58 |
62 |
59 /** |
63 /** |
60 * From MPEServiceHandling. |
64 * From MPEServiceHandling. |
61 * Enables service defined by the given identifier. |
65 * Enables service defined by the given identifier. |
62 * This function does the service enabling and service status error checking. |
66 * This function does the service enabling and service status error checking. |
63 * If service is enabled successfully, send message |
67 * If service is enabled successfully, send message |
64 * (EPEMessageServiceEnabled) to PhoneEngine. |
68 * (EPEMessageServiceEnabled) to PhoneEngine. |
65 * |
69 * |
66 * @since S60 5.0 |
70 * @since S60 5.0 |
67 * @param aServiceId Identifier of the service. |
71 * @param aServiceId Identifier of the service. |
68 */ |
72 */ |
69 void EnableServiceL( TInt aServiceId ); |
73 void EnableServiceL( TInt aServiceId ); |
70 |
74 |
71 /** |
75 /** |
72 * From MPEServiceHandling. |
76 * From MPEServiceHandling. |
73 * Cancel current service. |
77 * Cancel current service. |
74 */ |
78 */ |
75 void CancelServiceEnabling() const; |
79 void CancelServiceEnabling() const; |
76 |
80 |
77 /** |
81 /** |
78 * From MPEServiceHandling. |
82 * From MPEServiceHandling. |
79 * Disable service. |
83 * Disable service. |
80 */ |
84 */ |
81 void DisableService() const; |
85 void DisableService() const; |
88 * |
92 * |
89 * @param aServiceId Identifier of the service. |
93 * @param aServiceId Identifier of the service. |
90 * @param aType Service type. |
94 * @param aType Service type. |
91 * @param aServiceStatus Service status. |
95 * @param aServiceStatus Service status. |
92 */ |
96 */ |
93 void ServiceStatusChanged( TInt aServiceId, |
97 // <-- QT PHONE START --> |
|
98 /*void ServiceStatusChanged( TInt aServiceId, |
94 const TCCHSubserviceType aType, |
99 const TCCHSubserviceType aType, |
95 const TCchServiceStatus& aServiceStatus ); |
100 const TCchServiceStatus& aServiceStatus );*/ |
96 private: // Constructors |
101 // <-- QT PHONE END --> |
|
102 private: // Constructors |
97 |
103 |
98 /** |
104 /** |
99 * C++ default constructor. |
105 * C++ default constructor. |
100 */ |
106 */ |
101 CPEServiceHandling( MPEPhoneModelInternal& aModel ); |
107 CPEServiceHandling( MPEPhoneModelInternal& aModel ); |
102 |
108 |
103 /** |
109 /** |
104 * By default Symbian 2nd phase constructor is private. |
110 * By default Symbian 2nd phase constructor is private. |
105 */ |
111 */ |
106 void ConstructL(); |
112 void ConstructL(); |
107 |
113 |
108 private: // functions |
114 private: // functions |
109 |
115 |
110 /** |
116 /** |
111 * Enable service, if not already enabled. |
117 * Enable service, if not already enabled. |
112 * |
118 * |
113 * @param aState Service state. |
119 * @param aState Service state. |
114 * @param aService Service. |
120 * @param aService Service. |
115 * @return Error code. |
121 * @return Error code. |
116 */ |
122 */ |
117 TInt EnableServiceIfNeeded( const TCCHSubserviceState& aState, |
123 // <-- QT PHONE START --> |
118 CCchService& aService ); |
124 /*TInt EnableServiceIfNeeded( const TCCHSubserviceState& aState, |
|
125 CCchService& aService );*/ |
|
126 |
119 /** |
127 /** |
120 * Sends ServiceHandlingError message to PhoneEngine and saves |
128 * Sends ServiceHandlingError message to PhoneEngine and saves |
121 * errorcode to member variable. |
129 * errorcode to member variable. |
122 * |
130 * |
123 * @param aErrorCode, Cch errorcode. |
131 * @param aErrorCode, Cch errorcode. |
124 */ |
132 */ |
125 void SendErrorMessage( TInt aErrorCode ); |
133 //void SendErrorMessage( TInt aErrorCode ); |
|
134 // <-- QT PHONE END --> |
126 |
135 |
127 private: // data |
136 private: // data |
128 |
137 |
129 /** |
138 /** |
130 * CCH client. |
139 * CCH client. |
131 * Own. |
140 * Own. |
132 */ |
141 */ |
133 CCch* iCchClient; |
142 // <-- QT PHONE START --> |
|
143 //CCch* iCchClient; |
|
144 // <-- QT PHONE END --> |
134 |
145 |
135 /** |
146 /** |
136 * PhoneModel. |
147 * PhoneModel. |
137 * Not own. |
148 * Not own. |
138 */ |
149 */ |
139 MPEPhoneModelInternal& iModel; |
150 MPEPhoneModelInternal& iModel; |
140 |
151 |
141 /** |
152 /** |
142 * Current service identifier. |
153 * Current service identifier. |
143 */ |
154 */ |
144 TInt iCurrentServiceId; |
155 TInt iCurrentServiceId; |
145 }; |
156 }; |
146 |
157 |
147 #endif // C_PESERVICEHANDLING_H |
158 #endif // C_PESERVICEHANDLING_H |