telephonyutils/etel3rdpartyapi/inc/TelephonyActPhone.h
changeset 0 3553901f7fa8
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 /*
       
     2 * Copyright (c) 2009 Sony Ericsson Mobile Communications AB
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Sony Ericsson Mobile Communications AB - initial contribution.
       
    11 * Nokia Corporation - additional changes.
       
    12 * 
       
    13 * Contributors:
       
    14 * 
       
    15 * Description:
       
    16 * TelephonyActPhone Active Object class, used by CTelephonyFunctions class.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 /**
       
    22  @file
       
    23 */
       
    24 
       
    25 #include <etel.h>
       
    26 #include <etelmm.h>
       
    27 #include "Etel3rdParty.h"
       
    28 
       
    29 class CTelephony;
       
    30 class CTelephonyFunctions;	
       
    31 class CAsyncRequestBaseAct;
       
    32 
       
    33 class CGetPhoneIdAct : public CAsyncRequestBaseAct
       
    34 /**
       
    35 This is an active object responsible for interacting with Multimode ETel
       
    36 */
       
    37 	{
       
    38 	
       
    39 public:		
       
    40 	static CGetPhoneIdAct* NewL(CTelephonyFunctions* aTelephonyFunctions);
       
    41 	~CGetPhoneIdAct();
       
    42 	void GetPhoneId(TDes8& aId);
       
    43 			
       
    44 protected:
       
    45 	void Complete();//from CAsyncRequestBaseAct
       
    46 	TInt RunError(TInt aLeaveCode);//from CActive
       
    47 	void DoCancel();//from CActive
       
    48 	
       
    49 private:	
       
    50 	CGetPhoneIdAct(CTelephonyFunctions* aTelephonyFunctions);
       
    51 	CTelephonyFunctions* iTelephonyFunctions;
       
    52 	CTelephony::TPhoneIdV1* iISVphoneId;
       
    53 	RMobilePhone::TMobilePhoneIdentityV1 iMMphoneId;		
       
    54 	};
       
    55 
       
    56 class CGetSubscriberIdAct : public CAsyncRequestBaseAct
       
    57 /**
       
    58 This is an active object responsible for interacting with Multimode ETel
       
    59 */
       
    60 	{
       
    61 	
       
    62 public:		
       
    63 	static CGetSubscriberIdAct* NewL(CTelephonyFunctions* aTelephonyFunctions);
       
    64 	~CGetSubscriberIdAct();
       
    65 	void GetSubscriberId(TDes8& aId);
       
    66 			
       
    67 protected:	
       
    68 	void Complete(); //from CAsyncRequestBaseAct
       
    69 	TInt RunError(TInt aLeaveCode); //from CActive
       
    70 	void DoCancel(); //from CActive
       
    71 	
       
    72 private:	
       
    73 	CGetSubscriberIdAct(CTelephonyFunctions* aTelephonyFunctions);
       
    74 	CTelephonyFunctions* iTelephonyFunctions;
       
    75 	CTelephony::TSubscriberIdV1* iISVSubscriberIdV1;
       
    76 	RMobilePhone:: TMobilePhoneSubscriberId iMMSubscriberId;		
       
    77 	};
       
    78 	
       
    79 class CGetIndicatorAct : public CAsyncRequestBaseAct
       
    80 /**
       
    81 This is an active object responsible for interacting with Multimode ETel
       
    82 */
       
    83 	{
       
    84 	
       
    85 public:		
       
    86 	static CGetIndicatorAct* NewL(CTelephonyFunctions* aTelephonyFunctions);
       
    87 	~CGetIndicatorAct();
       
    88 	void GetIndicator(TDes8& aId);
       
    89 			
       
    90 protected:	
       
    91 	void Complete(); //from CAsyncRequestBaseAct
       
    92 	TInt RunError(TInt aLeaveCode); //from CActive
       
    93 	void DoCancel(); //from CActive
       
    94 	
       
    95 private:	
       
    96 	CGetIndicatorAct(CTelephonyFunctions* aTelephonyFunctions);
       
    97 	CTelephonyFunctions* iTelephonyFunctions;
       
    98 	CTelephony::TIndicatorV1* iISVIndicator;
       
    99 	TUint32 iIndicator;
       
   100 	TUint32 iIndicatorCaps;		
       
   101 	};
       
   102 
       
   103 class CGetBatteryInfoAct : public CAsyncRequestBaseAct
       
   104 /**
       
   105 This is an active object responsible for interacting with Multimode ETel
       
   106 */
       
   107 	{
       
   108 	
       
   109 public:		
       
   110 	static CGetBatteryInfoAct* NewL(CTelephonyFunctions* aTelephonyFunctions);
       
   111 	~CGetBatteryInfoAct();
       
   112 	void GetBatteryInfo(TDes8& aId);
       
   113 			
       
   114 protected:	
       
   115 	void Complete(); //from CAsyncRequestBaseAct
       
   116 	TInt RunError(TInt aLeaveCode); //from CActive
       
   117 	void DoCancel(); //from CActive
       
   118 	
       
   119 private:	
       
   120 	CGetBatteryInfoAct(CTelephonyFunctions* aTelephonyFunctions);
       
   121 	CTelephonyFunctions* iTelephonyFunctions;
       
   122 	CTelephony::TBatteryInfoV1* iISVBatteryInfo;
       
   123 	RMobilePhone::TMobilePhoneBatteryInfoV1 iMMBatteryInfo;
       
   124 	};
       
   125 
       
   126 class CGetSignalStrengthAct : public CAsyncRequestBaseAct
       
   127 /**
       
   128 This is an active object responsible for interacting with Multimode ETel
       
   129 */
       
   130 	{
       
   131 	
       
   132 public:		
       
   133 	static CGetSignalStrengthAct* NewL(CTelephonyFunctions* aTelephonyFunctions);
       
   134 	~CGetSignalStrengthAct();
       
   135 	void GetSignalStrength(TDes8& aId);
       
   136 			
       
   137 protected:	
       
   138 	void Complete(); //from CAsyncRequestBaseAct
       
   139 	TInt RunError(TInt aLeaveCode); //from CActive
       
   140 	void DoCancel(); //from CActive
       
   141 	
       
   142 private:	
       
   143 	CGetSignalStrengthAct(CTelephonyFunctions* aTelephonyFunctions);
       
   144 	CTelephonyFunctions* iTelephonyFunctions;
       
   145 	CTelephony::TSignalStrengthV1* iISVSignalStrength;
       
   146 	TInt32 iSignalStrength;
       
   147 	TInt8 iBar;
       
   148 	};
       
   149 
       
   150 class CGetIccLockInfoAct : public CAsyncRequestBaseAct
       
   151 /**
       
   152 This is an active object responsible for interacting with Multimode ETel
       
   153 */
       
   154 	{
       
   155 	
       
   156 public:		
       
   157 	static CGetIccLockInfoAct* NewL(CTelephonyFunctions* aTelephonyFunctions);
       
   158 	~CGetIccLockInfoAct();
       
   159 	void GetIccLockInfo(CTelephony::TIccLock aLock, TDes8& aId);
       
   160 			
       
   161 protected:	
       
   162 	void Complete(); //from CAsyncRequestBaseAct
       
   163 	TInt RunError(TInt aLeaveCode); //from CActive
       
   164 	void DoCancel(); //from CActive
       
   165 	
       
   166 private:	
       
   167 	CGetIccLockInfoAct(CTelephonyFunctions* aTelephonyFunctions);
       
   168 	CTelephonyFunctions* iTelephonyFunctions;
       
   169 	CTelephony::TIccLockInfoV1* iISVLockInfo;
       
   170 	RMobilePhone::TMobilePhoneLockInfoV1 iMMLockInfo;
       
   171 	RMobilePhone::TMobilePhoneLockInfoV1Pckg iMMLockInfo1Pckg;
       
   172 	};
       
   173 	
       
   174 class CSendDTMFTonesAct : public CAsyncRequestBaseAct
       
   175 /**
       
   176 This is an active object responsible for interacting with Multimode ETel
       
   177 */
       
   178 	{
       
   179 	
       
   180 public:		
       
   181 	static CSendDTMFTonesAct* NewL(CTelephonyFunctions* aTelephonyFunctions);
       
   182 	~CSendDTMFTonesAct();
       
   183 	void SendDTMFTones(const TDesC& aTones);
       
   184 			
       
   185 protected:	
       
   186 	void Complete(); //from CAsyncRequestBaseAct
       
   187 	TInt RunError(TInt aLeaveCode); //from CActive
       
   188 	void DoCancel(); //from CActive
       
   189 
       
   190 	
       
   191 private:	
       
   192 	CSendDTMFTonesAct(CTelephonyFunctions* aTelephonyFunctions);
       
   193 	CTelephonyFunctions* iTelephonyFunctions;
       
   194 	};
       
   195 
       
   196 class CFlightModeChangeAct : public CAsyncRequestBaseAct
       
   197 /**
       
   198 This is an active object responsible for interacting with Multimode ETel
       
   199 */
       
   200 	{
       
   201 	
       
   202 public:		
       
   203 	static CFlightModeChangeAct* NewL(CTelephonyFunctions* aTelephonyFunctions);
       
   204 	~CFlightModeChangeAct();
       
   205 	void FlightModeChangeL(TDes8& aDes);
       
   206 			
       
   207 protected:	
       
   208 	void Complete(); //from CAsyncRequestBaseAct
       
   209 	TInt RunError(TInt aLeaveCode); //from CActive
       
   210 	void DoCancel(); //from CActive
       
   211 	
       
   212 private:	
       
   213 	CFlightModeChangeAct(CTelephonyFunctions* aTelephonyFunctions);
       
   214 	CTelephonyFunctions* iTelephonyFunctions;
       
   215 	CTelephony::TFlightModeV1* iFlightMode;
       
   216 	};
       
   217 
       
   218 class CNotifyIndicatorAct : public CAsyncRequestBaseAct
       
   219 /**
       
   220 This is an active object responsible for interacting with Multimode ETel
       
   221 */
       
   222 	{
       
   223 	
       
   224 public:		
       
   225 	static CNotifyIndicatorAct* NewL(CTelephonyFunctions* aTelephonyFunctions);
       
   226 	~CNotifyIndicatorAct();
       
   227 	void NotifyIndicator(TDes8& aId);
       
   228 			
       
   229 protected:	
       
   230 	void Complete(); //from CAsyncRequestBaseAct
       
   231 	TInt RunError(TInt aLeaveCode); //from CActive
       
   232 	void DoCancel(); //from CActive
       
   233 	
       
   234 private:	
       
   235 	CNotifyIndicatorAct(CTelephonyFunctions* aTelephonyFunctions);
       
   236 	CTelephonyFunctions* iTelephonyFunctions;
       
   237 	CTelephony::TIndicatorV1* iISVIndicator;
       
   238 	TUint32 iIndicator;
       
   239 	TUint32 iIndicatorCaps;		
       
   240 	};
       
   241 
       
   242 class CNotifyBatteryInfoAct : public CAsyncRequestBaseAct
       
   243 /**
       
   244 This is an active object responsible for interacting with Multimode ETel
       
   245 */
       
   246 	{
       
   247 	
       
   248 public:		
       
   249 	static CNotifyBatteryInfoAct* NewL(CTelephonyFunctions* aTelephonyFunctions);
       
   250 	~CNotifyBatteryInfoAct();
       
   251 	void NotifyBatteryInfo(TDes8& aId);
       
   252 			
       
   253 protected:	
       
   254 	void Complete(); //from CAsyncRequestBaseAct
       
   255 	TInt RunError(TInt aLeaveCode); //from CActive
       
   256 	void DoCancel(); //from CActive
       
   257 	
       
   258 private:	
       
   259 	CNotifyBatteryInfoAct(CTelephonyFunctions* aTelephonyFunctions);
       
   260 	CTelephonyFunctions* iTelephonyFunctions;
       
   261 	CTelephony::TBatteryInfoV1* iISVBatteryInfo;
       
   262 	RMobilePhone::TMobilePhoneBatteryInfoV1 iMMBatteryInfo;
       
   263 	};
       
   264 
       
   265 class CNotifySignalStrengthAct : public CAsyncRequestBaseAct
       
   266 /**
       
   267 This is an active object responsible for interacting with Multimode ETel
       
   268 */
       
   269 	{
       
   270 	
       
   271 public:		
       
   272 	static CNotifySignalStrengthAct* NewL(CTelephonyFunctions* aTelephonyFunctions);
       
   273 	~CNotifySignalStrengthAct();
       
   274 	void NotifySignalStrength(TDes8& aId);
       
   275 			
       
   276 protected:	
       
   277 	void Complete(); //from CAsyncRequestBaseAct
       
   278 	TInt RunError(TInt aLeaveCode); //from CActive
       
   279 	void DoCancel(); //from CActive
       
   280 	
       
   281 private:	
       
   282 	CNotifySignalStrengthAct(CTelephonyFunctions* aTelephonyFunctions);
       
   283 	CTelephonyFunctions* iTelephonyFunctions;
       
   284 	CTelephony::TSignalStrengthV1* iISVSignalStrength;
       
   285 	TInt32 iSignalStrength;
       
   286 	TInt8 iBar;
       
   287 	};
       
   288 
       
   289 
       
   290 class CNotifyIccLockInfoAct : public CAsyncRequestBaseAct
       
   291 /**
       
   292 This is an active object responsible for interacting with Multimode ETel
       
   293 */
       
   294 	{
       
   295 	
       
   296 public:		
       
   297 	static CNotifyIccLockInfoAct* NewL(CTelephonyFunctions* aTelephonyFunctions);
       
   298 	~CNotifyIccLockInfoAct();
       
   299 	void NotifyIccLockInfo(CTelephony::TIccLock aLock, TDes8& aId);
       
   300 			
       
   301 protected:	
       
   302 	void Complete(); //from CAsyncRequestBaseAct
       
   303 	TInt RunError(TInt aLeaveCode); //from CActive
       
   304 	void DoCancel(); //from CActive
       
   305 	
       
   306 private:	
       
   307 	CNotifyIccLockInfoAct(CTelephonyFunctions* aTelephonyFunctions);
       
   308 	CTelephonyFunctions* iTelephonyFunctions;
       
   309 	//Pointer to the client data where notify Pin1 lock info will be stored
       
   310 	CTelephony::TIccLockInfoV1* iISVPin1LockInfo;
       
   311 	//Pointer to the client data where notify Pin2 lock info will be stored
       
   312 	CTelephony::TIccLockInfoV1* iISVPin2LockInfo;
       
   313 	RMobilePhone::TMobilePhoneLockInfoV1 iMMLockInfo;
       
   314 	RMobilePhone::TMobilePhoneLockInfoV1Pckg iMMLockInfoV1Pckg;
       
   315 	RMobilePhone::TMobilePhoneLock iMMLock;
       
   316 	};