1 /* |
|
2 * Copyright (c) 2002-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 CPESingleCall object |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPESINGLECALL_H |
|
20 #define CPESINGLECALL_H |
|
21 |
|
22 //INCLUDES |
|
23 #include <pevirtualengine.h> |
|
24 |
|
25 #include "cpesinglecallobserver.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 class MPEMessageSender; |
|
41 |
|
42 // CLASS DECLARATION |
|
43 |
|
44 /** |
|
45 * Create call handling requests to Call Command object |
|
46 * @lib CallHandling.lib |
|
47 * @since Series60_5.0 |
|
48 */ |
|
49 class CPESingleCall |
|
50 : public CPESingleCallObserver |
|
51 { |
|
52 public: |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 ~CPESingleCall(); |
|
57 |
|
58 /** |
|
59 * Two-phased constructor. |
|
60 */ |
|
61 static CPESingleCall* NewL( MPEMessageSender& aOwner ); |
|
62 |
|
63 private: |
|
64 |
|
65 /** |
|
66 * C++ default constructor. |
|
67 */ |
|
68 CPESingleCall( MPEMessageSender& aOwner ); |
|
69 |
|
70 /** |
|
71 * By default Symbian 2nd phase constructor is private. |
|
72 */ |
|
73 void ConstructL(); |
|
74 |
|
75 public: // Overwrite CPECall::SendMessage |
|
76 /** |
|
77 * Reroutes call messages from other objects to CPEPhoneData object. |
|
78 * @param const TInt aMessage, message code of the message. |
|
79 * @return |
|
80 */ |
|
81 void SendMessage( const MEngineMonitor::TPEMessagesFromPhoneEngine aMessage ); |
|
82 |
|
83 public: //New functions |
|
84 |
|
85 /** |
|
86 * Creates answer request to data call command object |
|
87 * @return possible error code |
|
88 */ |
|
89 TInt Answer(); |
|
90 |
|
91 /** |
|
92 * Creates dial request to call command object |
|
93 * @param aNumber remote number |
|
94 * @return possible error code |
|
95 */ |
|
96 virtual TInt Dial( const RMobileCall::TTelNumberC& aNumber ); |
|
97 |
|
98 /** |
|
99 * Disables FDN checking for SIM ATK originated calls |
|
100 */ |
|
101 void DisableFDNCheck(); |
|
102 |
|
103 /** |
|
104 * Creates deflect request to cce call object |
|
105 * @param aMobileAddress the address of the remote party |
|
106 * @param aDeflectType determinates the destination of the deflected call. |
|
107 */ |
|
108 void Deflect( |
|
109 const RMobilePhone::TMobileAddress& aMobileAddress, |
|
110 const RMobileCall::TMobileCallDeflect& aDeflectType ); |
|
111 |
|
112 /** |
|
113 * Creates emergency dial request to cce call object |
|
114 * @param aEmergencyNumber an emergency number to dial |
|
115 */ |
|
116 void DialEmergency( const TPEPhoneNumber& aEmergencyNumber ); |
|
117 |
|
118 /** |
|
119 * Gets call control caps |
|
120 * @param aCallControlCaps is the value of the call control caps |
|
121 */ |
|
122 //void IMPORT_C GetCallControlCaps( TPECallControlCaps& aCallControlCaps ); |
|
123 |
|
124 /** |
|
125 * Creates hold request to cce call object |
|
126 * @return possible error code |
|
127 */ |
|
128 TInt Hold(); |
|
129 |
|
130 /** |
|
131 * Creates resume request to cce call object |
|
132 * @return possible error code |
|
133 */ |
|
134 TInt Resume(); |
|
135 |
|
136 /** |
|
137 * Creates swap request to cce call object |
|
138 * @return possible error code |
|
139 */ |
|
140 TInt Swap(); |
|
141 |
|
142 /** |
|
143 * Creates transfer request to cce call object |
|
144 */ |
|
145 void Transfer( const TDesC& aTransferTarget ); |
|
146 |
|
147 /** |
|
148 * Returns the inband tone needed to play in state transition |
|
149 */ |
|
150 TCCPTone Tone(); |
|
151 |
|
152 /** |
|
153 * Creates hangup request to cce call object |
|
154 * @return possible error code |
|
155 */ |
|
156 TInt HangUp(); |
|
157 |
|
158 /** |
|
159 * Offers call parameters |
|
160 * @param aCallInfo the current call information. |
|
161 * @return KErrNone or possible error code from the GetMobileCallInfo method. |
|
162 */ |
|
163 TInt GetCallInfo( RMobileCall::TMobileCallInfoV3& aCallInfo ); |
|
164 |
|
165 /** |
|
166 * Sets Missed call indicator. |
|
167 * @param aMissed, Missed call indicator. |
|
168 * @return KErrNone. |
|
169 */ |
|
170 void SetMissedCall( TBool aMissed ); |
|
171 |
|
172 /** |
|
173 * Gets Missed call indicator. |
|
174 * @param aMissedCall, Missed call indicator. |
|
175 * @return KErrNone. |
|
176 */ |
|
177 TInt GetMissedCall( TBool& aMissedCall ) const; |
|
178 |
|
179 /** |
|
180 * Get call's secure status. |
|
181 * @param None. |
|
182 * @return TBool ETrue if security is enabled, else EFalse. |
|
183 */ |
|
184 TBool IsSecureCall() const; |
|
185 |
|
186 /** |
|
187 * Get call's secure specified status. |
|
188 * @param None. |
|
189 * @return TBool ETrue if secure specified |
|
190 */ |
|
191 TBool SecureSpecified() const; |
|
192 |
|
193 /** |
|
194 * Accepts unattended transfer request. |
|
195 * @return System wide error code. |
|
196 */ |
|
197 TInt AcceptUnattendedTransfer(); |
|
198 |
|
199 /** |
|
200 * Rejects unattended transfer request. |
|
201 * @return System wide error code. |
|
202 */ |
|
203 TInt RejectUnattendedTransfer(); |
|
204 |
|
205 /** |
|
206 * Creates unattended transfer request to cce call object |
|
207 * @param aTransferTo Target address of the transfer |
|
208 * @return System wide error code |
|
209 */ |
|
210 TInt UnattendedTransfer( const TDesC& aTransferTo ) const; |
|
211 |
|
212 /** |
|
213 * Starts call forwarding to selected address. |
|
214 * |
|
215 * @param aIndex Address index. |
|
216 * @return System wide error code. |
|
217 */ |
|
218 TInt ForwardCallToAddress( TInt aIndex ); |
|
219 |
|
220 protected: |
|
221 |
|
222 // Phone information from the etel |
|
223 RTelServer::TPhoneInfo iPhoneInfo; |
|
224 // The information of the current call |
|
225 RMobileCall::TMobileCallInfoV3 iCallInfo; |
|
226 // Missed call indicator |
|
227 TBool iMissedCall; |
|
228 |
|
229 }; |
|
230 |
|
231 #endif // CPESINGLECALL_H |
|
232 |
|
233 // End of File |
|