author | William Roberts <williamr@symbian.org> |
Thu, 22 Jul 2010 16:32:06 +0100 | |
branch | GCC_SURGE |
changeset 47 | 5b14749788d7 |
parent 27 | e4592d119491 |
parent 44 | 36f374c67aa8 |
permissions | -rw-r--r-- |
31 | 1 |
/* |
2 |
* Copyright (c) 2009 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: |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
#include "unieditormmsplugin_p.h" |
|
19 |
||
20 |
// INCLUDE FILES |
|
21 |
#include <e32base.h> |
|
22 |
#include <f32file.h> |
|
23 |
#include <msvids.h> |
|
24 |
#include <mtclreg.h> |
|
25 |
#include <commdb.h> |
|
26 |
#include <mmsconst.h> |
|
27 |
#include <mmsclient.h> |
|
28 |
#include <mmsheaders.h> |
|
29 |
#include <mmssettings.h> |
|
30 |
#include <mmsmsventry.h> |
|
31 |
#include <bautils.h> |
|
32 |
#include <data_caging_path_literals.hrh> |
|
33 |
#include <txtetext.h> |
|
34 |
#include <txtrich.h> |
|
35 |
#include <txtfmlyr.h> |
|
36 |
#include <MuiuOperationWait.h> |
|
37 |
#include <QDir> |
|
38 |
#include <hbglobal.h> |
|
39 |
#include <eikrted.h> |
|
40 |
#include <MsgMediaInfo.h> |
|
41 |
#include <MsgMediaResolver.h> |
|
42 |
||
43 |
#include "UniSendingSettings.h" |
|
44 |
#include "unidatamodelloader.h" |
|
45 |
#include "unidatamodelplugininterface.h" |
|
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
46 |
#include <xqconversions.h> |
31 | 47 |
#include "debugtraces.h" |
48 |
#include "UniEditorGenUtils.h" |
|
49 |
||
50 |
// Possible values for mms validity period in seconds |
|
51 |
const TInt32 KUniMmsValidityPeriod1h = 3600; |
|
52 |
const TInt32 KUniMmsValidityPeriod6h = 21600; |
|
53 |
const TInt32 KUniMmsValidityPeriod24h = 86400; |
|
54 |
const TInt32 KUniMmsValidityPeriod3Days = 259200; |
|
55 |
const TInt32 KUniMmsValidityPeriodWeek = 604800; |
|
56 |
const TInt32 KUniMmsValidityPeriodMax = 0; |
|
57 |
||
58 |
const TInt KMaxDetailsLength = 64; // Copy max this many chars to TMsvEntry::iDetails |
|
59 |
_LIT( KAddressSeparator, ";" ); |
|
60 |
||
61 |
#define KSenduiMtmMmsUidValue 0x100058E1 |
|
62 |
const TUid KSenduiMtmMmsUid = {KSenduiMtmMmsUidValue}; |
|
63 |
||
64 |
#define LOC_FWD hbTrId("txt_messaging_formlabel_fwd") |
|
65 |
||
66 |
// ----------------------------------------------------------------------------- |
|
67 |
// Two-phased constructor. |
|
68 |
// @see Header |
|
69 |
// ----------------------------------------------------------------------------- |
|
70 |
// |
|
71 |
CUniEditorMmsPluginPrivate* CUniEditorMmsPluginPrivate::NewL() |
|
72 |
{ |
|
73 |
CUniEditorMmsPluginPrivate* self = new ( ELeave ) CUniEditorMmsPluginPrivate(); |
|
74 |
return self; |
|
75 |
} |
|
76 |
||
77 |
// ----------------------------------------------------------------------------- |
|
78 |
// Destructor |
|
79 |
// @see Header |
|
80 |
// ----------------------------------------------------------------------------- |
|
81 |
// |
|
82 |
CUniEditorMmsPluginPrivate::~CUniEditorMmsPluginPrivate() |
|
83 |
{ |
|
84 |
//In case there is no settings at all leave occurs and resource not freed |
|
85 |
delete iMmsHeader; |
|
86 |
||
87 |
delete iEditor; |
|
88 |
delete iDom; |
|
89 |
delete iUniDataModel; |
|
90 |
ifsSession.Close(); |
|
91 |
||
92 |
if(iMmsMtm) |
|
93 |
{ |
|
94 |
delete iMmsMtm; |
|
95 |
} |
|
96 |
||
97 |
delete iMtmRegistry; |
|
98 |
delete iDataModelPluginLoader; |
|
99 |
||
100 |
if(iSession) |
|
101 |
{ |
|
102 |
delete iSession; |
|
103 |
} |
|
104 |
} |
|
105 |
||
106 |
// ----------------------------------------------------------------------------- |
|
107 |
// C++ default constructor |
|
108 |
// @see Header |
|
109 |
// ----------------------------------------------------------------------------- |
|
110 |
// |
|
111 |
CUniEditorMmsPluginPrivate::CUniEditorMmsPluginPrivate( ) |
|
112 |
{ |
|
113 |
TRAP_IGNORE(iSession = CMsvSession::OpenSyncL(*this)); |
|
114 |
} |
|
115 |
||
116 |
// ----------------------------------------------------------------------------- |
|
117 |
// convertFromL |
|
118 |
// @see Header |
|
119 |
// ----------------------------------------------------------------------------- |
|
120 |
// |
|
121 |
ConvergedMessage* CUniEditorMmsPluginPrivate::convertFromL( TMsvId aId, |
|
122 |
UniEditorPluginInterface::EditorOperation aOperation ) |
|
123 |
{ |
|
124 |
QDEBUG_WRITE("Enter convertFromL"); |
|
125 |
||
126 |
MmsMtmL()->SwitchCurrentEntryL( aId ); |
|
127 |
MmsMtmL()->LoadMessageL(); |
|
128 |
||
129 |
TMsvEntry entry =MmsMtmL()->Entry().Entry(); |
|
130 |
||
131 |
ConvergedMessage* msg = new ConvergedMessage; |
|
132 |
||
133 |
CleanupStack::PushL(msg); |
|
134 |
if( entry.Parent() == KMsvDraftEntryIdValue ) |
|
135 |
{ |
|
136 |
convertFromDraftsL(*msg); |
|
137 |
} |
|
138 |
else if( aOperation == UniEditorPluginInterface::Forward) |
|
139 |
{ |
|
140 |
convertFromForwardHandlerL(*msg); |
|
141 |
} |
|
142 |
CleanupStack::Pop(msg); |
|
143 |
QDEBUG_WRITE("Exit convertFromL"); |
|
144 |
return msg; |
|
145 |
} |
|
146 |
||
147 |
// ----------------------------------------------------------------------------- |
|
148 |
// convertFromDraftsL |
|
149 |
// @see Header |
|
150 |
// ----------------------------------------------------------------------------- |
|
151 |
// |
|
152 |
void CUniEditorMmsPluginPrivate::convertFromDraftsL( |
|
153 |
ConvergedMessage& aMessage ) |
|
154 |
{ |
|
155 |
QDEBUG_WRITE("Enter convertFromDraftsL"); |
|
156 |
||
157 |
TMsvEntry entry =MmsMtmL()->Entry().Entry(); |
|
158 |
||
159 |
//Message id |
|
160 |
ConvergedMessageId id(entry.Id()); |
|
161 |
aMessage.setMessageId(id); |
|
162 |
||
163 |
// Set Message type |
|
164 |
aMessage.setMessageType(ConvergedMessage::Mms); |
|
165 |
||
166 |
//Populate recipients |
|
167 |
populateRecipientsL(aMessage); |
|
168 |
||
169 |
//populate convergedmessage with the subject |
|
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
170 |
aMessage.setSubject(XQConversions::s60DescToQString( |
31 | 171 |
MmsMtmL()->SubjectL())); |
172 |
||
173 |
// Priority |
|
174 |
TMsvPriority priority = entry.Priority(); |
|
175 |
if( EMsvHighPriority == priority ) |
|
176 |
{ |
|
177 |
aMessage.setPriority(ConvergedMessage::High); |
|
178 |
} |
|
179 |
else if( EMsvLowPriority == priority ) |
|
180 |
{ |
|
181 |
aMessage.setPriority(ConvergedMessage::Low); |
|
182 |
} |
|
183 |
else if( EMsvMediumPriority == priority ) |
|
184 |
{ |
|
185 |
aMessage.setPriority(ConvergedMessage::Normal); |
|
186 |
} |
|
187 |
||
188 |
// Set direction and location |
|
189 |
aMessage.setDirection(ConvergedMessage::Outgoing); |
|
190 |
aMessage.setLocation (ConvergedMessage::Draft); |
|
191 |
||
192 |
//Populate body and attachments |
|
193 |
populateMessageBodyL(aMessage); |
|
194 |
||
195 |
QDEBUG_WRITE("Exit convertFromDraftsL"); |
|
196 |
} |
|
197 |
||
198 |
// ----------------------------------------------------------------------------- |
|
199 |
// convertFromForwardHandlerL |
|
200 |
// @see Header |
|
201 |
// ----------------------------------------------------------------------------- |
|
202 |
// |
|
203 |
void CUniEditorMmsPluginPrivate::convertFromForwardHandlerL( |
|
204 |
ConvergedMessage &aMessage) |
|
205 |
{ |
|
206 |
QDEBUG_WRITE("Enter convertFromForwardHandlerL"); |
|
34
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
207 |
iMessageForwarded = EFalse; |
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
208 |
TMsvEntry entry = MmsMtmL()->Entry().Entry(); |
31 | 209 |
|
210 |
//populate convergedmessage with the subject prepended with FW: |
|
34
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
211 |
QString subject = |
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
212 |
XQConversions::s60DescToQString(MmsMtmL()->SubjectL()); |
34
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
213 |
|
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
214 |
if (!(entry.Forwarded() || subject.startsWith(LOC_FWD, |
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
215 |
Qt::CaseInsensitive))) |
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
216 |
{ |
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
217 |
subject.insert(0, LOC_FWD); |
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
218 |
iMessageForwarded = ETrue; |
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
219 |
} |
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
220 |
|
31 | 221 |
aMessage.setSubject(subject); |
222 |
||
223 |
// Priority |
|
224 |
TMsvPriority priority = entry.Priority(); |
|
225 |
if( EMsvHighPriority == priority ) |
|
226 |
{ |
|
227 |
aMessage.setPriority(ConvergedMessage::High); |
|
228 |
} |
|
229 |
else if( EMsvLowPriority == priority ) |
|
230 |
{ |
|
231 |
aMessage.setPriority(ConvergedMessage::Low); |
|
232 |
} |
|
233 |
else if( EMsvMediumPriority == priority ) |
|
234 |
{ |
|
235 |
aMessage.setPriority(ConvergedMessage::Normal); |
|
236 |
} |
|
237 |
||
238 |
//Populate body and attachments |
|
239 |
//The region info inside slides is not maintained |
|
240 |
populateMessageBodyL(aMessage); |
|
241 |
||
242 |
QDEBUG_WRITE("Exit convertFromForwardHandlerL"); |
|
243 |
} |
|
244 |
||
245 |
// ----------------------------------------------------------------------------- |
|
246 |
// populateMessageBodyL |
|
247 |
// @see Header |
|
248 |
// ----------------------------------------------------------------------------- |
|
249 |
// |
|
250 |
void CUniEditorMmsPluginPrivate::populateMessageBodyL( |
|
251 |
ConvergedMessage &aMessage) |
|
252 |
{ |
|
253 |
QDEBUG_WRITE("Enter populateMessageBodyL"); |
|
254 |
||
255 |
if(!iDataModelPluginLoader) |
|
256 |
{ |
|
257 |
iDataModelPluginLoader = new UniDataModelLoader; |
|
258 |
iMmsDataPlugin = iDataModelPluginLoader->getDataModelPlugin(ConvergedMessage::Mms); |
|
259 |
} |
|
260 |
||
261 |
iMmsDataPlugin->restore(*MmsMtmL()); |
|
262 |
||
263 |
int slideCount = iMmsDataPlugin->slideCount(); |
|
264 |
||
265 |
int attachmentCount = iMmsDataPlugin->attachmentCount(); |
|
266 |
||
267 |
ConvergedMessageAttachmentList attachmentList; |
|
268 |
||
269 |
if (slideCount > 0) |
|
270 |
{ |
|
271 |
UniMessageInfoList slideContentList = |
|
272 |
iMmsDataPlugin->slideContent(0); |
|
273 |
for (int i = 0; i < slideContentList.size(); ++i) |
|
274 |
{ |
|
275 |
if( slideContentList.at(i)->mimetype().contains("text") ) |
|
276 |
{ |
|
277 |
QString textContent; |
|
278 |
QFile file(slideContentList.at(i)->path()); |
|
44
36f374c67aa8
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
43
diff
changeset
|
279 |
if (file.open(QIODevice::ReadOnly)) { |
36f374c67aa8
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
43
diff
changeset
|
280 |
textContent = file.readAll(); |
36f374c67aa8
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
43
diff
changeset
|
281 |
aMessage.setBodyText(textContent); |
36f374c67aa8
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
43
diff
changeset
|
282 |
file.close(); |
36f374c67aa8
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
43
diff
changeset
|
283 |
} |
36f374c67aa8
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
43
diff
changeset
|
284 |
else { |
36f374c67aa8
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
43
diff
changeset
|
285 |
return; |
36f374c67aa8
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
43
diff
changeset
|
286 |
} |
31 | 287 |
} |
288 |
else |
|
289 |
{ |
|
290 |
ConvergedMessageAttachment* attachment = |
|
291 |
new ConvergedMessageAttachment( |
|
292 |
slideContentList.at(i)->path(), |
|
293 |
ConvergedMessageAttachment::EInline); |
|
294 |
attachmentList << attachment; |
|
295 |
} |
|
296 |
} |
|
297 |
||
298 |
foreach(UniMessageInfo* slide,slideContentList) |
|
299 |
{ |
|
300 |
delete slide; |
|
301 |
} |
|
302 |
} |
|
303 |
||
304 |
||
305 |
if(attachmentCount > 0) |
|
306 |
{ |
|
307 |
UniMessageInfoList modelAttachmentList = |
|
308 |
iMmsDataPlugin->attachmentList(); |
|
309 |
||
310 |
for (int i = 0; i < modelAttachmentList.count(); ++i) |
|
311 |
{ |
|
312 |
ConvergedMessageAttachment* attachment = |
|
313 |
new ConvergedMessageAttachment( |
|
314 |
modelAttachmentList.at(i)->path(), |
|
315 |
ConvergedMessageAttachment::EAttachment); |
|
316 |
attachmentList << attachment; |
|
317 |
} |
|
318 |
||
319 |
foreach(UniMessageInfo* attachment,modelAttachmentList) |
|
320 |
{ |
|
321 |
delete attachment; |
|
322 |
} |
|
323 |
} |
|
324 |
||
325 |
if(attachmentList.count() > 0) |
|
326 |
{ |
|
327 |
aMessage.addAttachments(attachmentList); |
|
328 |
} |
|
329 |
||
330 |
//Delete the pluginloader instance |
|
331 |
delete iDataModelPluginLoader; |
|
332 |
iDataModelPluginLoader = NULL; |
|
333 |
iMmsDataPlugin = NULL; |
|
334 |
||
335 |
QDEBUG_WRITE("Exit populateMessageBodyL"); |
|
336 |
} |
|
337 |
||
338 |
// ----------------------------------------------------------------------------- |
|
339 |
// convertToL |
|
340 |
// @see Header |
|
341 |
// ----------------------------------------------------------------------------- |
|
342 |
// |
|
343 |
TMsvId CUniEditorMmsPluginPrivate::convertToL(ConvergedMessage *aMessage) |
|
344 |
{ |
|
345 |
QDEBUG_WRITE("Enter ConvertToL"); |
|
346 |
||
347 |
// create message in drafts. |
|
348 |
CMsvEntry* cEntry = MmsMtmL()->Session().GetEntryL(KMsvDraftEntryId); |
|
349 |
||
350 |
CleanupStack::PushL(cEntry); |
|
351 |
MmsMtmL()->SwitchCurrentEntryL(cEntry->EntryId()); |
|
352 |
||
353 |
TMsvEntry entry; |
|
354 |
entry.iMtm = MmsMtmL()->Type(); |
|
355 |
entry.iType = KUidMsvMessageEntry; |
|
356 |
entry.iServiceId = MmsMtmL()->DefaultServiceL(); |
|
357 |
entry.iDate.UniversalTime(); |
|
358 |
||
359 |
cEntry->CreateL(entry); |
|
360 |
||
361 |
TMsvId entryId = entry.Id(); |
|
362 |
||
363 |
//Since entry is created if any of the below functions leave |
|
364 |
//the created entry has to be deleted |
|
365 |
TInt error = KErrNone; |
|
366 |
TRAP(error,DoConvertToL(aMessage,entry)); |
|
367 |
||
368 |
CleanupStack::PopAndDestroy(cEntry); |
|
369 |
||
370 |
if (error != KErrNone) |
|
371 |
{ |
|
372 |
this->deleteDraftsEntryL(entryId); |
|
373 |
entryId = -1; //Set Invalid entry id |
|
374 |
} |
|
375 |
QDEBUG_WRITE_FORMAT("Exit ConvertToL the entryId= ",entryId); |
|
376 |
return entryId; |
|
377 |
} |
|
378 |
||
379 |
// ----------------------------------------------------------------------------- |
|
380 |
// DoConvertToL |
|
381 |
// @see Header |
|
382 |
// ----------------------------------------------------------------------------- |
|
383 |
// |
|
384 |
void CUniEditorMmsPluginPrivate::DoConvertToL(ConvergedMessage *aMessage, |
|
385 |
TMsvEntry& entry) |
|
386 |
{ |
|
387 |
TMsvId entryId = entry.Id(); |
|
388 |
||
389 |
// switch to created entry |
|
390 |
MmsMtmL()->SwitchCurrentEntryL(entryId); |
|
391 |
||
392 |
//Add recipients |
|
393 |
addRecipientsL(aMessage); |
|
394 |
||
395 |
//There is no size check inside plugin as it assumes |
|
396 |
//we get proper data from editor |
|
34
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
397 |
entry = MmsMtmL()->Entry().Entry(); |
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
398 |
if (iMessageForwarded) |
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
399 |
{ |
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
400 |
entry.SetForwarded(ETrue); |
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
401 |
iMessageForwarded = EFalse; |
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
402 |
} |
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
403 |
HBufC* sub = XQConversions::qStringToS60Desc(aMessage->subject()); |
31 | 404 |
if( sub ) |
405 |
{ |
|
406 |
CleanupStack::PushL(sub); |
|
407 |
MmsMtmL()->SetSubjectL( *sub ); |
|
408 |
CleanupStack::PopAndDestroy(sub); |
|
409 |
} |
|
410 |
||
411 |
//Add attachments |
|
412 |
// fetch attachment list and populate the smil model |
|
413 |
ConvergedMessageAttachmentList attachmentlist = aMessage->attachments(); |
|
414 |
int attachmentcount = attachmentlist.count(); |
|
415 |
if ((attachmentcount> 0) || !(aMessage->bodyText().isEmpty())) |
|
416 |
{ |
|
417 |
QDEBUG_WRITE("Before calling iUniDataModel->restore"); |
|
418 |
||
419 |
User::LeaveIfError(ifsSession.Connect()); |
|
420 |
||
421 |
delete iUniDataModel; |
|
422 |
iUniDataModel = NULL; |
|
423 |
||
424 |
iUniDataModel = CUniDataModel::NewL(ifsSession, *MmsMtmL()); |
|
425 |
iUniDataModel->RestoreL(*this, ETrue); |
|
426 |
||
427 |
QDEBUG_WRITE("Before calling iUniDataModel->addSlide"); |
|
428 |
||
429 |
bool slideContentAdded = false; |
|
430 |
||
431 |
//Adding first slide |
|
432 |
iUniDataModel->SmilModel().AddSlideL(0); |
|
433 |
||
434 |
for (int i = 0; i < attachmentcount; i++) |
|
435 |
{ |
|
436 |
if (attachmentlist[i]->attachmentType() |
|
437 |
== ConvergedMessageAttachment::EInline) |
|
438 |
{ |
|
439 |
slideContentAdded = true; |
|
440 |
addObjectL(0, attachmentlist[i]->filePath()); |
|
441 |
||
442 |
} |
|
443 |
else if (attachmentlist[i]->attachmentType() |
|
444 |
== ConvergedMessageAttachment::EAttachment) |
|
445 |
{ |
|
446 |
addAttachmentL(attachmentlist[i]->filePath()); |
|
447 |
} |
|
448 |
} |
|
449 |
||
450 |
if (! (aMessage->bodyText().isEmpty())) |
|
451 |
{ |
|
452 |
slideContentAdded = true; |
|
453 |
addTextObjectL(0, aMessage->bodyText()); |
|
454 |
} |
|
455 |
||
456 |
if (slideContentAdded) |
|
457 |
{ |
|
458 |
iUniDataModel->ObjectList().SaveAll(*this, CMsvAttachment::EMsvFile); |
|
459 |
||
460 |
// Open store even if we didn't need it here. |
|
461 |
// -> We don't need to check later whether the store |
|
462 |
//is open or not. |
|
463 |
CMsvStore* editStore = MmsMtmL()->Entry().EditStoreL(); |
|
464 |
||
465 |
//Ensure that the store is deleted if anything |
|
466 |
//leaves before deletion otherwise the entry store will be locked |
|
467 |
//and entry cant be deleted |
|
468 |
CleanupStack::PushL(editStore); |
|
469 |
||
470 |
delete iDom; |
|
471 |
iDom = NULL; |
|
472 |
||
473 |
iDom = iUniDataModel->SmilModel().ComposeL(); |
|
474 |
iUniDataModel->SmilList().CreateSmilAttachmentL(*this, |
|
475 |
*editStore, |
|
476 |
iDom); |
|
477 |
||
478 |
//Commit the store before setting the root |
|
479 |
editStore->CommitL(); |
|
480 |
||
481 |
//delete the store before setMessageRoot is called |
|
482 |
CleanupStack::PopAndDestroy(editStore); |
|
483 |
||
484 |
//Set message root after composing SMIL but before |
|
485 |
//calling SaveMessageL and after the store has been deleted |
|
486 |
MmsMtmL()->SetMessageRootL(iUniDataModel->SmilList().GetSmilAttachmentByIndex(0)); |
|
487 |
} |
|
488 |
else |
|
489 |
{ |
|
490 |
//Remove the slide |
|
491 |
iUniDataModel->SmilModel().RemoveSlide(0); |
|
492 |
||
493 |
// Open store even if we didn't need it here. |
|
494 |
// -> We don't need to check later whether the store is open or not. |
|
495 |
CMsvStore* editStore = MmsMtmL()->Entry().EditStoreL(); |
|
496 |
||
497 |
//Ensure that the store is deleted if anything |
|
498 |
//leaves before deletion otherwise the entry store will be locked |
|
499 |
//and entry cant be deleted |
|
500 |
CleanupStack::PushL(editStore); |
|
501 |
||
502 |
//Commit the store before setting the root |
|
503 |
editStore->CommitL(); |
|
504 |
||
505 |
//delete the store before setMessageRoot is called |
|
506 |
CleanupStack::PopAndDestroy(editStore); |
|
507 |
} |
|
508 |
} |
|
509 |
||
510 |
//Set the priority before calling save |
|
511 |
ConvergedMessage::Priority priority = aMessage->priority(); |
|
512 |
if (ConvergedMessage::High == priority) |
|
513 |
{ |
|
514 |
MmsMtmL()->SetMessagePriority(EMmsPriorityHigh); |
|
515 |
} |
|
516 |
else if (ConvergedMessage::Low == priority) |
|
517 |
{ |
|
518 |
MmsMtmL()->SetMessagePriority(EMmsPriorityLow); |
|
519 |
} |
|
520 |
else if (ConvergedMessage::Normal == priority) |
|
521 |
{ |
|
522 |
MmsMtmL()->SetMessagePriority(EMmsPriorityNormal); |
|
523 |
} |
|
524 |
||
525 |
//Saving the changes |
|
526 |
MmsMtmL()->SaveMessageL(); |
|
527 |
||
34
84197e66a4bd
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
528 |
|
31 | 529 |
entry = MmsMtmL()->Entry().Entry(); |
530 |
TBuf<KMaxDetailsLength> detailsBuf; |
|
531 |
MakeDetailsL( detailsBuf ); |
|
532 |
entry.iDetails.Set( detailsBuf ); |
|
533 |
||
534 |
MmsMtmL()->Entry().ChangeL(entry); // commit changes |
|
535 |
||
536 |
} |
|
537 |
||
538 |
// ----------------------------------------------------------------------------- |
|
539 |
// sendL |
|
540 |
// @see Header |
|
541 |
// ----------------------------------------------------------------------------- |
|
542 |
// |
|
543 |
void CUniEditorMmsPluginPrivate::sendL( TMsvId aId ) |
|
544 |
{ |
|
545 |
QDEBUG_WRITE("Enter sendL"); |
|
546 |
||
547 |
MmsMtmL()->SwitchCurrentEntryL( aId ); |
|
548 |
MmsMtmL()->LoadMessageL(); |
|
549 |
CMuiuOperationWait* wait = CMuiuOperationWait::NewLC(); |
|
550 |
CMsvOperation* oper = MmsMtmL()->SendL( wait->iStatus ); |
|
551 |
CleanupStack::PushL( oper ); |
|
552 |
wait->Start(); |
|
553 |
CleanupStack::PopAndDestroy( oper ); |
|
554 |
CleanupStack::PopAndDestroy( wait ); |
|
555 |
||
556 |
QDEBUG_WRITE("Exit sendL"); |
|
557 |
} |
|
558 |
||
559 |
// ----------------------------------------------------------------------------- |
|
560 |
// validateServiceL |
|
561 |
// @see Header |
|
562 |
// ----------------------------------------------------------------------------- |
|
563 |
// |
|
564 |
TBool CUniEditorMmsPluginPrivate::validateServiceL( TBool /*aEmailOverSms*/ ) |
|
565 |
{ |
|
566 |
QDEBUG_WRITE("Enter ValidateServiceL"); |
|
567 |
||
568 |
//Check if the mms client mtm object is already created or not |
|
569 |
if( iMmsMtm ) |
|
570 |
{ |
|
571 |
// If mms client mtm object is already created restore the settings |
|
572 |
iMmsMtm->RestoreSettingsL(); |
|
573 |
} |
|
574 |
||
575 |
TMsvId service = MmsMtmL()->DefaultServiceL(); |
|
576 |
TBool valid( MmsMtmL()->ValidateService( service ) == KErrNone ); |
|
577 |
||
578 |
QDEBUG_WRITE_FORMAT("Exit ValidateServiceL the return val= ",valid); |
|
579 |
return valid; |
|
580 |
} |
|
581 |
||
582 |
// ----------------------------------------------------------------------------- |
|
583 |
// isServiceValidL |
|
584 |
// @see Header |
|
585 |
// ----------------------------------------------------------------------------- |
|
586 |
// |
|
587 |
TBool CUniEditorMmsPluginPrivate::isServiceValidL() |
|
588 |
{ |
|
589 |
return MmsMtmL()->ValidateService( MmsMtmL()->DefaultServiceL() ) == KErrNone; |
|
590 |
} |
|
591 |
||
592 |
// ----------------------------------------------------------------------------- |
|
593 |
// MmsMtmL |
|
594 |
// @see Header |
|
595 |
// ----------------------------------------------------------------------------- |
|
596 |
// |
|
597 |
CMmsClientMtm* CUniEditorMmsPluginPrivate::MmsMtmL() |
|
598 |
{ |
|
599 |
if ( !iMmsMtm && iSession ) |
|
600 |
{ |
|
601 |
if ( !iMtmRegistry ) |
|
602 |
{ |
|
603 |
iMtmRegistry = CClientMtmRegistry::NewL( *iSession ); |
|
604 |
} |
|
605 |
iMmsMtm = static_cast<CMmsClientMtm*>( iMtmRegistry->NewMtmL( |
|
606 |
KSenduiMtmMmsUid ) ); |
|
607 |
} |
|
608 |
return iMmsMtm; |
|
609 |
} |
|
610 |
||
611 |
// --------------------------------------------------------- |
|
612 |
// MakeDetailsL |
|
613 |
// @see Header |
|
614 |
// --------------------------------------------------------- |
|
615 |
// |
|
616 |
void CUniEditorMmsPluginPrivate::MakeDetailsL( TDes& aDetails ) |
|
617 |
{ |
|
618 |
// This very same code can be found in CUniAddressHandler. |
|
619 |
// They should be put in common location some day... |
|
620 |
const CMsvRecipientList& addresses = MmsMtmL()->AddresseeList(); |
|
621 |
TInt addrCnt = addresses.Count(); |
|
622 |
||
623 |
TPtrC stringToAdd; |
|
624 |
for ( TInt i = 0; i < addrCnt; i++) |
|
625 |
{ |
|
626 |
// Only address is converted to western. |
|
627 |
// There may numbers in contact name - they must not be converted |
|
628 |
TPtrC alias = TMmsGenUtils::Alias( addresses[i] ); |
|
629 |
HBufC* addressBuf = NULL; |
|
630 |
||
631 |
if ( alias.Length() != 0 ) |
|
632 |
{ |
|
633 |
stringToAdd.Set( alias ); |
|
634 |
} |
|
635 |
else |
|
636 |
{ |
|
637 |
TPtrC address = TMmsGenUtils::PureAddress( addresses[i] ); |
|
638 |
addressBuf = HBufC::NewLC( address.Length() ); |
|
639 |
TPtr addressPtr = addressBuf->Des(); |
|
640 |
addressPtr.Copy( address ); |
|
641 |
stringToAdd.Set( addressPtr ); |
|
642 |
||
643 |
// Internal data structures always holds the address data in western format. |
|
644 |
// UI is responsible of doing language specific conversions. |
|
645 |
//MuiuTextUtils::ConvertDigitsTo( addressPtr, EDigitTypeWestern ); |
|
646 |
UniEditorGenUtils* genUtils = new UniEditorGenUtils(); |
|
647 |
genUtils->ConvertDigitsTo( addressPtr, EDigitTypeWestern ); |
|
648 |
delete genUtils; |
|
649 |
} |
|
650 |
||
651 |
if ( ( aDetails.Length() != 0 ) && // Not a first address |
|
652 |
( aDetails.Length() + KAddressSeparator().Length() < KMaxDetailsLength ) ) |
|
653 |
{ |
|
654 |
// Add separator |
|
655 |
aDetails.Append( KAddressSeparator() ); |
|
656 |
} |
|
657 |
||
658 |
if ( aDetails.Length() + stringToAdd.Length() < KMaxDetailsLength ) |
|
659 |
{ |
|
660 |
// whole string fits. Add it. |
|
661 |
aDetails.Append( stringToAdd ); |
|
662 |
if ( addressBuf ) |
|
663 |
{ |
|
664 |
CleanupStack::PopAndDestroy( addressBuf ); |
|
665 |
} |
|
666 |
} |
|
667 |
else |
|
668 |
{ |
|
669 |
// Only part of the string fits |
|
670 |
TInt charsToAdd = KMaxDetailsLength - aDetails.Length(); |
|
671 |
||
672 |
if ( charsToAdd <= 0 ) |
|
673 |
{ |
|
674 |
// Cannot add any more chars |
|
675 |
break; |
|
676 |
} |
|
677 |
||
678 |
if ( charsToAdd >= stringToAdd.Length() ) |
|
679 |
{ |
|
680 |
// Guarantee that charsToAdd is not larger that stringToAdd lenght |
|
681 |
charsToAdd = stringToAdd.Length(); |
|
682 |
} |
|
683 |
||
684 |
aDetails.Append( stringToAdd.Left( charsToAdd ) ); |
|
685 |
if ( addressBuf ) |
|
686 |
{ |
|
687 |
CleanupStack::PopAndDestroy( addressBuf ); |
|
688 |
} |
|
689 |
break; |
|
690 |
} |
|
691 |
} |
|
692 |
} |
|
693 |
||
694 |
//--------------------------------------------------------------- |
|
695 |
// CUniEditorMmsPluginPrivate::addRecipientsL |
|
696 |
// @see header |
|
697 |
//--------------------------------------------------------------- |
|
698 |
void CUniEditorMmsPluginPrivate::addRecipientsL(ConvergedMessage *message) |
|
699 |
{ |
|
700 |
//add To feilds |
|
701 |
ConvergedMessageAddressList toAddressArray = message->toAddressList(); |
|
702 |
addRecipientsL(toAddressArray, EMsvRecipientTo); |
|
703 |
||
704 |
//add cc feilds |
|
705 |
ConvergedMessageAddressList ccAddressArray = message->ccAddressList(); |
|
706 |
addRecipientsL(ccAddressArray, EMsvRecipientCc); |
|
707 |
||
708 |
//add bcc feilds |
|
709 |
ConvergedMessageAddressList bccAddressArray = message->bccAddressList(); |
|
710 |
addRecipientsL(bccAddressArray, EMsvRecipientBcc); |
|
711 |
} |
|
712 |
||
713 |
//--------------------------------------------------------------- |
|
714 |
// CUniEditorMmsPluginPrivate::addRecipientsL |
|
715 |
// @see header |
|
716 |
//--------------------------------------------------------------- |
|
717 |
void CUniEditorMmsPluginPrivate::addRecipientsL( |
|
718 |
const ConvergedMessageAddressList &array, |
|
719 |
TMsvRecipientType recpType) |
|
720 |
{ |
|
721 |
||
722 |
for (int i = 0; i < array.count(); ++i) |
|
723 |
{ |
|
724 |
if(array[i]->address().isEmpty()) |
|
725 |
{ |
|
726 |
continue; |
|
727 |
} |
|
728 |
// convert from QString to HBufC |
|
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
729 |
HBufC* addr = XQConversions::qStringToS60Desc(array[i]->address()); |
31 | 730 |
|
731 |
CleanupStack::PushL(addr); |
|
732 |
||
733 |
if(TMmsGenUtils::Alias(*addr).Length() > 0) |
|
734 |
{ |
|
735 |
MmsMtmL()->AddAddresseeL(recpType, TMmsGenUtils::PureAddress(*addr), |
|
736 |
TMmsGenUtils::Alias(*addr)); |
|
737 |
} |
|
738 |
else |
|
739 |
{ |
|
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
740 |
HBufC* displayName = XQConversions::qStringToS60Desc(array[i]->alias()); |
31 | 741 |
if(displayName) |
742 |
{ |
|
743 |
CleanupStack::PushL(displayName); |
|
744 |
||
745 |
MmsMtmL()->AddAddresseeL(recpType, TMmsGenUtils::PureAddress(*addr), |
|
746 |
*displayName); |
|
747 |
||
748 |
CleanupStack::PopAndDestroy(displayName); |
|
749 |
} |
|
750 |
else |
|
751 |
{ |
|
752 |
MmsMtmL()->AddAddresseeL(recpType, TMmsGenUtils::PureAddress(*addr)); |
|
753 |
} |
|
754 |
} |
|
755 |
CleanupStack::PopAndDestroy(addr); |
|
756 |
} |
|
757 |
} |
|
758 |
||
759 |
// ---------------------------------------------------------------------------- |
|
760 |
// CUniEditorMmsPluginPrivate::populateRecipientsL |
|
761 |
// @see header |
|
762 |
// ---------------------------------------------------------------------------- |
|
763 |
// |
|
764 |
void CUniEditorMmsPluginPrivate::populateRecipientsL( |
|
765 |
ConvergedMessage &aMessage) |
|
766 |
{ |
|
767 |
QDEBUG_WRITE("Enter populateRecipientsL"); |
|
768 |
||
769 |
||
770 |
// get recipient list |
|
771 |
const CMsvRecipientList& addresses = MmsMtmL()->AddresseeList(); |
|
772 |
TInt count = addresses.Count(); |
|
773 |
||
774 |
// extract each address and populate into ConvergedMessageAddress |
|
775 |
for (TInt i = 0; i < count; ++i) |
|
776 |
{ |
|
777 |
//Address |
|
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
778 |
QString address = XQConversions::s60DescToQString( |
31 | 779 |
TMmsGenUtils::PureAddress(addresses[i])); |
780 |
//Alias |
|
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
781 |
QString alias = XQConversions::s60DescToQString( |
31 | 782 |
TMmsGenUtils::Alias(addresses[i])); |
783 |
||
784 |
//add recipient to convergedMessage |
|
785 |
ConvergedMessageAddress messageAddress(address, alias); |
|
786 |
if (addresses.Type(i) == EMsvRecipientTo) |
|
787 |
{ |
|
788 |
aMessage.addToRecipient(messageAddress); |
|
789 |
} |
|
790 |
else if (addresses.Type(i) == EMsvRecipientCc) |
|
791 |
{ |
|
792 |
aMessage.addCcRecipient(messageAddress); |
|
793 |
} |
|
794 |
else if (addresses.Type(i) == EMsvRecipientBcc) |
|
795 |
{ |
|
796 |
aMessage.addBccRecipient(messageAddress); |
|
797 |
} |
|
798 |
} |
|
799 |
||
800 |
QDEBUG_WRITE("Exit populateRecipientsL"); |
|
801 |
||
802 |
} |
|
803 |
||
804 |
// ---------------------------------------------------------------------------- |
|
805 |
// CUniEditorMmsPluginPrivate::deleteDraftsEntryL |
|
806 |
// @see header |
|
807 |
// ---------------------------------------------------------------------------- |
|
808 |
// |
|
809 |
void CUniEditorMmsPluginPrivate::deleteDraftsEntryL( TMsvId aId ) |
|
810 |
{ |
|
811 |
if(iSession) |
|
812 |
{ |
|
813 |
CMsvEntry* pEntry = iSession->GetEntryL(KMsvDraftEntryIdValue); |
|
814 |
CleanupStack::PushL(pEntry); |
|
815 |
pEntry->DeleteL( aId ); |
|
816 |
CleanupStack::PopAndDestroy(pEntry); |
|
817 |
} |
|
818 |
} |
|
819 |
||
820 |
||
821 |
// ----------------------------------------------------------------------------- |
|
822 |
// addObjectL |
|
823 |
// @see Header |
|
824 |
// ----------------------------------------------------------------------------- |
|
825 |
// |
|
826 |
void CUniEditorMmsPluginPrivate::addObjectL(int aSlideNum, const QString& aFilePath) |
|
827 |
{ |
|
828 |
||
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
829 |
HBufC* filePath = XQConversions::qStringToS60Desc(aFilePath); |
31 | 830 |
|
831 |
if (filePath) |
|
832 |
{ |
|
833 |
CleanupStack::PushL(filePath); |
|
834 |
RFile file = iUniDataModel->MediaResolver().FileHandleL(*filePath); |
|
835 |
CleanupClosePushL(file); |
|
836 |
||
837 |
iInsertingMedia = iUniDataModel->MediaResolver().CreateMediaInfoL(file); |
|
838 |
||
839 |
iUniDataModel->MediaResolver().ParseInfoDetailsL(iInsertingMedia, file); |
|
840 |
iUniDataModel->SmilModel().AddObjectL(*this, aSlideNum, iInsertingMedia); |
|
841 |
||
842 |
//Since the ownership is transferred dont delete these |
|
843 |
iInsertingMedia = NULL; |
|
844 |
CleanupStack::PopAndDestroy(&file); |
|
845 |
CleanupStack::PopAndDestroy(filePath); |
|
846 |
} |
|
847 |
||
848 |
} |
|
849 |
||
850 |
||
851 |
// ----------------------------------------------------------------------------- |
|
852 |
// addAttachmentL |
|
853 |
// @see Header |
|
854 |
// ----------------------------------------------------------------------------- |
|
855 |
// |
|
856 |
void CUniEditorMmsPluginPrivate::addAttachmentL(const QString& aFilePath) |
|
857 |
{ |
|
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
858 |
HBufC * filePath = XQConversions::qStringToS60Desc(aFilePath); |
31 | 859 |
if (filePath) |
860 |
{ |
|
861 |
CleanupStack::PushL(filePath); |
|
862 |
||
863 |
RFile file = iUniDataModel->MediaResolver().FileHandleL(*filePath); |
|
864 |
CleanupClosePushL(file); |
|
865 |
||
866 |
iInsertingMedia = iUniDataModel->MediaResolver().CreateMediaInfoL(file); |
|
867 |
||
868 |
iUniDataModel->MediaResolver().ParseInfoDetailsL(iInsertingMedia, file); |
|
869 |
iUniDataModel->AddAttachmentL(*this, |
|
870 |
iInsertingMedia, |
|
871 |
CMsvAttachment::EMsvFile); |
|
872 |
||
873 |
//Since the ownership is transferred dont delete these |
|
874 |
iInsertingMedia = NULL; |
|
875 |
||
876 |
CleanupStack::PopAndDestroy(&file); |
|
877 |
CleanupStack::PopAndDestroy(filePath); |
|
878 |
} |
|
879 |
||
880 |
} |
|
881 |
||
882 |
||
883 |
// ----------------------------------------------------------------------------- |
|
884 |
// addTextObjectL |
|
885 |
// @see Header |
|
886 |
// ----------------------------------------------------------------------------- |
|
887 |
// |
|
888 |
void CUniEditorMmsPluginPrivate::addTextObjectL(int aSlideNum, const QString& aBodyText) |
|
889 |
{ |
|
890 |
delete iEditor; |
|
891 |
iEditor = NULL; |
|
892 |
||
43
35b64624a9e7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
34
diff
changeset
|
893 |
HBufC* textContent = XQConversions::qStringToS60Desc(aBodyText); |
31 | 894 |
if (textContent) |
895 |
{ |
|
896 |
CleanupStack::PushL(textContent); |
|
897 |
||
898 |
iEditor = new CEikRichTextEditor; |
|
899 |
iEditor->ConstructL(NULL, 0, 0, CEikEdwin::ENoAutoSelection |
|
900 |
| CEikEdwin::EOwnsWindow, 0, 0); |
|
901 |
iEditor->RichText()->InsertL(0, *textContent); |
|
902 |
||
903 |
iUniDataModel->SmilModel().AddTextObjectL(aSlideNum, iEditor); |
|
904 |
CleanupStack::PopAndDestroy(textContent); |
|
905 |
} |
|
906 |
} |
|
907 |
||
908 |
||
909 |
// ----------------------------------------------------------------------------- |
|
910 |
// ObjectSaveReady |
|
911 |
// @see Header |
|
912 |
// ----------------------------------------------------------------------------- |
|
913 |
// |
|
914 |
void CUniEditorMmsPluginPrivate::ObjectSaveReady(TInt /*aError*/) |
|
915 |
{ |
|
916 |
||
917 |
} |
|
918 |
||
919 |
// ----------------------------------------------------------------------------- |
|
920 |
// MediaInfoParsed |
|
921 |
// @see Header |
|
922 |
// ----------------------------------------------------------------------------- |
|
923 |
// |
|
924 |
void CUniEditorMmsPluginPrivate::MediaInfoParsed() |
|
925 |
{ |
|
926 |
||
927 |
} |
|
928 |
||
929 |
// ----------------------------------------------------------------------------- |
|
930 |
// SmilComposeEvent |
|
931 |
// @see Header |
|
932 |
// ----------------------------------------------------------------------------- |
|
933 |
// |
|
934 |
void CUniEditorMmsPluginPrivate::SmilComposeEvent(TInt /*aError*/) |
|
935 |
{ |
|
936 |
||
937 |
} |
|
938 |
||
939 |
// ----------------------------------------------------------------------------- |
|
940 |
// RestoreReady |
|
941 |
// @see Header |
|
942 |
// ----------------------------------------------------------------------------- |
|
943 |
// |
|
944 |
void CUniEditorMmsPluginPrivate::RestoreReady(TInt /*aParseResult*/, TInt /*aError*/) |
|
945 |
{ |
|
946 |
} |
|
947 |
||
948 |
||
949 |
// HandleSessionEventL |
|
950 |
// @see Header |
|
951 |
// ----------------------------------------------------------------------------- |
|
952 |
// |
|
953 |
void CUniEditorMmsPluginPrivate::HandleSessionEventL(TMsvSessionEvent /*aEvent*/, |
|
954 |
TAny* /*aArg1*/, |
|
955 |
TAny* /*aArg2*/, TAny* /*aArg3*/) |
|
956 |
{ |
|
957 |
// do nothing |
|
958 |
} |
|
959 |
||
960 |
// End of File |