equal
deleted
inserted
replaced
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
28 // CImEmailOperation::CreateNewL |
28 // CImEmailOperation::CreateNewL |
29 // CImEmailMessage::OpenPlainBodyTextForWriteL |
29 // CImEmailMessage::OpenPlainBodyTextForWriteL |
30 // |
30 // |
31 // |
31 // |
32 |
32 |
33 |
|
34 |
|
35 // User includes |
33 // User includes |
36 #include "t_smtpcreatenewmessagewithplainbodytext.h" |
34 #include "t_smtpcreatenewmessagewithplainbodytext.h" |
37 #include <t_utilscentralrepository.h> |
35 #include <t_utilscentralrepository.h> |
38 #include <t_utilsenumconverter.h> |
36 #include <t_utilsenumconverter.h> |
39 #include <t_utils.h> |
37 #include <t_utils.h> |
40 |
38 |
41 // Epoc includes |
39 // Epoc includes |
42 #include <miutmsg.h> |
40 #include <miutmsg.h> |
43 #include <cimplainbodytext.h> |
41 #include <cimplainbodytext.h> |
|
42 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
43 #include "cimmessagepart.h" |
|
44 #endif |
44 |
45 |
45 // Literals Used |
46 // Literals Used |
46 _LIT(KSubject, "Subject"); |
47 _LIT(KSubject, "Subject"); |
47 _LIT(KFolderName, "FolderName"); |
48 _LIT(KFolderName, "FolderName"); |
48 _LIT(KEmailFileName, "EmailFileName"); |
49 _LIT(KEmailFileName, "EmailFileName"); |
278 if (newMessageId!=NULL) |
279 if (newMessageId!=NULL) |
279 { |
280 { |
280 CMsvEntry *entry = CMsvEntry::NewL(*(iSharedDataSMTP.iSession), newMessageId, TMsvSelectionOrdering(KMsvNoGrouping,EMsvSortByNone,ETrue)); |
281 CMsvEntry *entry = CMsvEntry::NewL(*(iSharedDataSMTP.iSession), newMessageId, TMsvSelectionOrdering(KMsvNoGrouping,EMsvSortByNone,ETrue)); |
281 CleanupStack::PushL(entry); |
282 CleanupStack::PushL(entry); |
282 entry->SetEntryL(newMessageId); // |
283 entry->SetEntryL(newMessageId); // |
283 CMsvStore* store = entry->EditStoreL(); |
284 CMsvStore* store = entry->EditStoreL(); |
284 CleanupStack::PushL(store); |
285 CleanupStack::PushL(store); |
285 |
286 |
286 CImHeader* header = CImHeader::NewLC(); |
287 CImHeader* header = CImHeader::NewLC(); |
287 header->RestoreL(*store); // Retrieves the email message header part from the message store |
288 header->RestoreL(*store); // Retrieves the email message header part from the message store |
288 TPtrC subject; |
289 TPtrC subject; |
309 entry->ChangeL(indexEntry); // Modify the corresponding index entry permanently |
310 entry->ChangeL(indexEntry); // Modify the corresponding index entry permanently |
310 |
311 |
311 CleanupStack::PopAndDestroy(3,entry); // header, store, entry |
312 CleanupStack::PopAndDestroy(3,entry); // header, store, entry |
312 } |
313 } |
313 } |
314 } |
|
315 |