29 // might leave. |
29 // might leave. |
30 // ----------------------------------------------------------------------------- |
30 // ----------------------------------------------------------------------------- |
31 // |
31 // |
32 EXPORT_C TPhoneCmdParamCallHeaderData::TPhoneCmdParamCallHeaderData() : |
32 EXPORT_C TPhoneCmdParamCallHeaderData::TPhoneCmdParamCallHeaderData() : |
33 TPhoneCommandParam(), |
33 TPhoneCommandParam(), |
34 iLabelText( KNullDesC ), |
34 iLabelText( NULL ), |
35 iShortLabelText( KNullDesC ), |
35 iShortLabelText( NULL ), |
36 iCallState( 0 ), |
36 iCallState( 0 ), |
37 iNumberType( 0 ), |
37 iNumberType( 0 ), |
38 iCiphering( EFalse ), |
38 iCiphering( EFalse ), |
39 iCLIText( KNullDesC ), |
39 iCLIText( NULL ), |
40 iCNAPText( KNullDesC ), |
40 iCNAPText( NULL ), |
41 iPicture( KNullDesC ), |
41 iPicture( KNullDesC ), |
42 iCallFlag( CBubbleManager::ENormal ), |
|
43 iLine2 ( EFalse ), |
42 iLine2 ( EFalse ), |
44 iThumbnail( NULL ), |
43 iThumbnail( NULL ), |
45 iCallerText( KNullDesC ), |
44 iCallerText( KNullDesC ), |
46 iParticipantListCLI( EPhoneParticipantCLIText ), |
45 iParticipantListCLI( EPhoneParticipantCLIText ), |
47 iHasThumbnail( EFalse ), |
|
48 iCipheringIndicatorAllowed( ETrue ), |
46 iCipheringIndicatorAllowed( ETrue ), |
49 iContactLink( KNullDesC8 ), |
47 iContactLink( KNullDesC8 ), |
50 iRemotePhoneNumber( KNullDesC ) |
48 iRemotePhoneNumber( KNullDesC ) |
|
49 ,iDiverted( EFalse ) |
51 { |
50 { |
52 iParamId = EPhoneParamIdCallHeaderData; |
51 iParamId = EPhoneParamIdCallHeaderData; |
|
52 } |
|
53 |
|
54 // --------------------------------------------------------- |
|
55 // TPhoneCmdParamCallHeaderData::~TPhoneCmdParamCallHeaderData |
|
56 // --------------------------------------------------------- |
|
57 // |
|
58 EXPORT_C TPhoneCmdParamCallHeaderData::~TPhoneCmdParamCallHeaderData() |
|
59 { |
|
60 delete iLabelText; |
|
61 delete iShortLabelText; |
|
62 delete iCLIText; |
|
63 delete iCNAPText; |
53 } |
64 } |
54 |
65 |
55 // --------------------------------------------------------- |
66 // --------------------------------------------------------- |
56 // TPhoneCmdParamCallHeaderData::SetLabelText |
67 // TPhoneCmdParamCallHeaderData::SetLabelText |
57 // Sets the call header label text |
68 // Sets the call header label text |
58 // (other items were commented in a header). |
69 // (other items were commented in a header). |
59 // --------------------------------------------------------- |
70 // --------------------------------------------------------- |
60 // |
71 // |
61 EXPORT_C void TPhoneCmdParamCallHeaderData::SetLabelText( |
72 EXPORT_C void TPhoneCmdParamCallHeaderData::SetLabelText( |
62 const TDesC& aLabelText ) |
73 const TDesC& aLabelText ) |
63 { |
74 { |
64 iLabelText = aLabelText; |
75 delete iLabelText; |
65 } |
76 iLabelText = aLabelText.Alloc(); |
|
77 } |
66 |
78 |
67 // --------------------------------------------------------- |
79 // --------------------------------------------------------- |
68 // TPhoneCmdParamCallHeaderData::SetShortLabelText |
80 // TPhoneCmdParamCallHeaderData::SetShortLabelText |
69 // Sets the call header short label text |
81 // Sets the call header short label text |
70 // (other items were commented in a header). |
82 // (other items were commented in a header). |
71 // --------------------------------------------------------- |
83 // --------------------------------------------------------- |
72 // |
84 // |
73 EXPORT_C void TPhoneCmdParamCallHeaderData::SetShortLabelText( |
85 EXPORT_C void TPhoneCmdParamCallHeaderData::SetShortLabelText( |
74 const TDesC& aShortLabelText ) |
86 const TDesC& aShortLabelText ) |
75 { |
87 { |
76 iShortLabelText = aShortLabelText; |
88 delete iShortLabelText; |
|
89 iShortLabelText = aShortLabelText.Alloc(); |
77 } |
90 } |
78 |
91 |
79 // --------------------------------------------------------- |
92 // --------------------------------------------------------- |
80 // TPhoneCmdParamCallHeaderData::SetCallState |
93 // TPhoneCmdParamCallHeaderData::SetCallState |
81 // Sets the call header call state |
94 // Sets the call header call state |
127 // (other items were commented in a header). |
140 // (other items were commented in a header). |
128 // --------------------------------------------------------- |
141 // --------------------------------------------------------- |
129 // |
142 // |
130 EXPORT_C void TPhoneCmdParamCallHeaderData::SetCLIText( |
143 EXPORT_C void TPhoneCmdParamCallHeaderData::SetCLIText( |
131 const TDesC& aCLIText, |
144 const TDesC& aCLIText, |
132 CBubbleManager::TPhoneClippingDirection aDirection ) |
145 TPhoneTextClippingDirection aDirection ) |
133 { |
146 { |
134 iCLIText = aCLIText; |
147 delete iCLIText; |
|
148 iCLIText = aCLIText.Alloc(); |
135 iCLITextClippingDirection = aDirection; |
149 iCLITextClippingDirection = aDirection; |
136 } |
150 } |
137 |
151 |
138 // --------------------------------------------------------- |
152 // --------------------------------------------------------- |
139 // TPhoneCmdParamCallHeaderData::SetCNAPText |
153 // TPhoneCmdParamCallHeaderData::SetCNAPText |
141 // (other items were commented in a header). |
155 // (other items were commented in a header). |
142 // --------------------------------------------------------- |
156 // --------------------------------------------------------- |
143 // |
157 // |
144 EXPORT_C void TPhoneCmdParamCallHeaderData::SetCNAPText( |
158 EXPORT_C void TPhoneCmdParamCallHeaderData::SetCNAPText( |
145 const TDesC& aCNAPText, |
159 const TDesC& aCNAPText, |
146 CBubbleManager::TPhoneClippingDirection aDirection ) |
160 TPhoneTextClippingDirection aDirection ) |
147 { |
161 { |
148 iCNAPText = aCNAPText; |
162 delete iCNAPText; |
|
163 iCNAPText = aCNAPText.Alloc(); |
149 iCNAPTextClippingDirection = aDirection; |
164 iCNAPTextClippingDirection = aDirection; |
150 } |
165 } |
151 |
166 |
152 // --------------------------------------------------------- |
167 // --------------------------------------------------------- |
153 // TPhoneCmdParamCallHeaderData::SetPicture |
168 // TPhoneCmdParamCallHeaderData::SetPicture |
165 // TPhoneCmdParamCallHeaderData::SetCallFlag |
180 // TPhoneCmdParamCallHeaderData::SetCallFlag |
166 // Sets the call flag |
181 // Sets the call flag |
167 // (other items were commented in a header). |
182 // (other items were commented in a header). |
168 // --------------------------------------------------------- |
183 // --------------------------------------------------------- |
169 // |
184 // |
170 EXPORT_C void TPhoneCmdParamCallHeaderData::SetCallFlag( |
185 EXPORT_C void TPhoneCmdParamCallHeaderData::SetDiverted( |
171 const CBubbleManager::TPhoneCallTypeFlags aCallFlag ) |
186 TBool aDiverted ) |
172 { |
187 { |
173 iCallFlag = aCallFlag; |
188 iDiverted = aDiverted; |
174 } |
|
175 |
|
176 // --------------------------------------------------------- |
|
177 // TPhoneCmdParamCallHeaderData::AddCallFlag |
|
178 // Adds the call flag |
|
179 // (other items were commented in a header). |
|
180 // --------------------------------------------------------- |
|
181 // |
|
182 EXPORT_C void TPhoneCmdParamCallHeaderData::AddCallFlag( |
|
183 const CBubbleManager::TPhoneCallTypeFlags aCallFlag ) |
|
184 { |
|
185 iCallFlag |= aCallFlag; |
|
186 } |
189 } |
187 |
190 |
188 // --------------------------------------------------------- |
191 // --------------------------------------------------------- |
189 // TPhoneCmdParamCallHeaderData::SetLine2 |
192 // TPhoneCmdParamCallHeaderData::SetLine2 |
190 // --------------------------------------------------------- |
193 // --------------------------------------------------------- |
191 // |
194 // |
192 EXPORT_C void TPhoneCmdParamCallHeaderData::SetLine2( |
195 EXPORT_C void TPhoneCmdParamCallHeaderData::SetLine2( |
193 TBool aLine2 ) |
196 TBool aLine2 ) |
194 { |
197 { |
195 iLine2 = aLine2; |
198 iLine2 = aLine2; |
196 } |
199 } |
201 // (other items were commented in a header). |
204 // (other items were commented in a header). |
202 // --------------------------------------------------------- |
205 // --------------------------------------------------------- |
203 // |
206 // |
204 EXPORT_C const TDesC& TPhoneCmdParamCallHeaderData::LabelText() const |
207 EXPORT_C const TDesC& TPhoneCmdParamCallHeaderData::LabelText() const |
205 { |
208 { |
206 return iLabelText; |
209 return iLabelText ? *iLabelText : KNullDesC(); |
207 } |
210 } |
208 |
211 |
209 // --------------------------------------------------------- |
212 // --------------------------------------------------------- |
210 // TPhoneCmdParamCallHeaderData::ShortLabelText |
213 // TPhoneCmdParamCallHeaderData::ShortLabelText |
211 // Returns the call header short label text |
214 // Returns the call header short label text |
212 // (other items were commented in a header). |
215 // (other items were commented in a header). |
213 // --------------------------------------------------------- |
216 // --------------------------------------------------------- |
214 // |
217 // |
215 EXPORT_C const TDesC& TPhoneCmdParamCallHeaderData::ShortLabelText() const |
218 EXPORT_C const TDesC& TPhoneCmdParamCallHeaderData::ShortLabelText() const |
216 { |
219 { |
217 return iShortLabelText; |
220 return iShortLabelText ? *iShortLabelText : KNullDesC(); |
218 } |
221 } |
219 |
222 |
220 // --------------------------------------------------------- |
223 // --------------------------------------------------------- |
221 // TPhoneCmdParamCallHeaderData::CallState |
224 // TPhoneCmdParamCallHeaderData::CallState |
222 // Returns the call header call state |
225 // Returns the call header call state |
267 // (other items were commented in a header). |
270 // (other items were commented in a header). |
268 // --------------------------------------------------------- |
271 // --------------------------------------------------------- |
269 // |
272 // |
270 EXPORT_C const TDesC& TPhoneCmdParamCallHeaderData::CLIText() const |
273 EXPORT_C const TDesC& TPhoneCmdParamCallHeaderData::CLIText() const |
271 { |
274 { |
272 return iCLIText; |
275 return iCLIText ? *iCLIText : KNullDesC(); |
273 } |
276 } |
274 |
277 |
275 // --------------------------------------------------------- |
278 // --------------------------------------------------------- |
276 // TPhoneCmdParamCallHeaderData::CLITextClippingDirection |
279 // TPhoneCmdParamCallHeaderData::CLITextClippingDirection |
277 // Returns the clipping direction of the CLI text. |
280 // Returns the clipping direction of the CLI text. |
278 // (other items were commented in a header). |
281 // (other items were commented in a header). |
279 // --------------------------------------------------------- |
282 // --------------------------------------------------------- |
280 // |
283 // |
281 EXPORT_C CBubbleManager::TPhoneClippingDirection |
284 EXPORT_C TPhoneCmdParamCallHeaderData::TPhoneTextClippingDirection |
282 TPhoneCmdParamCallHeaderData::CLITextClippingDirection() const |
285 TPhoneCmdParamCallHeaderData::CLITextClippingDirection() const |
283 { |
286 { |
284 return iCLITextClippingDirection; |
287 return iCLITextClippingDirection; |
285 } |
288 } |
286 |
289 |
322 // TPhoneCmdParamCallHeaderData::CallFlag |
325 // TPhoneCmdParamCallHeaderData::CallFlag |
323 // Returns the call flag |
326 // Returns the call flag |
324 // (other items were commented in a header). |
327 // (other items were commented in a header). |
325 // --------------------------------------------------------- |
328 // --------------------------------------------------------- |
326 // |
329 // |
327 EXPORT_C TUint32 |
330 EXPORT_C TBool TPhoneCmdParamCallHeaderData::Diverted() const |
328 TPhoneCmdParamCallHeaderData::CallFlag() const |
331 { |
329 { |
332 return iDiverted; |
330 return iCallFlag; |
|
331 } |
333 } |
332 |
334 |
333 // --------------------------------------------------------- |
335 // --------------------------------------------------------- |
334 // TPhoneCmdParamCallHeaderData::Line2 |
336 // TPhoneCmdParamCallHeaderData::Line2 |
335 // Returns the call header line2 |
337 // Returns the call header line2 |