author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 23 Jun 2010 18:12:20 +0300 | |
changeset 45 | 6b911d05207e |
parent 37 | ba76fc04e6c2 |
child 46 | bc5a64e5bc3c |
permissions | -rw-r--r-- |
37 | 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 CPEEngineInfoImpl object. |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
#ifndef CPEENGINEINFOIMPL_H |
|
19 |
#define CPEENGINEINFOIMPL_H |
|
20 |
||
21 |
//INCLUDES |
|
22 |
#include <e32base.h> |
|
23 |
#include <badesca.h> |
|
24 |
#include <ccpdefs.h> |
|
25 |
#include <pevirtualengine.h> |
|
26 |
#include "cperemoteinfo.h" |
|
27 |
#include "mpedatastore.h" |
|
28 |
#include "cpeengineinfo.h" |
|
29 |
||
30 |
// CONSTANTS |
|
31 |
// None. |
|
32 |
||
33 |
// MACROS |
|
34 |
// None. |
|
35 |
||
36 |
// DATA TYPES |
|
37 |
NONSHARABLE_STRUCT( TPECallCommandInfo ) // For Mobile Originated Call Commands |
|
38 |
{ |
|
39 |
TChar iKeyCode; // pressed key code |
|
40 |
TInt iAudioMute; // state of microphone ( 0 = false, 1 = true ) |
|
41 |
TInt iAudioVolume; // Audio volume |
|
42 |
TPEAudioOutput iAudioOutput; // audio output path |
|
43 |
TBool iShowNote; // Status of call audio route info note. |
|
44 |
TInt iCallId; // Calls ID |
|
45 |
TPEDtmfString iDtmfString; // Dtmf string to be sent. |
|
46 |
TPEPhoneNumber iPhoneNumber; // Dialed Phonenumber, set by client |
|
47 |
TPECallType iCallType; // Type of the attempted call |
|
48 |
TUint32 iServiceId; // ServiceId |
|
49 |
TPECallOrigin iCallOrigin; // Origin of the attempted call (Phone, client or SAT) |
|
50 |
RMobileCall::TMobileCallIdRestriction iIdRestrict; // Call Id restriction setting to be used for this call |
|
51 |
TPEPhoneNumber iEmergencyNumber; // For checking is this number emergency number. |
|
52 |
TPEUserToUserInfo iUserToUserInfo; // User to user information. |
|
53 |
TPEPhoneNumber iSwitchToNumber; // Dialed Phonenumber, set by client |
|
54 |
TPEPhoneNumber iTransferToAddress; // Unattended transfer target address |
|
55 |
TInt iForwardToAddressIndex; // Array index for a address to be forwarded |
|
56 |
}; |
|
57 |
||
58 |
NONSHARABLE_STRUCT( TPEBasicInfo ) // Contains information of the phone related variables |
|
59 |
{ |
|
60 |
TBool iAudioMute; // state of microphone. |
|
61 |
TBool iTwoDigitSupportStatus; // Two Digit support status |
|
62 |
TBool iALSLineSupport; // ALS line support. |
|
63 |
TInt iAudioOutputPreference; // Audio output preference (private/public) - TODO: change type to enum when available |
|
64 |
TInt iAudioVolume; // Audio volume |
|
65 |
TInt iKeypadVolume; // Keypad volume |
|
66 |
TInt iLastCallDuration; // Call duration (seconds) |
|
67 |
TInt iPersonalToneStatus; // Personal tone status |
|
68 |
TInt iProfileId; // the id number of the profile |
|
69 |
TInt iRingingVolume; // Current ringing volume |
|
70 |
TBool iTextToSpeech; // Current text-to-speech setting |
|
71 |
TBool iPhoneNumberIsServiceCode; // flag indicating if the phone number is a service code |
|
72 |
TNWNetworkRegistrationStatus iNetworkRegistrationStatus; |
|
73 |
CCCECallParameters::TCCELineType iALSLine; // includes active als line. |
|
74 |
TPEContactFileName iRingingToneName1; // Current ringingtone name |
|
75 |
TPEContactFileName iRingingToneName2; |
|
76 |
TPEContactFileName iVideoCallRingingTone; // Video call ringingtone name |
|
77 |
TPEDtmfString iDtmfString; // Dtmf string. |
|
78 |
TPEErrorInfo iErrorInfo; // possible error code |
|
79 |
TPEProfileName iProfileName; // the name of the profile |
|
80 |
TProfileRingingType iRingingType; // Includes current ringing type |
|
81 |
TPEVoiceMailBoxNumberInfo iVMBXNumbers; // Voice mail box numbers |
|
82 |
TPEPhoneAudioRouteParameters iPhoneAudioRouteParameters; // the phone audio route parameters |
|
83 |
TCCPTone iInbandTone; // Inband tone needed to play in a call state transition or error |
|
84 |
TPEActiveForwardInfo iActiveForward; // active forward information. |
|
85 |
TPEBarringInfo iBarringInfo; // includes call barring information. |
|
86 |
TPESimState iSimState; |
|
87 |
TPESSCommandInfo iSSCommandInfo; // Contains information of the Suplementary Services command. |
|
88 |
TBool iSecureSpecified; // Secure specified status |
|
89 |
TName iDataPortName; // the name of data port currently on-loan |
|
90 |
TBool iSwitchToOngoing; // Switch to operation status |
|
91 |
}; |
|
92 |
||
93 |
NONSHARABLE_STRUCT( TPEConferenceCallInfo ) // Contains conference call related variables |
|
94 |
{ |
|
95 |
TPEState iConferenceCallState; |
|
96 |
}; |
|
97 |
||
98 |
class CPECallInfo; |
|
99 |
||
100 |
// CLASS DECLARATION |
|
101 |
||
102 |
/** |
|
103 |
* Handles telephony related information structures. |
|
104 |
* |
|
105 |
* |
|
106 |
* @lib engineinfo.lib |
|
107 |
* @since Series60_4.0 |
|
108 |
*/ |
|
109 |
NONSHARABLE_CLASS( CPEEngineInfoImpl ) |
|
110 |
: public CPEEngineInfo |
|
111 |
{ |
|
112 |
public: //Constructors and destructor |
|
113 |
||
114 |
/** |
|
115 |
* Two-phased constructor. |
|
116 |
*/ |
|
117 |
IMPORT_C static CPEEngineInfoImpl* NewL(); |
|
118 |
||
119 |
/** |
|
120 |
* Destructor. |
|
121 |
*/ |
|
122 |
virtual ~CPEEngineInfoImpl(); |
|
123 |
||
124 |
public: //New functions |
|
125 |
||
126 |
// Functions from MPEEngineInfo |
|
127 |
||
128 |
/** |
|
129 |
* Gets active als line of the phone from TPEBasicInfo-structure |
|
130 |
* @return active als line of the phone |
|
131 |
*/ |
|
132 |
const CCCECallParameters::TCCELineType& ALSLine() const; |
|
133 |
||
134 |
/** |
|
135 |
* Gets ALS support of the phone from TPEBasicInfo-structure |
|
136 |
* @return ETrue if als is supported. |
|
137 |
*/ |
|
138 |
const TBool& ALSLineSupport() const; |
|
139 |
||
140 |
/** |
|
141 |
* Gets audio mute value |
|
142 |
* @return audio mute value |
|
143 |
*/ |
|
144 |
const TBool& AudioMute() const; |
|
145 |
||
146 |
/** |
|
147 |
* Gets current audio output path |
|
148 |
* @return audio output path |
|
149 |
*/ |
|
150 |
const TPEAudioOutput& AudioOutput() const; |
|
151 |
||
152 |
/** |
|
153 |
* Gets phone audio route parameters |
|
154 |
* @return phone audio route parameters. |
|
155 |
*/ |
|
156 |
const TPEPhoneAudioRouteParameters& RouteParameters() const; |
|
157 |
||
158 |
/** |
|
159 |
* Gets audio output path availability |
|
160 |
* @return audio output path availability status |
|
161 |
*/ |
|
162 |
TBool AudioOutputAvailable( |
|
163 |
const TPEAudioOutput aOutput ) const; |
|
164 |
||
165 |
/** |
|
166 |
* Gets audio output preference |
|
167 |
* @return audio output preference |
|
168 |
*/ |
|
169 |
const TInt& AudioOutputPreference() const; |
|
170 |
||
171 |
/** |
|
172 |
* Gets audio volume value |
|
173 |
* @return audio volume value |
|
174 |
*/ |
|
175 |
const TInt& AudioVolume() const; |
|
176 |
||
177 |
/** |
|
178 |
* Gets call direction of the specified call |
|
179 |
* @param aCallId is the call identification number |
|
180 |
* @return call direction of the specified call |
|
181 |
*/ |
|
182 |
RMobileCall::TMobileCallDirection CallDirection( |
|
183 |
const TInt aCallId ) const; |
|
184 |
||
185 |
/** |
|
186 |
* Gets duration of the last call to go idle |
|
187 |
* @return call duration of the last active call |
|
188 |
*/ |
|
189 |
const TInt& CallDuration() const; |
|
190 |
||
191 |
/** |
|
192 |
* Gets call duration of the ongoing or last active call with specified id |
|
193 |
* @param aCallId is the call identification number |
|
194 |
* @return call duration of the ongoing or last active call |
|
195 |
*/ |
|
196 |
TTimeIntervalSeconds CallDuration( const TInt aCallId ) const; |
|
197 |
||
198 |
/** |
|
199 |
* Gets line information for the specified call |
|
200 |
* @param aCallId is the call identification number |
|
201 |
* @return line information for the specified call |
|
202 |
*/ |
|
203 |
CCCECallParameters::TCCELineType CallALSLine( const TInt aCallId ) const; |
|
204 |
||
205 |
/** |
|
206 |
* Gets call origin for next call attempt |
|
207 |
* @return value indicates if the call is phone, client or SAT originated |
|
208 |
*/ |
|
209 |
const TPECallOrigin& CallOriginCommand() const; |
|
210 |
||
211 |
/** |
|
212 |
* Gets start time for the specified call |
|
213 |
* @param aCallId is the call identification number |
|
214 |
* @return time of the call |
|
215 |
*/ |
|
216 |
const TTime& CallStartTime( const TInt aCallId ) const; |
|
217 |
||
218 |
/** |
|
219 |
* Gets state of the specified call |
|
220 |
* @param aCallId is the call identification number. |
|
221 |
* @return call state of a specified call |
|
222 |
*/ |
|
223 |
TPEState CallState( const TInt aCallId ) const; |
|
224 |
||
225 |
/** |
|
226 |
* Gets type of the specified call |
|
227 |
* @param aCallId is the call identification number. |
|
228 |
* @return call state of a specified call |
|
229 |
*/ |
|
230 |
TPECallType CallType( const TInt aCallId ) const; |
|
231 |
||
232 |
/** |
|
233 |
* Gets call state of a conference call |
|
234 |
* @return call state |
|
235 |
*/ |
|
236 |
TPEState ConferenceCallState() const; |
|
237 |
||
238 |
/** |
|
239 |
* Gets the name of data port currently on-loan. |
|
240 |
* Data port loaning is handled by CSPlugin and happens when a data |
|
241 |
* call goes into connected state. The dataport is released when VT components |
|
242 |
* indicate it can be released, i.e. video call hangup. |
|
243 |
* @return data port name |
|
244 |
*/ |
|
245 |
const TName& DataPortName() const; |
|
246 |
||
247 |
/** |
|
248 |
* Gets secure status from call info |
|
249 |
* @param aCallId is the call identification number. |
|
250 |
* @return TBool the secure status (on/off) |
|
251 |
*/ |
|
252 |
TBool IsSecureCall( const TInt aCallId ) const; |
|
253 |
||
254 |
/** |
|
255 |
* Gets dtmf postfix |
|
256 |
* @param aCallId is the call identification number. |
|
257 |
* @return dtmf postfix |
|
258 |
*/ |
|
259 |
const TPEDtmfString& DtmfPostFix( const TInt aCallId ) const; |
|
260 |
||
261 |
/** |
|
262 |
* Gets dtmf string |
|
263 |
* @return dtmf string |
|
264 |
*/ |
|
265 |
const TPEDtmfString& DtmfString() const; |
|
266 |
||
267 |
/** |
|
268 |
* Gets error code and cause values for the latest error |
|
269 |
* @return error code and cause values for the latest error |
|
270 |
*/ |
|
271 |
const TPEErrorInfo& ErrorInfo() const; |
|
272 |
||
273 |
/** |
|
274 |
* Gets correct inband tone for specific call state transition or error |
|
275 |
* @return the inband tone to be played |
|
276 |
*/ |
|
277 |
const TCCPTone& InbandTone() const; |
|
278 |
||
279 |
/** |
|
280 |
* Gets network registration status |
|
281 |
* @return TNWNetworkRegistrationStatus Network registration status |
|
282 |
*/ |
|
283 |
const TNWNetworkRegistrationStatus& NetworkRegistrationStatus() const; |
|
284 |
||
285 |
/** |
|
286 |
* Gets phone number |
|
287 |
* @return Reference to TPEPhoneNumber, containing the phone number of the remote party. |
|
288 |
*/ |
|
289 |
const TPEPhoneNumber& PhoneNumber() const; |
|
290 |
||
291 |
/** |
|
292 |
* Gets phone number parsing result |
|
293 |
* @return ETrue if phone number is a service code |
|
294 |
*/ |
|
295 |
const TBool& PhoneNumberIsServiceCode() const; |
|
296 |
||
297 |
/** |
|
298 |
* Gets profile id |
|
299 |
* @return profile id |
|
300 |
*/ |
|
301 |
const TInt& ProfileId() const; |
|
302 |
||
303 |
/** |
|
304 |
* Gets remote party identity |
|
305 |
* @param aCallId is the Call identification number |
|
306 |
* @return remote party identity |
|
307 |
*/ |
|
308 |
RMobileCall::TMobileCallRemoteIdentityStatus RemoteIdentity( |
|
309 |
const TInt aCallId ) const; |
|
310 |
||
311 |
/** |
|
312 |
* Gets ringing type |
|
313 |
* @return ringing type |
|
314 |
*/ |
|
315 |
const TProfileRingingType& RingingType() const; |
|
316 |
||
317 |
/** |
|
318 |
* Sets active als line value to the TPEGsmBasicInfo structure. |
|
319 |
* @param aALSLine is the active als line value. |
|
320 |
*/ |
|
321 |
void SetALSLine( const CCCECallParameters::TCCELineType& aALSLine ); |
|
322 |
||
323 |
/** |
|
324 |
* Sets ALS support value to the TPEGsmBasicInfo structure. |
|
325 |
* @param aALSLineSupport is the ALS support value. |
|
326 |
*/ |
|
327 |
void SetALSLineSupport( const TBool& aALSLineSupport ); |
|
328 |
||
329 |
/** |
|
330 |
* Sets audio mute command to TPEBasicInfo-structure |
|
331 |
* @param aAudioMute is audio mute |
|
332 |
*/ |
|
333 |
void SetAudioMuteCommand( const TInt& aAudioMute ); |
|
334 |
||
335 |
/** |
|
336 |
* Sets audio output command to TPEBasicInfo-structure |
|
337 |
* @param aOutput is audio output path |
|
338 |
* @param aShowNote is audio note value |
|
339 |
* @return None. |
|
340 |
*/ |
|
341 |
void SetAudioOutputCommand( const TPEAudioOutput& aOutput, |
|
342 |
const TBool aShowNote ); |
|
343 |
||
344 |
/** |
|
345 |
* Sets audio volume of the phone to TPEBasicInfo-structure |
|
346 |
* @param aAudioVolume is audio volume of the phone |
|
347 |
*/ |
|
348 |
void SetAudioVolumeCommand( const TInt& aAudioVolume ); |
|
349 |
||
350 |
/** |
|
351 |
* Sets CallId value to TPECallCommandInfo-structure |
|
352 |
* @param aPhoneMumber is the phone number |
|
353 |
*/ |
|
354 |
void SetCallId( const TInt& aCallId ); |
|
355 |
||
356 |
/** |
|
357 |
* Sets alsline value to TPEGsmCallInfo-structure |
|
358 |
* @param aALSLine informs which line is selected active |
|
359 |
* @param aCallId is the Call identification number. |
|
360 |
*/ |
|
361 |
void SetCallALSLine( const CCCECallParameters::TCCELineType& aALSLine, const TInt aCallId ); |
|
362 |
||
363 |
/** |
|
364 |
* Sets call type information for the following command message |
|
365 |
* @param aCallType is call type value. |
|
366 |
* @param aCallId is the Call identification number. |
|
367 |
*/ |
|
368 |
void SetCallTypeCommand( const TPECallType& aCallType ); |
|
369 |
||
370 |
/** |
|
371 |
* Sets the name of data port currently on-loan. |
|
372 |
* Data port loaning is handled by CSPlugin and happens when a data |
|
373 |
* call goes into connected state. The dataport is released when VT components |
|
374 |
* indicate it can be released, i.e. video call hangup. |
|
375 |
* @param aName is Data port name |
|
376 |
*/ |
|
377 |
void SetDataPortName( const TName& aDataPortName ); |
|
378 |
||
379 |
/** |
|
380 |
* Sets dtmf string value to TPECommandInfo-structure |
|
381 |
* @param aDtmfString is the dtmf string to be sent. |
|
382 |
*/ |
|
383 |
void SetDtmfStringCommand( const TPEDtmfString& aDtmfString ); |
|
384 |
||
385 |
/** |
|
386 |
* Sets correct inband tone for specific call state transition or error |
|
387 |
* @param aTone is the inband tone to be played |
|
388 |
*/ |
|
389 |
void SetInbandTone( const TCCPTone aTone ) ; |
|
390 |
||
391 |
/** |
|
392 |
* Sets key code value to TPECallCommandInfo-structure |
|
393 |
* @param aKeyCode is the ascii coded key code. |
|
394 |
*/ |
|
395 |
void SetKeyCode( const TChar& aKeyCode ); |
|
396 |
||
397 |
/** |
|
398 |
* Sets phone number to TPECallCommandInfo-structure |
|
399 |
* @param aPhoneNumber is the phone number |
|
400 |
*/ |
|
401 |
void SetPhoneNumber( const TPEPhoneNumber& aPhoneNumber ); |
|
402 |
||
403 |
/** |
|
404 |
* Gets active forwarding information from TPEBasicInfo-structure |
|
405 |
* @return deflect information |
|
406 |
*/ |
|
407 |
const TPEActiveForwardInfo& ActiveForwardingInfo() const; |
|
408 |
||
409 |
/** |
|
410 |
* Gets barring information from TPEBasicInfo-structure |
|
411 |
* @return barring information |
|
412 |
*/ |
|
413 |
const TPEBarringInfo& BarringInfo() const; |
|
414 |
||
415 |
/** |
|
416 |
* Gets conference value from TPECallInfo-structure |
|
417 |
* @param aCallId is the call identification number |
|
418 |
* @return call conference value |
|
419 |
*/ |
|
420 |
TInt CallConference( const TInt aCallId ) const; |
|
421 |
||
422 |
/** |
|
423 |
* Gets call control caps from the TPECallInfo-structure |
|
424 |
* @param aCallId is the call identification number |
|
425 |
* @return call control capabilities |
|
426 |
*/ |
|
427 |
TPECallControlCaps CallControlCaps( const TInt aCallId ) const; |
|
428 |
||
429 |
/** |
|
430 |
* Gets forwarded value from TPECallInfo-structure |
|
431 |
* @param aCallId is the call identification number |
|
432 |
* @return is call forwarded or not |
|
433 |
*/ |
|
434 |
TBool CallForwarded( const TInt aCallId ) const; |
|
435 |
||
436 |
/** |
|
437 |
* Gets Service information from TPECallInfo-structure |
|
438 |
* @param aCallId is the call identification number. |
|
439 |
* @return mobile call service type |
|
440 |
*/ |
|
441 |
RMobilePhone::TMobileService CallService( const TInt aCallId ) const; |
|
442 |
||
443 |
/** |
|
444 |
* Gets Conference call capabilities |
|
445 |
* @param aCallId is the call identification number |
|
446 |
* @return conference call capabilities |
|
447 |
*/ |
|
448 |
TUint32 ConferenceCallCaps( const TInt aCallId ) const; |
|
449 |
||
450 |
/** |
|
451 |
* Gets Conference call capabilities |
|
452 |
* @param aCallId is the call identification number |
|
453 |
* @return conference call member name |
|
454 |
*/ |
|
455 |
const TName& ConferenceMemberName( const TInt aCallId ) const; |
|
456 |
||
457 |
/** |
|
458 |
* Gets Conference call capabilities |
|
459 |
* @param aCallId is the call identification number |
|
460 |
* @return conference call member id |
|
461 |
*/ |
|
462 |
TInt IsConferenceMemberId( const TInt aCallId ) const; |
|
463 |
||
464 |
/** |
|
465 |
* Gets number of the conference members |
|
466 |
* @param aCallId is the call identification number |
|
467 |
* @return number of conference members |
|
468 |
*/ |
|
469 |
TInt NumberOfConferenceMembers( const TInt aCallId ) const; |
|
470 |
||
471 |
/** |
|
472 |
* Gets Sim state |
|
473 |
* @return current Sim state |
|
474 |
*/ |
|
475 |
const TPESimState& SimState() const; |
|
476 |
||
477 |
/** |
|
478 |
* Gets secure specified status from call info |
|
479 |
* @return TBool the secure specified status (on/off) |
|
480 |
*/ |
|
481 |
TBool SecureSpecified( ) const; |
|
482 |
||
483 |
/** |
|
484 |
* Gets the last suplementary services string command information |
|
485 |
* from TPESSCommandInfo-structure |
|
486 |
* @since Series90_1.1 |
|
487 |
* @return Suplementary Services command information. |
|
488 |
*/ |
|
489 |
const TPESSCommandInfo& SSCommandInfo() const; |
|
490 |
||
491 |
/** |
|
492 |
* Sets emergency numbers of the phone to TPEGsmBasicInfo-structure |
|
493 |
* @since Series90_1.1 |
|
494 |
* @param aEmergencyNumber for emergency number checking. |
|
495 |
* @return None. |
|
496 |
*/ |
|
497 |
void SetEmergencyNumber( const TPEPhoneNumber& aEmergencyNumbers ); |
|
498 |
||
499 |
/** |
|
500 |
* Gets remote party name. Contains possible CNAP name or received |
|
501 |
* skype identification |
|
502 |
* @param aCallId Call identification number. |
|
503 |
* @return Name of the remote party detemined by network. |
|
504 |
*/ |
|
505 |
const TPEContactName& RemotePartyName( |
|
506 |
const TInt aCallId ) const; |
|
507 |
||
508 |
/** |
|
509 |
* Gets error code from TPEBasicInfo-structure |
|
510 |
* @return Error code |
|
511 |
*/ |
|
512 |
TInt ErrorCode() const; |
|
513 |
||
514 |
/** |
|
515 |
* Sets switch to number to TPECallCommandInfo-structure |
|
516 |
* @param aPhoneNumber is the phone number |
|
517 |
*/ |
|
518 |
void SetSwitchToNumberCommand( const TPEPhoneNumber& aPhoneNumber ); |
|
519 |
||
520 |
/** |
|
521 |
* Gets switch to number |
|
522 |
* @return Reference to TPEPhoneNumber, containing the phone number. |
|
523 |
*/ |
|
524 |
const TPEPhoneNumber& SwitchToNumberCommand() const; |
|
525 |
||
526 |
/** |
|
527 |
* Returns transfer target from the last received unattended transfer |
|
528 |
* request or KNullDesC if transfer target is not available. |
|
529 |
* |
|
530 |
* @return Transfer target. |
|
531 |
*/ |
|
532 |
const TPEPhoneNumber& UnattendedTransferTarget( TInt aCallId ) const; |
|
533 |
||
534 |
/** |
|
535 |
* Sets transfer target from the last received unattended transfer request. |
|
536 |
* |
|
537 |
* @param aTarget Transfer target to set. |
|
538 |
* @param aCallId Call identification number. |
|
539 |
*/ |
|
540 |
void SetUnattendedTransferTarget( const TPEPhoneNumber& aTarget, |
|
541 |
TInt aCallId ); |
|
542 |
||
543 |
/** |
|
544 |
* Returns address choices from received call forward request |
|
545 |
* or NULL if addresses are not available. |
|
546 |
* |
|
547 |
* @return Address array. |
|
548 |
*/ |
|
549 |
const CDesC8Array* ForwardAddressChoices( TInt aCallId ) const; |
|
550 |
||
551 |
/** |
|
552 |
* Sets address choices from received call forward request. |
|
553 |
* |
|
554 |
* @param aArray Address array. |
|
555 |
* @param aCallId Call identification number. |
|
556 |
*/ |
|
557 |
void SetForwardAddressChoices( const CDesC8Array* aArray, |
|
558 |
TInt aCallId ); |
|
559 |
||
560 |
/** |
|
561 |
* Sets array index for user selected address. |
|
562 |
* |
|
563 |
* @param aIndex Array index for selected address. |
|
564 |
*/ |
|
565 |
void SetForwardAddressIndex( TInt aIndex ); |
|
566 |
||
567 |
/** |
|
568 |
* Returns array index for user selected address. |
|
569 |
* |
|
570 |
* @return Array index for selected address. |
|
571 |
*/ |
|
572 |
TInt ForwardAddressIndex(); |
|
573 |
||
574 |
/** |
|
575 |
* Sets unattended transfer target address |
|
576 |
* @param aTransferTarget Transfer target address |
|
577 |
* @return None |
|
578 |
*/ |
|
579 |
void SetTransferTargetCommand( const TPEPhoneNumber& aTransferTarget ); |
|
580 |
||
581 |
/** |
|
582 |
* Returns transfer target address |
|
583 |
* @return Transfer target address |
|
584 |
* address. |
|
585 |
*/ |
|
586 |
const TPEPhoneNumber& TransferTargetCommand() const; |
|
587 |
||
588 |
/** |
|
589 |
* Sets switch to operation status. |
|
590 |
* @param aValue switch to operation status. |
|
591 |
*/ |
|
592 |
void SetIsSwitchToOperationOngoing( const TBool aValue ); |
|
593 |
||
594 |
/** |
|
595 |
* Returns switch to operation status. |
|
596 |
*/ |
|
597 |
TBool IsSwitchToOperationOngoing() const; |
|
598 |
||
599 |
/** |
|
600 |
* From base class MPEEngineInfo |
|
601 |
* @see MPEEngineInfo::CallOrigin |
|
602 |
*/ |
|
603 |
TPECallOrigin CallOrigin( const TInt aCallId ) const; |
|
604 |
||
605 |
/** |
|
606 |
* Checks if given state can be found. |
|
607 |
* @param aCallState state to be checked. |
|
608 |
*/ |
|
609 |
TBool CheckIfCallStateExists( const TPEState& aCallState ); |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
610 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
611 |
/** |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
612 |
* Sets the protocol spesific error code |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
613 |
* @param aError is the error code from protocol. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
614 |
* @return None. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
615 |
*/ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
616 |
void SetProtocolError( TInt aError ); |
37 | 617 |
|
618 |
// Functions from MPEDataStore (reading values) |
|
619 |
public: |
|
620 |
/** |
|
621 |
* Gets group ids which are active to play ring tone |
|
622 |
* @return contact group id |
|
623 |
*/ |
|
624 |
const TArray< TContactItemId > AlertForGroup() const; |
|
625 |
||
626 |
/** |
|
627 |
* Gets audio mute command value |
|
628 |
* @return audio mute value for PhoneApplication commands |
|
629 |
*/ |
|
630 |
const TBool& AudioMuteCommand() const; |
|
631 |
||
632 |
/** |
|
633 |
* Gets audio output command value |
|
634 |
* @return audio output value for PhoneApplication commands |
|
635 |
*/ |
|
636 |
const TPEAudioOutput& AudioOutputCommand() const; |
|
637 |
||
638 |
/** |
|
639 |
* Gets audio note command value |
|
640 |
* @return audio output value for PhoneApplication commands |
|
641 |
*/ |
|
642 |
TBool ShowNoteCommand() const; |
|
643 |
||
644 |
/** |
|
645 |
* Gets audio volume command value |
|
646 |
* @return audio volume value for Phone Application commands |
|
647 |
*/ |
|
648 |
const TInt& AudioVolumeCommand() const; |
|
649 |
||
650 |
/** |
|
651 |
* Gets phone client information of the specified call |
|
652 |
* @since Series60_2.7 |
|
653 |
* @param aCallId is the call identification number |
|
654 |
* @return client information of the specified call |
|
655 |
*/ |
|
656 |
const MPEClientInformation& CallClientInformation( const TInt aCallId ) const; |
|
657 |
||
658 |
/** |
|
659 |
* Get caller image |
|
660 |
* @param aCallId is the call identification number. |
|
661 |
* @return caller image |
|
662 |
*/ |
|
663 |
const TPtrC CallerImage( const TInt aCallId ) const; |
|
664 |
||
665 |
/** |
|
666 |
* Get caller text |
|
667 |
* @param aCallId is the call identification number. |
|
668 |
* @return caller text |
|
669 |
*/ |
|
670 |
const TPtrC CallerText( const TInt aCallId ) const; |
|
671 |
||
672 |
/** |
|
673 |
* Get caller thumbnail |
|
674 |
* @param aCallId is the call identification number. |
|
675 |
* @return pointer to thumbnail data |
|
676 |
*/ |
|
677 |
CFbsBitmap* CallerThumbnail( const TInt aCallId ) const; |
|
678 |
||
679 |
/** |
|
680 |
* Get caller thumbnail status |
|
681 |
* @return ETrue if has thumbnail, otherwise EFalse. |
|
682 |
*/ |
|
683 |
TBool HasCallerThumbnail( const TInt aCallId ) const; |
|
684 |
||
685 |
/** |
|
686 |
* Gets identification number of a call |
|
687 |
* |
|
688 |
* This value is used for determining the target for a command message |
|
689 |
* that requires such information |
|
690 |
* @return identification number of a call |
|
691 |
*/ |
|
692 |
const TInt& CallId() const; |
|
693 |
||
694 |
/** |
|
695 |
* Gets call type information for the attempted call |
|
696 |
* @return call state of a specified call |
|
697 |
*/ |
|
698 |
const TPECallType& CallTypeCommand( ) const; |
|
699 |
||
700 |
/** |
|
701 |
* Get remote contact link or id |
|
702 |
* @param aCallId is the call identification number. |
|
703 |
* @return contact link or id |
|
704 |
*/ |
|
705 |
const CPhCntContactId& ContactId( const TInt aCallId ) const; |
|
706 |
||
707 |
/** |
|
708 |
* Get user group ids this contact is assigned to |
|
709 |
* @param aCallId is the call identification number. |
|
710 |
* @return array for group ids |
|
711 |
*/ |
|
712 |
const TArray< TContactItemId > ContactGroups( |
|
713 |
const TInt aCallId ) const; |
|
714 |
||
715 |
/** |
|
716 |
* Get contact link packet. See virtual phonebook API. |
|
717 |
* @param aCallId is the call identification number. |
|
718 |
* @return Virtual phonebook contact link. |
|
719 |
*/ |
|
720 |
const TDesC8& ContactLink( const TInt aCallId ) const; |
|
721 |
||
722 |
/** |
|
723 |
* Gets dtmf string command value |
|
724 |
* @return dtmf string value for Phone Application commands |
|
725 |
*/ |
|
726 |
const TPEDtmfString& DtmfStringCommand() const; |
|
727 |
||
728 |
/** |
|
729 |
* Gets DTMFVoiceMailBoxNumber information for line 1 |
|
730 |
* @return line 1 DTMFVoiceMailBoxNumber information |
|
731 |
* @return None. |
|
732 |
*/ |
|
733 |
const TPEPhoneNumber& DTMFVoiceMailBoxNumberLine1() const; |
|
734 |
||
735 |
/** |
|
736 |
* Gets DTMFVoiceMailBoxNumber for Line 2 information from TPEGsmBasicInfo-structure |
|
737 |
* @return line 2 DTMF VoiceMailBoxNumber information |
|
738 |
*/ |
|
739 |
const TPEPhoneNumber& DTMFVoiceMailBoxNumberLine2() const; |
|
740 |
||
741 |
/** |
|
742 |
* Gets key code of the last key press |
|
743 |
* @return key code of the last key press |
|
744 |
*/ |
|
745 |
const TChar& KeyCode() const; |
|
746 |
||
747 |
/** |
|
748 |
* Gets keypad volume value |
|
749 |
* @return keypad volume value |
|
750 |
*/ |
|
751 |
const TInt& KeypadVolume() const; |
|
752 |
||
753 |
/** |
|
754 |
* Gets a logging indicator |
|
755 |
* @param aCallId, call identification number |
|
756 |
* @return continuous logging indicator |
|
757 |
*/ |
|
758 |
TBool LoggingIndicator( const TInt aCallId ) const; |
|
759 |
||
760 |
/** |
|
761 |
* Get missed call indicator |
|
762 |
* @param aCallId, call identification number |
|
763 |
* @return missed call indicator |
|
764 |
*/ |
|
765 |
TBool MissedCall( const TInt aCallId ) const; |
|
766 |
||
767 |
/** |
|
768 |
* Get ringing tone |
|
769 |
* Returns a ringing tone defined for one of the user groups |
|
770 |
* if personal tone is not found |
|
771 |
* @param aCallId, call identification number |
|
772 |
* @return ringing tone file path |
|
773 |
*/ |
|
774 |
const TPEContactFileName& PersonalRingingTone( |
|
775 |
const TInt aCallId ) const; |
|
776 |
||
777 |
/** |
|
778 |
* Gets personal tone status |
|
779 |
* @return personal tone status |
|
780 |
*/ |
|
781 |
const TBool& PersonalToneStatus() const; |
|
782 |
||
783 |
/** |
|
784 |
* Gets profile name |
|
785 |
* @return profile name. |
|
786 |
*/ |
|
787 |
const TPEProfileName& ProfileName() const; |
|
788 |
||
789 |
/** |
|
790 |
* Get contact company name |
|
791 |
* @param aCallId, call identification number |
|
792 |
* @return company name |
|
793 |
*/ |
|
794 |
const TPEContactCompany& RemoteCompanyName( |
|
795 |
const TInt aCallId ) const; |
|
796 |
||
797 |
/** |
|
798 |
* Get contact name |
|
799 |
* Depending on user selected language may be in order: |
|
800 |
* first + last name OR last + first name |
|
801 |
* @param aCallId, call identification number |
|
802 |
* @return contact name |
|
803 |
*/ |
|
804 |
const TPEContactName& RemoteName( const TInt aCallId ) const; |
|
805 |
||
806 |
/** |
|
807 |
* Get remote end phone number |
|
808 |
* @param aCallId, call identification number |
|
809 |
* @return phone number |
|
810 |
*/ |
|
811 |
const TPEPhoneNumber& RemotePhoneNumber( |
|
812 |
const TInt aCallId ) const; |
|
813 |
||
814 |
/** |
|
815 |
* Get remote end phone number type |
|
816 |
* @param aCallId, call identification number |
|
817 |
* @return phone number type |
|
818 |
*/ |
|
819 |
const TPEPhoneNumberIdType& RemotePhoneNumberType( |
|
820 |
const TInt aCallId ) const; |
|
821 |
||
822 |
/** |
|
823 |
* Gets text to speech text for this contact. Used in |
|
824 |
* text to speech ringing tone. |
|
825 |
* @param aCallId, call identification number |
|
826 |
* @return descriptor, ownership passed. |
|
827 |
*/ |
|
828 |
const TPtrC RemoteTextToSpeechText( |
|
829 |
const TInt aCallId ) const; |
|
830 |
||
831 |
/** |
|
832 |
* Gets remote predefined dtmf strings |
|
833 |
* @param aCallId, call identification number |
|
834 |
* @return reference to string array |
|
835 |
*/ |
|
836 |
const CDesCArray& RemotePredefinedDtmfStrings( |
|
837 |
const TInt aCallId ) const; |
|
838 |
||
839 |
/** |
|
840 |
* Get remote end connected phone number |
|
841 |
* @param aCallId, call identification number |
|
842 |
* @return phone number |
|
843 |
*/ |
|
844 |
const TPEPhoneNumber& RemoteColpNumber( |
|
845 |
const TInt aCallId ) const; |
|
846 |
||
847 |
/** |
|
848 |
* Gets ringing tone name |
|
849 |
* @param aCallId, call identification number |
|
850 |
* @return name of the current ringing tone |
|
851 |
*/ |
|
852 |
virtual const TPEContactFileName& RingingTone( const TInt& aCallId ) const; |
|
853 |
||
854 |
/** |
|
855 |
* Gets current ringing volume |
|
856 |
* @return the current ringing volume |
|
857 |
*/ |
|
858 |
const TInt& RingingVolume() const; |
|
859 |
||
860 |
/** |
|
861 |
* Gets text-to-speech preference setting value |
|
862 |
* @return text-to-speech status (EFalse/ETrue) |
|
863 |
*/ |
|
864 |
const TBool& TextToSpeech() const; |
|
865 |
||
866 |
/** |
|
867 |
* @see MPEDataStore::UserToUserInformation. |
|
868 |
*/ |
|
869 |
const TPEUserToUserInfo& UserToUserInformation() const; |
|
870 |
||
871 |
/** |
|
872 |
* Gets two digit support status value |
|
873 |
* @return two digit support status (EFalse/ETrue) |
|
874 |
*/ |
|
875 |
const TBool& TwoDigitSupportStatus() const; |
|
876 |
||
877 |
/** |
|
878 |
* Gets VoiceMailBoxNumber for Line 1 information from TPEBasicInfo-structure |
|
879 |
* @return line 1 VoiceMailBoxNumber information |
|
880 |
*/ |
|
881 |
const TPEPhoneNumber& VoiceMailBoxNumberLine1() const; |
|
882 |
||
883 |
/** |
|
884 |
* Gets VoiceMailBoxNumber for Line 2 information from TPEBasicInfo-structure |
|
885 |
* @return line 2 VoiceMailBoxNumber information |
|
886 |
*/ |
|
887 |
const TPEPhoneNumber& VoiceMailBoxNumberLine2() const; |
|
888 |
||
889 |
/** |
|
890 |
* Get log forced completion indicator. |
|
891 |
* @param TInt aCallId, call identification. |
|
892 |
* @return TBool&, log forced completion indicator. |
|
893 |
*/ |
|
894 |
TBool LogForcedCompletion( const TInt aCallId ) const; |
|
895 |
||
896 |
/** |
|
897 |
* Gets whole outgoing phone number |
|
898 |
* @param TInt aCallId, call identification. |
|
899 |
* @return TPEPhoneNumber&, remote party number including DTMF string. |
|
900 |
*/ |
|
901 |
const TPEPhoneNumber& WholeOutgoingPhoneNumber( const TInt aCallId ) const; |
|
902 |
||
903 |
/** |
|
904 |
* Gets emergency numbers of the phone from TPEGsmBasicInfo-structure |
|
905 |
* @return emergency number to be checked for validity |
|
906 |
*/ |
|
907 |
const TPEPhoneNumber& EmergencyNumber() const; |
|
908 |
||
909 |
/** |
|
910 |
* ResumeHeldCall |
|
911 |
* @param aCallId is the call identification number. |
|
912 |
* @return TBool. |
|
913 |
*/ |
|
914 |
TBool ResumeHeldCall( const TInt aCallId ) const; |
|
915 |
||
916 |
/** |
|
917 |
* From base class MPEDataStore |
|
918 |
* @see MPEDataStore::CallIndex |
|
919 |
*/ |
|
920 |
TInt CallIndex( TInt aCallId ) const; |
|
921 |
||
922 |
// Functions from MPEDataStore (setting values) |
|
923 |
public: |
|
924 |
/** |
|
925 |
* Resets TPECallInfo parameters. |
|
926 |
* @param aCallId is the Call identification number. |
|
927 |
* @return None. |
|
928 |
*/ |
|
929 |
void ResetCallInfo( const TInt aCallId ); |
|
930 |
||
931 |
/** |
|
932 |
* Reset remote information |
|
933 |
* @param aCallId is the Call identification number. |
|
934 |
*/ |
|
935 |
void ResetRemoteInfo( const TInt aCallId ); |
|
936 |
||
937 |
/** |
|
938 |
* Set the group id's which are active to play ring tone. |
|
939 |
* @param aAlertForGroup group id . |
|
940 |
*/ |
|
941 |
void SetAlertForGroup( const TArray< TContactItemId >& aAlertForGroup ); |
|
942 |
||
943 |
/** |
|
944 |
* Sets audio mute state of the phone to TPEBasicInfo-structure |
|
945 |
* @param aAudioMute is audio mute state of the phone (ETrue = mute on) |
|
946 |
*/ |
|
947 |
void SetAudioMute( const TBool aAudioMute ); |
|
948 |
||
949 |
/** |
|
950 |
* Sets audio output path |
|
951 |
* @param aOutput is the audio output path. |
|
952 |
* @param aPreviousOutput is the audio previous output path. |
|
953 |
* @param aShowNote is audio note value |
|
954 |
*/ |
|
955 |
void SetAudioOutput( const TPEAudioOutput aOutput, |
|
956 |
const TPEAudioOutput aPreviousOutput, |
|
957 |
const TBool aShowNote ); |
|
958 |
||
959 |
/** |
|
960 |
* Sets hands free mode of the phone to TPEBasicInfo-structure |
|
961 |
* @param aHandsfreeMode is handsfree mode of the phone(on,off). |
|
962 |
*/ |
|
963 |
void SetAvailableAudioOutputs( |
|
964 |
const TArray< TPEAudioOutput >& aAvailableOutputs ); |
|
965 |
||
966 |
// TODO: change TInt param to enum type when it is available |
|
967 |
/** |
|
968 |
* Sets audio output preference to TPEBasicInfo-structure |
|
969 |
* @param aOutputPreference is audio output preference (public/private) |
|
970 |
*/ |
|
971 |
void SetAudioOutputPreference( const TInt aOutputPreference ); |
|
972 |
||
973 |
/** |
|
974 |
* Sets audio volume of the phone to TPEBasicInfo-structure |
|
975 |
* @param aAudioVolume is audio volume of the phone. |
|
976 |
*/ |
|
977 |
void SetAudioVolume( const TInt aAudioVolume ); |
|
978 |
||
979 |
/** |
|
980 |
* Sets phone client information to TPECallInfo-structure |
|
981 |
* @param aClientInformation includes phone client information. |
|
982 |
* @param aCallId is the Call identification number. |
|
983 |
*/ |
|
984 |
void SetCallClientInformation( |
|
985 |
const MPEClientInformation& aClientInformation, |
|
986 |
const TInt aCallId ); |
|
987 |
||
988 |
/** |
|
989 |
* Sets Call direction to TPECallInfo-structure |
|
990 |
* @param aCallDirection is the Call direction value (0=Unknown/1=MO/2=MT) |
|
991 |
* @param aCallId is the Call identification number. |
|
992 |
*/ |
|
993 |
void SetCallDirection( |
|
994 |
const RMobileCall::TMobileCallDirection& aCallDirection, |
|
995 |
const TInt aCallId ); |
|
996 |
||
997 |
/** |
|
998 |
* Sets call duration of the last call to Idle to TPEBasicInfo-structure |
|
999 |
* @param aCallDuration is the duration of the call. |
|
1000 |
*/ |
|
1001 |
void SetCallDuration( const TInt& aCallDuration ); |
|
1002 |
||
1003 |
/** |
|
1004 |
* Sets duration of the call to TPECallInfo-structure |
|
1005 |
* @param aDuration is duration of the call. |
|
1006 |
* @param aCallId is the Call identification number. |
|
1007 |
*/ |
|
1008 |
void SetCallDuration( |
|
1009 |
const TTimeIntervalSeconds& aCallDuration, |
|
1010 |
const TInt aCallId ); |
|
1011 |
||
1012 |
/** |
|
1013 |
* Set caller image |
|
1014 |
* @param aCallerImage caller image |
|
1015 |
* @param aCallId is the call identification number |
|
1016 |
*/ |
|
1017 |
void SetCallerImage( |
|
1018 |
const TPtrC aCallerImage, |
|
1019 |
const TInt aCallId ); |
|
1020 |
||
1021 |
/** |
|
1022 |
* Set caller text |
|
1023 |
* @param aCallerText caller text |
|
1024 |
* @param aCallId is the call identification number |
|
1025 |
*/ |
|
1026 |
void SetCallerText( |
|
1027 |
const TPtrC aCallerText, |
|
1028 |
const TInt aCallId ); |
|
1029 |
||
1030 |
/** |
|
1031 |
* Set caller thumbnail |
|
1032 |
* @param aCallerThumbnail caller thumbnail |
|
1033 |
* @param aCallId is the call identification number |
|
1034 |
*/ |
|
1035 |
void SetCallerThumbnail( |
|
1036 |
CFbsBitmap* aCallerThumbnail, |
|
1037 |
const TInt aCallId ); |
|
1038 |
||
1039 |
/** |
|
1040 |
* Set caller thumbnail status |
|
1041 |
* @param aStatus caller thumbnail status |
|
1042 |
* @param aCallId is the call identification number |
|
1043 |
*/ |
|
1044 |
void SetHasCallerThumbnail( |
|
1045 |
TBool aStatus, |
|
1046 |
const TInt aCallId ); |
|
1047 |
||
1048 |
/** |
|
1049 |
* Sets call origin for the next call attempt |
|
1050 |
* @param aOrigin indicates if the call is phone, client or SAT originated |
|
1051 |
*/ |
|
1052 |
void SetCallOriginCommand( const TPECallOrigin& aOrigin ); |
|
1053 |
||
1054 |
/** |
|
1055 |
* Sets predefined dtmf strings |
|
1056 |
* @param aArray, is reference to string array |
|
1057 |
* @param aCallId, is the call identification number |
|
1058 |
*/ |
|
1059 |
void SetPredefinedDtmfStrings( |
|
1060 |
const CDesCArray& aArray, |
|
1061 |
const TInt aCallId ); |
|
1062 |
||
1063 |
/** |
|
1064 |
* Sets start time of the call to TPECallInfo-structure |
|
1065 |
* @param aStartTime is the start time of the call. |
|
1066 |
* @param aCallId is the Call identification number. |
|
1067 |
*/ |
|
1068 |
void SetCallStartTime( const TTime& aCallStartTime, const TInt aCallId ); |
|
1069 |
||
1070 |
/** |
|
1071 |
* Sets Call State value to TPECallInfo-structure |
|
1072 |
* @param aCallState is call state value. |
|
1073 |
* @param aCallId is the Call identification number. |
|
1074 |
*/ |
|
1075 |
void SetCallState( const TPEState& aCallState, const TInt aCallId ); |
|
1076 |
||
1077 |
/** |
|
1078 |
* Sets call type information |
|
1079 |
* @param aCallType is the call type. |
|
1080 |
* @param aCallId is the Call identification number. |
|
1081 |
*/ |
|
1082 |
void SetCallType( const TPECallType& aCallType, const TInt aCallId ); |
|
1083 |
||
1084 |
/** |
|
1085 |
* Sets Secure status to call info |
|
1086 |
* @since Series60_4.0 |
|
1087 |
* @param SecureStatus is the secure status (on/off) |
|
1088 |
* @param aCallId is the Call identification number. |
|
1089 |
*/ |
|
1090 |
void SetCallSecureStatus( const TBool aSecureStatus, const TInt aCallId ); |
|
1091 |
||
1092 |
/** |
|
1093 |
* Sets call state of a conference call |
|
1094 |
* @param aCallState is call state value. |
|
1095 |
*/ |
|
1096 |
void SetConferenceCallState( const TPEState& aCallState ); |
|
1097 |
||
1098 |
/** |
|
1099 |
* Sets Secure specified status to call info |
|
1100 |
* @since Series60_5.0 |
|
1101 |
* @param SecureSpecifiedStatus is the secure status (on/off) |
|
1102 |
*/ |
|
1103 |
void SetSecureSpecified( const TBool aSecureSpecifiedStatus ); |
|
1104 |
||
1105 |
/** |
|
1106 |
* Set user group ids this contact is assigned to |
|
1107 |
* Array is reset if the operation fails. |
|
1108 |
* @param aGroupIdArray array of group ids |
|
1109 |
* @param aCallId is the Call identification number |
|
1110 |
*/ |
|
1111 |
void SetContactGroups( |
|
1112 |
TArray< TContactItemId >& aGroupIdArray, |
|
1113 |
const TInt aCallId ); |
|
1114 |
||
1115 |
/** |
|
1116 |
* Set contact link or id |
|
1117 |
* @param aContactId pointer to contact id |
|
1118 |
* @param aCallId is the Call identification number |
|
1119 |
* @return |
|
1120 |
*/ |
|
1121 |
void SetContactId( |
|
1122 |
CPhCntContactId* aContactId, |
|
1123 |
const TInt aCallId ); |
|
1124 |
||
1125 |
/** |
|
1126 |
* Sets dtmf postfix value to TPEBasicInfo-structure |
|
1127 |
* @param aDtmfPostFix is persed dtmf postfix. |
|
1128 |
* @param aCallId is the call identification number. |
|
1129 |
*/ |
|
1130 |
void SetDtmfPostFix( const TPEDtmfString& aDtmfPostFix, const TInt aCallId ); |
|
1131 |
||
1132 |
/** |
|
1133 |
* Sets dtmf string value to TPEBasicInfo-structure |
|
1134 |
* @param aDtmfString is the dtmf string to be sent. |
|
1135 |
*/ |
|
1136 |
void SetDtmfString( const TPEDtmfString& aDtmfString ); |
|
1137 |
||
1138 |
/** |
|
1139 |
* Sets DTMFVoiceMailBoxNumber for Line 1 information from TPEGsmBasicInfo-structure |
|
1140 |
* @param aDTMFVoiceMailBoxNumberLine1 includes line 1 DTMFVoiceMailBoxNumber information. |
|
1141 |
*/ |
|
1142 |
void SetDTMFVoiceMailBoxNumberLine1( const TDesC& aDTMFVoiceMailBoxNumberLine1 ); |
|
1143 |
||
1144 |
/** |
|
1145 |
* Sets DTMFVoiceMailBoxNumber for Line 2 information from TPEGsmBasicInfo-structure |
|
1146 |
* @param aDTMFVoiceMailBoxNumberLine2 includes line 2 DTMFVoiceMailBoxNumber information. |
|
1147 |
*/ |
|
1148 |
void SetDTMFVoiceMailBoxNumberLine2( const TDesC& aDTMFVoiceMailBoxNumberLine2 ); |
|
1149 |
||
1150 |
/** |
|
1151 |
* Sets error code of the phone to TPEBasicInfo-structure |
|
1152 |
* @param aErrorCode is error code value |
|
1153 |
*/ |
|
1154 |
void SetErrorCode( const TInt aErrorCode ); |
|
1155 |
||
1156 |
/** |
|
1157 |
* Sets Keypad volume of the phone to TPEBasicInfo-structure |
|
1158 |
* @param aKeypadVolume is Keypad volume of the phone. |
|
1159 |
*/ |
|
1160 |
void SetKeypadVolume( const TInt aKeypadVolume ); |
|
1161 |
||
1162 |
/** |
|
1163 |
* Sets a logging indicator to TPECallInfo-tructure |
|
1164 |
* @param aLoggingIndicator, Continuous logging indicator. |
|
1165 |
* @param aCallId, the call identification number. |
|
1166 |
*/ |
|
1167 |
void SetLoggingIndicator( const TBool aLoggingIndicator, const TInt aCallId ); |
|
1168 |
||
1169 |
/** |
|
1170 |
* Set missed call indicator. |
|
1171 |
* @param TBool& aMissedCall, missed call indicator. |
|
1172 |
* @param TInt aCallId, call identification. |
|
1173 |
*/ |
|
1174 |
void SetMissedCall( const TBool& aMissedCall, const TInt aCallId ); |
|
1175 |
||
1176 |
/** |
|
1177 |
* Sets network information to TPEBasicInfo-structure |
|
1178 |
* @param aNetworkInfo is the current network information. |
|
1179 |
*/ |
|
1180 |
void SetNetworkRegistrationStatus( |
|
1181 |
const TNWNetworkRegistrationStatus& aRegistrationStatus ); |
|
1182 |
||
1183 |
/** |
|
1184 |
* Set personal ringing tone |
|
1185 |
* Used to set a ringing tone defined for one of the user groups |
|
1186 |
* if personal tone is not found |
|
1187 |
* @param aRingingTonepath, personal ringing tone |
|
1188 |
* @param aCallId, call identification number |
|
1189 |
*/ |
|
1190 |
void SetPersonalRingingTone( |
|
1191 |
const TPEContactFileName& aRingingTonepath, |
|
1192 |
const TInt aCallId ); |
|
1193 |
||
1194 |
/** |
|
1195 |
* Sets personal tone status value to TPEBasicInfo-structure. |
|
1196 |
* @param aPersonalTone is personal tone status (EFalse/ETrue). |
|
1197 |
*/ |
|
1198 |
void SetPersonalToneStatus( const TInt& aPersonalToneStatus ); |
|
1199 |
||
1200 |
/** |
|
1201 |
* Sets phone number parsing result |
|
1202 |
* @param aServiceCode indicates if phone number a service code |
|
1203 |
*/ |
|
1204 |
void SetPhoneNumberIsServiceCode( const TBool& aServiceCode ); |
|
1205 |
||
1206 |
/** |
|
1207 |
* Sets profile id to TPEBasicInfo-structure |
|
1208 |
* @param aProfileId is the identification number of the profile |
|
1209 |
*/ |
|
1210 |
void SetProfileId( const TInt aProfileId ); |
|
1211 |
||
1212 |
/** |
|
1213 |
* Sets profile name to TPEBasicInfo-structure |
|
1214 |
* @param aProfileName is the name of the profile |
|
1215 |
*/ |
|
1216 |
void SetProfileName( const TPEProfileName& aProfileName ); |
|
1217 |
||
1218 |
/** |
|
1219 |
* Sets remote identity status |
|
1220 |
* @param aIdentity is the status of identity |
|
1221 |
*/ |
|
1222 |
void SetRemoteIdentity( |
|
1223 |
const RMobileCall::TMobileCallRemoteIdentityStatus& aIdentity, |
|
1224 |
const TInt aCallId ); |
|
1225 |
||
1226 |
/** |
|
1227 |
* Set contact company name |
|
1228 |
* @param aCompanyName company name |
|
1229 |
* @param aCallId, is the call identification number |
|
1230 |
*/ |
|
1231 |
void SetRemoteCompanyName( |
|
1232 |
const TPEContactName& aCompanyName, |
|
1233 |
const TInt aCallId ); |
|
1234 |
||
1235 |
/** |
|
1236 |
* Set remote end connected phone number |
|
1237 |
* @param aColpNumber phone number |
|
1238 |
* @param aCallId, is the call identification number. |
|
1239 |
*/ |
|
1240 |
void SetRemoteColpNumber( |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
1241 |
const TPEPhoneNumber& aColpNumber, |
37 | 1242 |
const TInt aCallId ); |
1243 |
||
1244 |
/** |
|
1245 |
* Set contact name |
|
1246 |
* Depending on user selected language may be in order: |
|
1247 |
* first + last name OR last + first name |
|
1248 |
* @param aContactName contact name |
|
1249 |
* @param aCallId, is the call identification number |
|
1250 |
*/ |
|
1251 |
void SetRemoteName( |
|
1252 |
const TPEContactName& aContactName, |
|
1253 |
const TInt aCallId ); |
|
1254 |
||
1255 |
/** |
|
1256 |
* Set remote end phone number |
|
1257 |
* @param aPhoneNumber phone number |
|
1258 |
* @param aCallId, is the call identification number |
|
1259 |
*/ |
|
1260 |
void SetRemotePhoneNumber( |
|
1261 |
const TPEPhoneNumber& aPhoneNumber, |
|
1262 |
const TInt aCallId ); |
|
1263 |
||
1264 |
/** |
|
1265 |
* Set remote end phone number type |
|
1266 |
* @param aPhoneNumberType phone number id |
|
1267 |
* @param aCallId, is the call identification number |
|
1268 |
*/ |
|
1269 |
void SetRemotePhoneNumberType( |
|
1270 |
TPEPhoneNumberIdType aPhoneNumberType, |
|
1271 |
const TInt aCallId ); |
|
1272 |
||
1273 |
/** |
|
1274 |
* Set remote end Text To Speech Text |
|
1275 |
* @param aText Text To Speech Text |
|
1276 |
* @param aCallId, is the call identification number |
|
1277 |
*/ |
|
1278 |
void SetRemoteTextToSpeechText( |
|
1279 |
HBufC* aText, |
|
1280 |
TInt aCallId ); |
|
1281 |
||
1282 |
/** |
|
1283 |
* Sets ringing type to TPEBasicInfo-structure |
|
1284 |
* @param aRingingToneName is the current ringintone name for line 1. |
|
1285 |
*/ |
|
1286 |
void SetRingingTone1( const TPEContactFileName& aRingingToneName ); |
|
1287 |
||
1288 |
/** |
|
1289 |
* Sets ringing type to TPEBasicInfo-structure |
|
1290 |
* @param aRingingToneName is the current ringintone name for line 2. |
|
1291 |
*/ |
|
1292 |
void SetRingingTone2( const TPEContactFileName& aRingingToneName ); |
|
1293 |
||
1294 |
/** |
|
1295 |
* Sets video call ringing tone name to TPEBasicInfo-structure |
|
1296 |
* @param aRingingToneName is the current ringintone name for video call. |
|
1297 |
*/ |
|
1298 |
void SetVideoCallRingingTone( |
|
1299 |
const TPEContactFileName& aRingingToneName ); |
|
1300 |
||
1301 |
/** |
|
1302 |
* Sets ringing type to TPEBasicInfo-structure |
|
1303 |
* @param aRinginType is the ringintype |
|
1304 |
*/ |
|
1305 |
void SetRingingType( const TProfileRingingType& aRingingType ); |
|
1306 |
||
1307 |
/** |
|
1308 |
* Sets ringing volume to TPEBasicInfo-structure |
|
1309 |
* @param aRingingVolume is the current ringingtone name. |
|
1310 |
*/ |
|
1311 |
void SetRingingVolume( const TInt& aRingingVolume ); |
|
1312 |
||
1313 |
/** |
|
1314 |
* Sets text-to-speech to TPEBasicInfo-structure |
|
1315 |
* @param aTextToSpeech is the current text-to-speech preference setting. |
|
1316 |
*/ |
|
1317 |
void SetTextToSpeech( const TBool aTextToSpeech ); |
|
1318 |
||
1319 |
/** |
|
1320 |
* Sets two digit support status of the phone to TPEBasicInfo-structure |
|
1321 |
* @param aTwoDigitSupportStatus is support status (EFalse/ETrue). |
|
1322 |
*/ |
|
1323 |
void SetTwoDigitSupportStatus( const TBool aTwoDigitSupportStatus ); |
|
1324 |
||
1325 |
/** |
|
1326 |
* Gets VoiceMailBoxNumber for Line 1 information from TPEGsmBasicInfo-structure |
|
1327 |
* @param aVMBXL1 includes line 1 VoiceMailBoxNumber information. |
|
1328 |
*/ |
|
1329 |
void SetVoiceMailBoxNumberLine1( const TDesC& aVoiceMailBoxNumberLine1 ); |
|
1330 |
||
1331 |
/** |
|
1332 |
* Gets VoiceMailBoxNumber for Line 2 information from TPEGsmBasicInfo-structure |
|
1333 |
* @param aVMBXL2 includes line 2 VoiceMailBoxNumber information. |
|
1334 |
*/ |
|
1335 |
void SetVoiceMailBoxNumberLine2( const TDesC& aVoiceMailBoxNumberLine2 ); |
|
1336 |
||
1337 |
/** |
|
1338 |
* Set log forced completion indicator. |
|
1339 |
* @param TBool aForcedCOmpletion, log forced completion indicator. |
|
1340 |
* @param TInt aCallId, call identification. |
|
1341 |
*/ |
|
1342 |
void SetLogForcedCompletion( const TBool aForcedCompletion, const TInt aCallId ); |
|
1343 |
||
1344 |
/** |
|
1345 |
* Sets whole outgoing phone number |
|
1346 |
* @param aPhoneNumber is the phone number |
|
1347 |
* @param TInt aCallId, call identification. |
|
1348 |
*/ |
|
1349 |
void SetWholeOutgoingPhoneNumber( |
|
1350 |
const TPEPhoneNumber& aPhoneNumber, |
|
1351 |
const TInt aCallId ); |
|
1352 |
||
1353 |
/** |
|
1354 |
* Returns the service-id used for the command. |
|
1355 |
* @since S60 3.2 |
|
1356 |
* @param none |
|
1357 |
* @return TUint32 Service-id |
|
1358 |
*/ |
|
1359 |
TUint32 ServiceIdCommand() const; |
|
1360 |
||
1361 |
/** |
|
1362 |
* Set the service-id for the command. |
|
1363 |
* @since S60 3.2 |
|
1364 |
* @param TUint32 Service-id |
|
1365 |
* @return none |
|
1366 |
*/ |
|
1367 |
void SetServiceIdCommand( TUint32 aServiceId ); |
|
1368 |
||
1369 |
/** |
|
1370 |
* Returns the service-id used for the call. |
|
1371 |
* @since S60 3.2 |
|
1372 |
* @param none |
|
1373 |
* @return TUint32 Service-id |
|
1374 |
*/ |
|
1375 |
TUint32 ServiceId( const TInt aCallId ) const; |
|
1376 |
||
1377 |
/** |
|
1378 |
* Set the service-id for the call. |
|
1379 |
* @since S60 3.2 |
|
1380 |
* @param TUint32 Service-id |
|
1381 |
* @return none |
|
1382 |
*/ |
|
1383 |
void SetServiceId( const TInt aCallId, TUint32 aServiceId ); |
|
1384 |
||
1385 |
||
1386 |
/** |
|
1387 |
* Sets Barring information to TPEGsmBasicInfo-structure |
|
1388 |
* @param aBarringInfo includes call Barring information |
|
1389 |
* @return |
|
1390 |
*/ |
|
1391 |
void SetBarringInfo( const TPEBarringInfo& aBarringInfo ); |
|
1392 |
||
1393 |
/** |
|
1394 |
* Sets Confrence value to TPEGsmCallInfo-structure |
|
1395 |
* @param aCallConference informs is the call a member of conference call. |
|
1396 |
* -2 = normal call, -1 = conference master, >= 0 master id |
|
1397 |
* @param aCallId is the Call identification number. |
|
1398 |
* @return None. |
|
1399 |
*/ |
|
1400 |
void SetCallConference( const TInt aCallConference, const TInt aCallId ); |
|
1401 |
||
1402 |
/** |
|
1403 |
* Sets Call control caps to TPEGsmCallInfo-structure |
|
1404 |
* @param aCallControlCaps the value of the call control caps |
|
1405 |
* @param aCallId is the Call identification number. |
|
1406 |
* @return None. |
|
1407 |
*/ |
|
1408 |
void SetCallControlCaps( const TPECallControlCaps& aCallControlCaps, const TInt aCallId ); |
|
1409 |
||
1410 |
/** |
|
1411 |
* Sets forwarded value to TPEGsmCallInfo-structure |
|
1412 |
* @param aForwarded Indicates if incoming call was forwarded |
|
1413 |
* @param aCallId is the Call identification number. |
|
1414 |
* @return None. |
|
1415 |
*/ |
|
1416 |
void SetCallForwarded( const TBool aCallForwarded, const TInt aCallId ); |
|
1417 |
||
1418 |
/** |
|
1419 |
* Sets Call service to TPEGsmCallInfo-structure |
|
1420 |
* @param aCallService is the Call service value |
|
1421 |
* @param aCallId is the Call identification number. |
|
1422 |
* @return None. |
|
1423 |
*/ |
|
1424 |
void SetCallService( |
|
1425 |
const RMobilePhone::TMobileService& aCallService, |
|
1426 |
const TInt aCallId ); |
|
1427 |
||
1428 |
/** |
|
1429 |
* Sets Conference capabilities to TPEGsmCallInfo structure. |
|
1430 |
* @param aCaps, conference capabilities |
|
1431 |
* @param aCallId is the Call identification number. |
|
1432 |
* @return None. |
|
1433 |
*/ |
|
1434 |
void SetConferenceCallCaps( const TUint32 aCaps, const TInt aCallId ); |
|
1435 |
||
1436 |
/** |
|
1437 |
* Sets added or removed members TName information to TPEGsmCallInfo structure |
|
1438 |
* @param aName is the TName information of added or removed member. |
|
1439 |
* @param aCallId is the Call identification number. |
|
1440 |
* @return None. |
|
1441 |
*/ |
|
1442 |
void SetConferenceMemberInfo( |
|
1443 |
const TName& aConferenceMemberName, |
|
1444 |
const TInt aConferenceMemberCallId, |
|
1445 |
const TInt aCallId ); |
|
1446 |
||
1447 |
/** |
|
1448 |
* Sets deflect information to the TPEGsmBasicInfo structure. |
|
1449 |
* @param aActiveForward is the active forward information. |
|
1450 |
* @return None. |
|
1451 |
*/ |
|
1452 |
void SetDeflectInfo( const TPEActiveForwardInfo& aActiveForward ); |
|
1453 |
||
1454 |
/** |
|
1455 |
* Set iResumeHeldCall value to TPEGsmCallInfo structure |
|
1456 |
* @param aResumeHeldCall |
|
1457 |
* @param aCallId is the Call identification number. |
|
1458 |
* @return None. |
|
1459 |
*/ |
|
1460 |
void SetResumeHeldCall( const TBool aResumeHeldCall, const TInt aCallId ); |
|
1461 |
||
1462 |
/** |
|
1463 |
* Sets the number of conference members to TPEGsmCallInfo structure |
|
1464 |
* @param aNumberOfMembers, number of conference members |
|
1465 |
* @param aCallId is the Call identification number. |
|
1466 |
* @return None. |
|
1467 |
*/ |
|
1468 |
void SetNumberOfConferenceMembers( const TInt aNumberOfMembers, const TInt aCallId ); |
|
1469 |
||
1470 |
/** |
|
1471 |
* Sets Sim state to TPEGsmBasicInfo-structure |
|
1472 |
* @param aSimState is the Sim state |
|
1473 |
* @return None. |
|
1474 |
*/ |
|
1475 |
void SetSimState( const TPESimState& aSimState ); |
|
1476 |
||
1477 |
/** |
|
1478 |
* Sets Suplementary Services command information to TPESSCommandInfo-structure |
|
1479 |
* @param aSSCommandInfo includes Suplementary Services command information. |
|
1480 |
* @return None. |
|
1481 |
*/ |
|
1482 |
void SetSSCommandInfo( const TPESSCommandInfo& aSSCommandInfo ); |
|
1483 |
||
1484 |
/** |
|
1485 |
* @see MPEDataStore::UserToUserInformation |
|
1486 |
* @since S60 5.0 |
|
1487 |
*/ |
|
1488 |
void SetUserToUserInformation( const TPEUserToUserInfo& aUUI ); |
|
1489 |
||
1490 |
/** |
|
1491 |
* Sets remote party name given by network to TPECallInfo structure. |
|
1492 |
* @param aName Remote party name. |
|
1493 |
* @param aCallId Call identification number. |
|
1494 |
*/ |
|
1495 |
void SetRemotePartyName( |
|
1496 |
const TPEContactName& aName, |
|
1497 |
const TInt aCallId ); |
|
1498 |
||
1499 |
CCCECallParameters& CallParameters(); |
|
1500 |
||
1501 |
/** |
|
1502 |
* From base class MPEDataStore |
|
1503 |
* @see MPEDataStore::SetCallIndex |
|
1504 |
*/ |
|
1505 |
void SetCallIndex( TInt aCallIndex, TInt aCallId ); |
|
1506 |
||
1507 |
/** |
|
1508 |
* From base class MPEDataStore |
|
1509 |
* @see MPEDataStore::SetCallOrigin |
|
1510 |
*/ |
|
1511 |
void SetCallOrigin( TPECallOrigin aOrigin, TInt aCallId ); |
|
1512 |
||
1513 |
/** |
|
1514 |
* Sets call Phonebook contact identifier. |
|
1515 |
* @param aContactId is the contact identifier for a call |
|
1516 |
*/ |
|
1517 |
void SetContactId2( const TInt aContactId ); |
|
1518 |
||
1519 |
/** |
|
1520 |
* Returns Phonebook contact identifier. |
|
1521 |
*/ |
|
1522 |
TInt ContactId2() const; |
|
1523 |
||
1524 |
private: |
|
1525 |
/** |
|
1526 |
* C++ default constructor. |
|
1527 |
*/ |
|
1528 |
CPEEngineInfoImpl(); |
|
1529 |
||
1530 |
/** |
|
1531 |
* By default EPOC constructor is private. |
|
1532 |
*/ |
|
1533 |
void ConstructL(); |
|
1534 |
||
1535 |
protected: // Data |
|
1536 |
// Contains information of the calls |
|
1537 |
RPointerArray<CPECallInfo> iCurrentCalls; |
|
1538 |
||
1539 |
// Contains information of the conference call |
|
1540 |
TPEConferenceCallInfo iConferenceCallInfo; |
|
1541 |
||
1542 |
// For Mobile Originated Call Commands information |
|
1543 |
TPECallCommandInfo iCallCommandInfo; |
|
1544 |
||
1545 |
// Contains information of the phone related variables |
|
1546 |
TPEBasicInfo iBasicInfo; |
|
1547 |
||
1548 |
// Remote data array |
|
1549 |
RPointerArray< CPERemoteInfo >* iRemoteInfo; |
|
1550 |
||
1551 |
// Available audio outputs array |
|
1552 |
TFixedArray<TBool, KPEMaxAudioOutputs> iAvailableAudioOutputs; |
|
1553 |
||
1554 |
// Contains the group id's which are active for ringtone |
|
1555 |
RArray< TContactItemId > iAlertForGroup; |
|
1556 |
||
1557 |
/** |
|
1558 |
* CCE call dial parameters |
|
1559 |
*/ |
|
1560 |
CCCECallParameters *iCallParams; |
|
1561 |
||
1562 |
/** |
|
1563 |
* Phonebook contact identifier. |
|
1564 |
*/ |
|
1565 |
TInt iContactId; |
|
1566 |
}; |
|
1567 |
||
1568 |
||
1569 |
#endif // CPEENGINEINFOIMPL_H |
|
1570 |
||
1571 |
// End of File |