1 /* |
|
2 * Copyright (c) 2008-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: Phone client information for a single call |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CPECLIENTINFORMATIONIMPL_H |
|
20 #define C_CPECLIENTINFORMATIONIMPL_H |
|
21 |
|
22 #include "cpeclientinformation.h" |
|
23 |
|
24 /** |
|
25 * Holds phone client information. |
|
26 * |
|
27 * This information is specific on a per-call basis. |
|
28 */ |
|
29 NONSHARABLE_CLASS( CPEClientInformationImpl ) |
|
30 : public CPEClientInformation |
|
31 { |
|
32 |
|
33 public: |
|
34 |
|
35 /** |
|
36 * Two-phased constructor. |
|
37 * |
|
38 * @return The newly created object. Ownership is transferred to the caller. |
|
39 */ |
|
40 static CPEClientInformationImpl* NewL(); |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 virtual ~CPEClientInformationImpl(); |
|
46 |
|
47 // from base class MPEClientInformation |
|
48 |
|
49 void Reset(); |
|
50 void Set( const MPEClientInformation& aSource ); |
|
51 void SetContactLink( const TDesC8& aLink ); |
|
52 const TDesC8& ContactLink() const; |
|
53 void SetName( const TName& aName ); |
|
54 const TName& Name() const; |
|
55 void SetNumber( const TPEPhoneNumber& aNumber ); |
|
56 const TPEPhoneNumber& Number() const; |
|
57 void SetCallType( TPECallType aType ); |
|
58 TPECallType CallType() const; |
|
59 void SetAllowMatch( TBool aAllow ); |
|
60 TBool AllowMatch() const; |
|
61 void SetShowNumber( TBool aShow ); |
|
62 TBool ShowNumber() const; |
|
63 void SetEndOtherCalls( TBool aEndOtherCalls ); |
|
64 TBool EndOtherCalls() const; |
|
65 |
|
66 private: |
|
67 |
|
68 /** |
|
69 * Constructor. |
|
70 */ |
|
71 CPEClientInformationImpl(); |
|
72 |
|
73 /** |
|
74 * Second-phase constructor. |
|
75 */ |
|
76 void ConstructL(); |
|
77 |
|
78 private: |
|
79 |
|
80 /** |
|
81 * Contact link used for retrieving contact information. |
|
82 * Owned. |
|
83 */ |
|
84 RBuf8 iContactLink; |
|
85 |
|
86 /** |
|
87 * Name corresponding the phone number. |
|
88 */ |
|
89 TName iName; |
|
90 |
|
91 /** |
|
92 * Phone number to dial. |
|
93 */ |
|
94 TPEPhoneNumber iNumber; |
|
95 |
|
96 /** |
|
97 * Type of the call. |
|
98 */ |
|
99 TPECallType iCallType; |
|
100 |
|
101 /** |
|
102 * Flag to indicate if contact matching is allowed. |
|
103 */ |
|
104 TBool iAllowMatch; |
|
105 |
|
106 /** |
|
107 * Flag to indicate if phone number should be shown. |
|
108 */ |
|
109 TBool iShowNumber; |
|
110 |
|
111 /** |
|
112 * Flag to indicate if other calls should be terminated before attempting this one. |
|
113 */ |
|
114 TBool iEndOtherCalls; |
|
115 |
|
116 }; |
|
117 |
|
118 #endif // C_CPECLIENTINFORMATIONIMPL_H |
|