|
1 /* |
|
2 * Copyright (c) 2007-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 the License "Symbian Foundation License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * @file |
|
16 * This is the header file for CT_SmtpCreateNewMessageWithPlainBodyText |
|
17 * |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 #ifndef __T_SMTP_CREATENEWMESSAGE_WITHPLAINBODYTEXT_H__ |
|
27 #define __T_SMTP_CREATENEWMESSAGE_WITHPLAINBODYTEXT_H__ |
|
28 |
|
29 |
|
30 // User includes |
|
31 #include "T_MsgAsyncStepSMTP.h" |
|
32 #include "T_MsgSharedDataSmtp.h" |
|
33 |
|
34 // Epoc includes |
|
35 #include <imapcmds.h> |
|
36 #include <msvstd.h> |
|
37 #include <mtclbase.h> |
|
38 |
|
39 // Literals used |
|
40 _LIT(KSmtpCreateNewMessageWithPlainBodyText,"SmtpCreateNewMessageWithPlainBodyText"); |
|
41 |
|
42 |
|
43 /* |
|
44 * Implements a test step that create a message with plain body text |
|
45 */ |
|
46 class CT_SmtpCreateNewMessageWithPlainBodyText : public CT_MsgAsyncStepSMTP |
|
47 { |
|
48 public: |
|
49 static CT_SmtpCreateNewMessageWithPlainBodyText* NewL(CT_MsgSharedDataSmtp& aSharedDataSMTP); |
|
50 ~CT_SmtpCreateNewMessageWithPlainBodyText(); |
|
51 |
|
52 // CTestStep implementation |
|
53 virtual TVerdict doTestStepL(); |
|
54 |
|
55 private: |
|
56 CT_SmtpCreateNewMessageWithPlainBodyText(CT_MsgSharedDataSmtp& aSharedDataSMTP); |
|
57 void SetHeaderPartL(); |
|
58 void GetDefaultAddressL(); |
|
59 void PopulateBodyPartL(); |
|
60 |
|
61 virtual void ProgressL(TBool bFinal); |
|
62 virtual void CancelStep(); |
|
63 |
|
64 private: |
|
65 HBufC* iRecipientAddress; |
|
66 CMsvOperation* iOperation; |
|
67 }; |
|
68 #endif // __T_SMTP_CREATENEWMESSAGE_WITHPLAINBODYTEXT_H__ |