|
1 /* |
|
2 * Copyright (c) 2005-2006 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: Methods for CAiwDialDataExt class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "aiwdialdataext.h" |
|
21 #include "aiwinternaldialdata.h" |
|
22 |
|
23 // ============================ MEMBER FUNCTIONS =============================== |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // CAiwDialDataExt::CAiwDialDataExt |
|
27 // C++ default constructor can NOT contain any code, that |
|
28 // might leave. |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 CAiwDialDataExt::CAiwDialDataExt() |
|
32 { |
|
33 } |
|
34 |
|
35 // ----------------------------------------------------------------------------- |
|
36 // CAiwDialDataExt::NewL |
|
37 // Two-phased constructor. |
|
38 // ----------------------------------------------------------------------------- |
|
39 // |
|
40 EXPORT_C CAiwDialDataExt* CAiwDialDataExt::NewL() |
|
41 { |
|
42 CAiwDialDataExt* self = CAiwDialDataExt::NewLC(); |
|
43 CleanupStack::Pop( self ); |
|
44 return self; |
|
45 } |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // CAiwDialDataExt::NewLC |
|
49 // Two-phased constructor. |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 EXPORT_C CAiwDialDataExt* CAiwDialDataExt::NewLC() |
|
53 { |
|
54 CAiwDialDataExt* self = new( ELeave ) CAiwDialDataExt; |
|
55 CleanupStack::PushL( self ); |
|
56 self->ConstructL(); |
|
57 return self; |
|
58 } |
|
59 |
|
60 // --------------------------------------------------------------------------- |
|
61 // |
|
62 // Symbian OS constructor |
|
63 // |
|
64 // --------------------------------------------------------------------------- |
|
65 // |
|
66 void CAiwDialDataExt::ConstructL() |
|
67 { |
|
68 iInternalDialData = CAiwInternalDialData::NewL(); |
|
69 } |
|
70 |
|
71 // Destructor |
|
72 CAiwDialDataExt::~CAiwDialDataExt() |
|
73 { |
|
74 delete iInternalDialData; |
|
75 iInternalDialData = NULL; |
|
76 } |
|
77 |
|
78 // --------------------------------------------------------------------------- |
|
79 // Fills the parameter list. |
|
80 // --------------------------------------------------------------------------- |
|
81 // |
|
82 EXPORT_C void CAiwDialDataExt::FillInParamListL( |
|
83 CAiwGenericParamList& aInParamList ) |
|
84 { |
|
85 iInternalDialData->FillInParamListL( aInParamList ); |
|
86 } |
|
87 |
|
88 // --------------------------------------------------------------------------- |
|
89 // Sets phone number. |
|
90 // --------------------------------------------------------------------------- |
|
91 // |
|
92 EXPORT_C void CAiwDialDataExt::SetPhoneNumberL( const TDesC& aPhoneNumber ) |
|
93 { |
|
94 iInternalDialData->SetPhoneNumberL( aPhoneNumber ); |
|
95 } |
|
96 |
|
97 // --------------------------------------------------------------------------- |
|
98 // Sets call type. |
|
99 // --------------------------------------------------------------------------- |
|
100 // |
|
101 EXPORT_C void CAiwDialDataExt::SetCallType( CAiwDialData::TCallType aCallType ) |
|
102 { |
|
103 iInternalDialData->SetCallType( aCallType ); |
|
104 } |
|
105 |
|
106 // --------------------------------------------------------------------------- |
|
107 // Sets window group. |
|
108 // --------------------------------------------------------------------------- |
|
109 // |
|
110 EXPORT_C void CAiwDialDataExt::SetWindowGroup( TInt aWindowGroup ) |
|
111 { |
|
112 iInternalDialData->SetWindowGroup( aWindowGroup ); |
|
113 } |
|
114 |
|
115 // --------------------------------------------------------------------------- |
|
116 // Set initiate call. |
|
117 // --------------------------------------------------------------------------- |
|
118 // |
|
119 EXPORT_C void CAiwDialDataExt::SetInitiateCall( TBool aInitCall ) |
|
120 { |
|
121 iInternalDialData->SetInitiateCall( aInitCall ); |
|
122 } |
|
123 |
|
124 // --------------------------------------------------------------------------- |
|
125 // Set name. |
|
126 // --------------------------------------------------------------------------- |
|
127 // |
|
128 EXPORT_C void CAiwDialDataExt::SetNameL( const TDesC& aName ) |
|
129 { |
|
130 iInternalDialData->SetNameL( aName ); |
|
131 } |
|
132 |
|
133 // --------------------------------------------------------------------------- |
|
134 // Sets redial value. |
|
135 // --------------------------------------------------------------------------- |
|
136 // |
|
137 EXPORT_C void CAiwDialDataExt::SetRedial( TInt aRedial ) |
|
138 { |
|
139 iInternalDialData->SetRedial( aRedial ); |
|
140 } |
|
141 |
|
142 // --------------------------------------------------------------------------- |
|
143 // Set show number. |
|
144 // --------------------------------------------------------------------------- |
|
145 // |
|
146 EXPORT_C void CAiwDialDataExt::SetShowNumber( TBool aShowNumber ) |
|
147 { |
|
148 iInternalDialData->SetShowNumber( aShowNumber ); |
|
149 } |
|
150 |
|
151 // --------------------------------------------------------------------------- |
|
152 // Sets used contact link. |
|
153 // --------------------------------------------------------------------------- |
|
154 // |
|
155 EXPORT_C void CAiwDialDataExt::SetContactLinkL( const TDesC8& aContactLink ) |
|
156 { |
|
157 iInternalDialData->SetContactLinkL( aContactLink ); |
|
158 } |
|
159 |
|
160 // ----------------------------------------------------------------------------- |
|
161 // Sets used service id. |
|
162 // ----------------------------------------------------------------------------- |
|
163 // |
|
164 EXPORT_C void CAiwDialDataExt::SetServiceId( TUint32 aServiceId ) |
|
165 { |
|
166 return iInternalDialData->SetServiceId( aServiceId ); |
|
167 } |
|
168 |
|
169 |
|
170 // --------------------------------------------------------------------------- |
|
171 // Returns phone number. |
|
172 // --------------------------------------------------------------------------- |
|
173 // |
|
174 EXPORT_C const TDesC& CAiwDialDataExt::PhoneNumber() const |
|
175 { |
|
176 return iInternalDialData->PhoneNumber(); |
|
177 } |
|
178 |
|
179 // --------------------------------------------------------------------------- |
|
180 // Returns call type. |
|
181 // --------------------------------------------------------------------------- |
|
182 // |
|
183 EXPORT_C CAiwDialData::TCallType CAiwDialDataExt::CallType() const |
|
184 { |
|
185 return iInternalDialData->CallType(); |
|
186 } |
|
187 |
|
188 // --------------------------------------------------------------------------- |
|
189 // Return window group. |
|
190 // --------------------------------------------------------------------------- |
|
191 // |
|
192 EXPORT_C TInt CAiwDialDataExt::WindowGroup() const |
|
193 { |
|
194 return iInternalDialData->WindowGroup(); |
|
195 } |
|
196 |
|
197 // --------------------------------------------------------------------------- |
|
198 // Returns initiate call. |
|
199 // --------------------------------------------------------------------------- |
|
200 // |
|
201 EXPORT_C TBool CAiwDialDataExt::InitiateCall() const |
|
202 { |
|
203 return iInternalDialData->InitiateCall(); |
|
204 } |
|
205 |
|
206 // --------------------------------------------------------------------------- |
|
207 // Returns name. |
|
208 // --------------------------------------------------------------------------- |
|
209 // |
|
210 EXPORT_C const TDesC& CAiwDialDataExt::Name() const |
|
211 { |
|
212 return iInternalDialData->Name(); |
|
213 } |
|
214 |
|
215 // --------------------------------------------------------------------------- |
|
216 // Return redial value. |
|
217 // --------------------------------------------------------------------------- |
|
218 // |
|
219 EXPORT_C TInt CAiwDialDataExt::Redial() const |
|
220 { |
|
221 return iInternalDialData->Redial(); |
|
222 } |
|
223 // --------------------------------------------------------------------------- |
|
224 // Returns show number. |
|
225 // --------------------------------------------------------------------------- |
|
226 // |
|
227 EXPORT_C TBool CAiwDialDataExt::ShowNumber() const |
|
228 { |
|
229 return iInternalDialData->ShowNumber(); |
|
230 } |
|
231 |
|
232 // --------------------------------------------------------------------------- |
|
233 // Return contact link. |
|
234 // --------------------------------------------------------------------------- |
|
235 // |
|
236 EXPORT_C const TDesC8& CAiwDialDataExt::ContactLink() const |
|
237 { |
|
238 return iInternalDialData->ContactLink(); |
|
239 } |
|
240 |
|
241 // ----------------------------------------------------------------------------- |
|
242 // Reads used service id. |
|
243 // ----------------------------------------------------------------------------- |
|
244 // |
|
245 EXPORT_C TUint32 CAiwDialDataExt::ServiceId() const |
|
246 { |
|
247 return iInternalDialData->ServiceId(); |
|
248 } |
|
249 |
|
250 // End of File |