1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
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 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: This file contains the header file of the CPESystemCallState object |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPESYSTEMCALLSTATE_H |
|
20 #define CPESYSTEMCALLSTATE_H |
|
21 |
|
22 //INCLUDES |
|
23 #include <pevirtualengine.h> |
|
24 #include <e32property.h> |
|
25 #include "mpedatastore.h" |
|
26 |
|
27 // CONSTANTS |
|
28 // None |
|
29 |
|
30 // MACROS |
|
31 // None |
|
32 |
|
33 // DATA TYPES |
|
34 // None. |
|
35 |
|
36 // FUNCTION PROTOTYPES |
|
37 // None. |
|
38 |
|
39 // FORWARD DECLARATIONS |
|
40 |
|
41 // CLASS DECLARATION |
|
42 class CPECallArrayOwner; |
|
43 class MPEDataStore; |
|
44 class CPESingleCall; |
|
45 |
|
46 /** |
|
47 * Create call handling requests to Call Command object |
|
48 * @lib CallHandling.lib |
|
49 * @since Series60_4.0 |
|
50 */ |
|
51 class CPESystemCallState |
|
52 : public CBase |
|
53 { |
|
54 public: |
|
55 /** |
|
56 * Destructor. |
|
57 */ |
|
58 ~CPESystemCallState(); |
|
59 |
|
60 /** |
|
61 * Two-phased constructor. |
|
62 */ |
|
63 static CPESystemCallState* NewL( |
|
64 CPECallArrayOwner& aCallArrayOwner, |
|
65 MPEDataStore& aDataStore ); |
|
66 |
|
67 private: //Constructors and descructor |
|
68 |
|
69 /** |
|
70 * By default Symbian 2nd phase constructor is private. |
|
71 */ |
|
72 void ConstructL(); |
|
73 |
|
74 /** |
|
75 * C++ default constructor. |
|
76 */ |
|
77 CPESystemCallState( |
|
78 CPECallArrayOwner& aCallArrayOwner, |
|
79 MPEDataStore& aDataStore ); |
|
80 |
|
81 public: //New functions |
|
82 |
|
83 /** |
|
84 * NotifySystemCallStateChanged. |
|
85 */ |
|
86 void NotifySystemCallStateChanged( |
|
87 MEngineMonitor::TPEMessagesFromPhoneEngine aMessage, |
|
88 TInt aCallId ); |
|
89 |
|
90 private: //New functions |
|
91 |
|
92 /** |
|
93 * HandleIncoming. |
|
94 */ |
|
95 void HandleIncoming( TInt aCallId ); |
|
96 |
|
97 /** |
|
98 * HandleDialling. |
|
99 */ |
|
100 void HandleDialling( TInt aCallId ); |
|
101 |
|
102 /** |
|
103 * HandleConnected. |
|
104 */ |
|
105 void HandleConnected( TInt aCallId ); |
|
106 |
|
107 /** |
|
108 * HandleDisconnecting. |
|
109 */ |
|
110 void HandleDisconnecting( TInt aCallId ); |
|
111 |
|
112 /** |
|
113 * HandleIdle. |
|
114 */ |
|
115 void HandleIdle( TInt aCallId ); |
|
116 |
|
117 /** |
|
118 * HandleHeld. |
|
119 */ |
|
120 void HandleHeld( TInt aCallId ); |
|
121 |
|
122 /** |
|
123 * HandleAnswering. |
|
124 */ |
|
125 void HandleAnswering( TInt aCallId ); |
|
126 |
|
127 /** |
|
128 * HandleConnecting. |
|
129 */ |
|
130 void HandleConnecting( TInt aCallId ); |
|
131 |
|
132 /** |
|
133 * HandleCallControlCapsChanged. |
|
134 */ |
|
135 void HandleCallControlCapsChanged(); |
|
136 |
|
137 /** |
|
138 * SetCallInformatioAPICallType. |
|
139 */ |
|
140 void SetCallInformatioAPICallType( CPESingleCall& aCallData ); |
|
141 |
|
142 /** |
|
143 * HandleRemotePartyChanged. |
|
144 */ |
|
145 void HandleRemotePartyChanged( TInt aCallId ); |
|
146 |
|
147 private: |
|
148 |
|
149 // Call array owner |
|
150 CPECallArrayOwner& iCallArrayOwner; |
|
151 // MPEDataStore |
|
152 MPEDataStore& iDataStore; |
|
153 // TPSCTsyCallState |
|
154 TPSCTsyCallState iCallStateTsy; |
|
155 // TPSCTsyCallType |
|
156 TPSCTsyCallType iCallTypeTsy; |
|
157 // P&S property for call state |
|
158 RProperty iCallStateProperty; |
|
159 // Current call state value |
|
160 TPSCTsyCallState iCallStateInCenRep; |
|
161 // Current call type value |
|
162 TPSCTsyCallType iCallTypeInCenRep; |
|
163 // P&S property for call type |
|
164 RProperty iCallTypeProperty; |
|
165 |
|
166 }; |
|
167 |
|
168 #endif // CPESYSTEMCALLSTATE_H |
|
169 |
|
170 // End of File |
|