|
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 * TelephonyActNetwork 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; // forward reference |
|
31 class CAsyncRequestBaseAct; |
|
32 |
|
33 class CNotifyLineStatusAct : public CAsyncRequestBaseAct |
|
34 /** |
|
35 This is an active object responsible for interacting with Multimode ETel |
|
36 */ |
|
37 { |
|
38 |
|
39 public: |
|
40 static CNotifyLineStatusAct* NewL(CTelephonyFunctions* aTelephonyFunctions, CTelephonyFunctions::TOperations aPendingOperation, MIncomingCallNameSubject& aIncomingCallNameSubject); |
|
41 ~CNotifyLineStatusAct(); |
|
42 void NotifyLineStatus(TDes8* aLineStatus); |
|
43 void CancelFromClient(); |
|
44 |
|
45 protected: |
|
46 void Complete(); |
|
47 TInt RunError(TInt aLeaveCode); |
|
48 void DoCancel(); |
|
49 |
|
50 private: |
|
51 CNotifyLineStatusAct(CTelephonyFunctions* aTelephonyFunctions, CTelephonyFunctions::TOperations aPendingOperation, MIncomingCallNameSubject& aIncomingCallNameSubject); |
|
52 CTelephonyFunctions* iTelephonyFunctions; |
|
53 CTelephony::TCallStatusV1* iISVCallStatus; |
|
54 RMobileCall:: TMobileCallStatus iMMCallStatus; |
|
55 CTelephonyFunctions::TOperations iPendingOperation; |
|
56 /** |
|
57 Reference to a CTelephonyFunctions active object which |
|
58 impletements the MIncomingCallNameSubject interface. |
|
59 */ |
|
60 MIncomingCallNameSubject& iIncomingCallNameSubject; |
|
61 /** |
|
62 Indicates whether a client is interested in changes in the line |
|
63 status. Set to ETrue if the client has requested to be notified of |
|
64 line status changes, EFalse otherwise. |
|
65 */ |
|
66 TBool iLineStatusRequestedByClient; |
|
67 /** |
|
68 Possible states this AO can be in. |
|
69 */ |
|
70 enum TNotifyLineStatusActState |
|
71 { |
|
72 ENotifyLineStatusActOperating, |
|
73 ENotifyLineStatusActCleanUp |
|
74 }; |
|
75 /** |
|
76 The state this AO is in. |
|
77 */ |
|
78 TNotifyLineStatusActState iState; |
|
79 }; |
|
80 |