1 /* |
|
2 * Copyright (c) 2002-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: Encapsulates the message data for sending services. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include <s32file.h> |
|
22 #include <txtrich.h> |
|
23 #include <eikenv.h> |
|
24 #include <s32mem.h> |
|
25 #include <s32std.h> |
|
26 #include <msvstore.h> |
|
27 #include <SendUiConsts.h> |
|
28 |
|
29 #ifdef RD_MULTIPLE_DRIVE |
|
30 #include <driveinfo.h> |
|
31 #endif |
|
32 |
|
33 #include "CMessageDataImpl.h" |
|
34 //#include "CSendUiAttachment.h" |
|
35 |
|
36 // CONSTANTS |
|
37 const TInt KMDArrayGranularity = 1; |
|
38 const TInt KMDRichTextStoreGranularity = 512; |
|
39 |
|
40 _LIT( KSenduiTempFile, ":\\system\\temp\\sendui\\%x_%x"); |
|
41 |
|
42 // ============================ MEMBER FUNCTIONS =============================== |
|
43 |
|
44 // ----------------------------------------------------------------------------- |
|
45 // CMessageDataImpl::CMessageDataImpl |
|
46 // C++ default constructor can NOT contain any code, that |
|
47 // might leave. |
|
48 // ----------------------------------------------------------------------------- |
|
49 // |
|
50 CMessageDataImpl::CMessageDataImpl() |
|
51 : iDataType(KSenduiMsgDataBase) |
|
52 { |
|
53 } |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // CMessageDataImpl::ConstructL |
|
57 // Symbian 2nd phase constructor can leave. |
|
58 // ----------------------------------------------------------------------------- |
|
59 // |
|
60 void CMessageDataImpl::ConstructL() |
|
61 { |
|
62 } |
|
63 |
|
64 // ----------------------------------------------------------------------------- |
|
65 // CMessageDataImpl::NewL |
|
66 // Two-phased constructor. |
|
67 // ----------------------------------------------------------------------------- |
|
68 // |
|
69 CMessageDataImpl* CMessageDataImpl::NewL() |
|
70 { |
|
71 } |
|
72 |
|
73 // --------------------------------------------------------- |
|
74 // CMessageDataImpl::NewLC |
|
75 // Two-phased constructor. |
|
76 // --------------------------------------------------------- |
|
77 // |
|
78 CMessageDataImpl* CMessageDataImpl::NewLC() |
|
79 { |
|
80 } |
|
81 |
|
82 |
|
83 // Destructor |
|
84 CMessageDataImpl::~CMessageDataImpl() |
|
85 { |
|
86 } |
|
87 |
|
88 // ----------------------------------------------------------------------------- |
|
89 // CMessageDataImpl::SetSubjectL |
|
90 // Set message subject. |
|
91 // (other items were commented in a header). |
|
92 // ----------------------------------------------------------------------------- |
|
93 // |
|
94 void CMessageDataImpl::SetSubjectL( const TDesC* aSubject ) |
|
95 { |
|
96 } |
|
97 |
|
98 // ----------------------------------------------------------------------------- |
|
99 // CMessageDataImpl::Subject |
|
100 // Returns message subject. |
|
101 // (other items were commented in a header). |
|
102 // ----------------------------------------------------------------------------- |
|
103 // |
|
104 const TPtrC CMessageDataImpl::Subject() const |
|
105 { |
|
106 } |
|
107 |
|
108 // ----------------------------------------------------------------------------- |
|
109 // CMessageDataImpl::AppendAttachmentL |
|
110 // Appends attachment file path to the array of attachment file paths. |
|
111 // (other items were commented in a header). |
|
112 // ----------------------------------------------------------------------------- |
|
113 // |
|
114 void CMessageDataImpl::AppendAttachmentL( const TDesC& aFileName ) |
|
115 { |
|
116 } |
|
117 |
|
118 // ----------------------------------------------------------------------------- |
|
119 // CMessageDataImpl::AttachmentArray |
|
120 // Returns array of attachment file paths. |
|
121 // (other items were commented in a header). |
|
122 // ----------------------------------------------------------------------------- |
|
123 // |
|
124 const CDesCArray& CMessageDataImpl::AttachmentArray() const |
|
125 { |
|
126 } |
|
127 |
|
128 // ----------------------------------------------------------------------------- |
|
129 // CMessageDataImpl::ClearAttachmentArray |
|
130 // Clears the array of attachment file paths. |
|
131 // (other items were commented in a header). |
|
132 // ----------------------------------------------------------------------------- |
|
133 // |
|
134 void CMessageDataImpl::ClearAttachmentArray() |
|
135 { |
|
136 } |
|
137 |
|
138 // ----------------------------------------------------------------------------- |
|
139 // CMessageDataImpl::AppendToAddressL |
|
140 // Encapsulates address and alias to CMessageAddress and adds to array. |
|
141 // (other items were commented in a header). |
|
142 // ----------------------------------------------------------------------------- |
|
143 // |
|
144 void CMessageDataImpl::AppendToAddressL( |
|
145 const TDesC& aAddress, |
|
146 const TDesC& aAlias) |
|
147 { |
|
148 |
|
149 } |
|
150 |
|
151 // ----------------------------------------------------------------------------- |
|
152 // CMessageDataImpl::ToAddressArray |
|
153 // Returns array of addresses and aliases. |
|
154 // (other items were commented in a header). |
|
155 // ----------------------------------------------------------------------------- |
|
156 // |
|
157 const CMessageAddressArray& CMessageDataImpl::ToAddressArray() const |
|
158 { |
|
159 } |
|
160 |
|
161 // ----------------------------------------------------------------------------- |
|
162 // CMessageDataImpl::AppendCcAddressL |
|
163 // Encapsulates CC address and alias to CMessageAddress and adds to array. |
|
164 // (other items were commented in a header). |
|
165 // ----------------------------------------------------------------------------- |
|
166 // |
|
167 void CMessageDataImpl::AppendCcAddressL( |
|
168 const TDesC& aCcAddress, |
|
169 const TDesC& aCcAlias) |
|
170 { |
|
171 } |
|
172 |
|
173 // ----------------------------------------------------------------------------- |
|
174 // CMessageDataImpl::CcAddressArray |
|
175 // Returns array of CC addresses and aliases. |
|
176 // (other items were commented in a header). |
|
177 // ----------------------------------------------------------------------------- |
|
178 // |
|
179 const CMessageAddressArray& CMessageDataImpl::CcAddressArray() const |
|
180 { |
|
181 } |
|
182 |
|
183 // ----------------------------------------------------------------------------- |
|
184 // CMessageDataImpl::AppendBccAddressL |
|
185 // Encapsulates Bcc address and alias to CMessageAddress and adds to array. |
|
186 // (other items were commented in a header). |
|
187 // ----------------------------------------------------------------------------- |
|
188 // |
|
189 void CMessageDataImpl::AppendBccAddressL( |
|
190 const TDesC& aBccAddress, |
|
191 const TDesC& aBccAlias) |
|
192 { |
|
193 } |
|
194 |
|
195 // ----------------------------------------------------------------------------- |
|
196 // CMessageDataImpl::BccAddressArray |
|
197 // Returns array of Bcc addresses and aliases. |
|
198 // (other items were commented in a header). |
|
199 // ----------------------------------------------------------------------------- |
|
200 // |
|
201 const CMessageAddressArray& CMessageDataImpl::BccAddressArray() const |
|
202 { |
|
203 } |
|
204 |
|
205 // ----------------------------------------------------------------------------- |
|
206 // CMessageDataImpl::SetBodyTextL |
|
207 // Set message body text. |
|
208 // (other items were commented in a header). |
|
209 // ----------------------------------------------------------------------------- |
|
210 // |
|
211 void CMessageDataImpl::SetBodyTextL( const CRichText* aBodyText ) |
|
212 { |
|
213 } |
|
214 |
|
215 // ----------------------------------------------------------------------------- |
|
216 // CMessageDataImpl::BodyText |
|
217 // Returns message body text. |
|
218 // (other items were commented in a header). |
|
219 // ----------------------------------------------------------------------------- |
|
220 // |
|
221 const CRichText* CMessageDataImpl::BodyText() const |
|
222 { |
|
223 } |
|
224 |
|
225 // ----------------------------------------------------------------------------- |
|
226 // CMessageDataImpl::AppendAttachmentHandleL |
|
227 // Appends attachment handle to the array of attachment handles. |
|
228 // (other items were commented in a header). |
|
229 // ----------------------------------------------------------------------------- |
|
230 // |
|
231 void CMessageDataImpl::AppendAttachmentHandleL( const RFile& aFileHandle ) |
|
232 { |
|
233 } |
|
234 |
|
235 // ----------------------------------------------------------------------------- |
|
236 // CMessageDataImpl::AttachmentHandleArray |
|
237 // Returns array of attachment handles. |
|
238 // (other items were commented in a header). |
|
239 // ----------------------------------------------------------------------------- |
|
240 // |
|
241 const RArray<RFile>& CMessageDataImpl::AttachmentHandleArray() const |
|
242 { |
|
243 } |
|
244 |
|
245 // ----------------------------------------------------------------------------- |
|
246 // CMessageDataImpl::DataType |
|
247 // Returns data type id. |
|
248 // (other items were commented in a header). |
|
249 // ----------------------------------------------------------------------------- |
|
250 // |
|
251 TUid CMessageDataImpl::DataType() const |
|
252 { |
|
253 } |
|
254 |
|
255 // ----------------------------------------------------------------------------- |
|
256 // CMessageDataImpl::ClearAddresses |
|
257 // Clears all addressee arrays. |
|
258 // (other items were commented in a header). |
|
259 // ----------------------------------------------------------------------------- |
|
260 // |
|
261 void CMessageDataImpl::ClearAddresses() |
|
262 { |
|
263 } |
|
264 |
|
265 // --------------------------------------------------------- |
|
266 // CMessageDataImpl::ExternalizeL |
|
267 // |
|
268 // --------------------------------------------------------- |
|
269 // |
|
270 void CMessageDataImpl::ExternalizeL( RWriteStream& aStream ) const |
|
271 { |
|
272 } |
|
273 |
|
274 // --------------------------------------------------------- |
|
275 // CMessageDataImpl::InternalizeL |
|
276 // |
|
277 // --------------------------------------------------------- |
|
278 // |
|
279 void CMessageDataImpl::InternalizeL( RReadStream& aStream ) |
|
280 { |
|
281 } |
|
282 |
|
283 // --------------------------------------------------------- |
|
284 // CMessageDataImpl::ExternalizeArrayL |
|
285 // |
|
286 // --------------------------------------------------------- |
|
287 // |
|
288 void CMessageDataImpl::ExternalizeArrayL( |
|
289 CMessageAddressArray* anArray, |
|
290 RWriteStream& aStream ) const |
|
291 { |
|
292 } |
|
293 |
|
294 // --------------------------------------------------------- |
|
295 // CMessageDataImpl::InternalizeArrayL |
|
296 // |
|
297 // --------------------------------------------------------- |
|
298 // |
|
299 void CMessageDataImpl::InternalizeArrayL( |
|
300 CMessageAddressArray* anArray, |
|
301 RReadStream& aStream ) |
|
302 { |
|
303 } |
|
304 |
|
305 // --------------------------------------------------------- |
|
306 // CMessageDataImpl::CreateTempPathL |
|
307 // |
|
308 // --------------------------------------------------------- |
|
309 // |
|
310 void CMessageDataImpl::CreateTempPathL( TDes16& aPath, RFs& aFs ) const |
|
311 { |
|
312 } |
|
313 |
|
314 // --------------------------------------------------------- |
|
315 // CMessageDataImpl::SetOpaqueDataL |
|
316 // |
|
317 // --------------------------------------------------------- |
|
318 // |
|
319 void CMessageDataImpl::SetOpaqueDataL( const TDesC8* aData ) |
|
320 { |
|
321 } |
|
322 |
|
323 // --------------------------------------------------------- |
|
324 // CMessageDataImpl::OpaqueData |
|
325 // |
|
326 // --------------------------------------------------------- |
|
327 // |
|
328 const TPtrC8 CMessageDataImpl::OpaqueData() const |
|
329 { |
|
330 } |
|
331 |
|
332 |
|
333 |
|
334 // End of File |
|