|
1 /* |
|
2 * Copyright (c) 2002 - 2007 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: This header file declares test module for testing Exported- |
|
15 * - functions from MeetingRequestData.h |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 #ifndef SENDUIMEETINGREQUESTAPITEST_H |
|
23 #define SENDUIMEETINGREQUESTAPITEST_H |
|
24 |
|
25 // INCLUDES |
|
26 #include <StifLogger.h> |
|
27 #include <TestScripterInternal.h> |
|
28 #include <StifTestModule.h> |
|
29 #include <TestclassAssert.h> |
|
30 |
|
31 // CONSTANTS |
|
32 |
|
33 // MACROS |
|
34 #define TEST_CLASS_VERSION_MAJOR 0 |
|
35 #define TEST_CLASS_VERSION_MINOR 0 |
|
36 #define TEST_CLASS_VERSION_BUILD 0 |
|
37 |
|
38 // Logging path |
|
39 _LIT( KSendUIMeetingRequestAPITestLogPath, "\\logs\\testframework\\SendUIMeetingRequestAPITest\\" ); |
|
40 // Log file |
|
41 _LIT( KSendUIMeetingRequestAPITestLogFile, "SendUIMeetingRequestAPITest.txt" ); |
|
42 _LIT( KSendUIMeetingRequestAPITestLogFileWithTitle, "SendUIMeetingRequestAPITest_[%S].txt" ); |
|
43 |
|
44 // FUNCTION PROTOTYPES |
|
45 |
|
46 // FORWARD DECLARATIONS |
|
47 class CSendUIMeetingRequestAPITest; |
|
48 class CMeetingRequestData; |
|
49 |
|
50 // DATA TYPES |
|
51 |
|
52 // CLASS DECLARATION |
|
53 |
|
54 /** |
|
55 * CSendUIMeetingRequestAPITest test class for STIF Test Framework TestScripter. |
|
56 * ?other_description_lines |
|
57 * |
|
58 * @lib ?library |
|
59 * @since ?Series60_version |
|
60 */ |
|
61 NONSHARABLE_CLASS(CSendUIMeetingRequestAPITest) : public CScriptBase |
|
62 { |
|
63 public: // Constructors and destructor |
|
64 |
|
65 /** |
|
66 * Two-phased constructor. |
|
67 */ |
|
68 static CSendUIMeetingRequestAPITest* NewL( CTestModuleIf& aTestModuleIf ); |
|
69 |
|
70 /** |
|
71 * Destructor. |
|
72 */ |
|
73 virtual ~CSendUIMeetingRequestAPITest(); |
|
74 |
|
75 public: // New functions |
|
76 |
|
77 public: // Functions from base classes |
|
78 |
|
79 /** |
|
80 * From CScriptBase Runs a script line. |
|
81 * @since ?Series60_version |
|
82 * @param aItem Script line containing method name and parameters |
|
83 * @return Symbian OS error code |
|
84 */ |
|
85 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
86 |
|
87 protected: // New functions |
|
88 |
|
89 protected: // Functions from base classes |
|
90 |
|
91 private: |
|
92 |
|
93 /** |
|
94 * C++ default constructor. |
|
95 */ |
|
96 CSendUIMeetingRequestAPITest( CTestModuleIf& aTestModuleIf ); |
|
97 |
|
98 /** |
|
99 * By default Symbian 2nd phase constructor is private. |
|
100 */ |
|
101 void ConstructL(); |
|
102 |
|
103 /** |
|
104 * Frees all resources allocated from test methods. |
|
105 * @since ?Series60_version |
|
106 */ |
|
107 void Delete(); |
|
108 |
|
109 /** |
|
110 * Test methods are listed below. |
|
111 */ |
|
112 |
|
113 |
|
114 /** |
|
115 * Method used to log version of test class |
|
116 */ |
|
117 void SendTestClassVersion(); |
|
118 |
|
119 /** |
|
120 * TestMRqDataMailBoxnFileIDL tests CMeetingRequestData's |
|
121 * UseMailbox, Mailbox, SetDatabaseFileId, and DatabaseFileId |
|
122 */ |
|
123 TInt TestMRqDataMailBoxnFileIDL( CStifItemParser& aItem ); |
|
124 |
|
125 /** |
|
126 * TestMRqDataEntryLocalIDL tests CMeetingRequestData's |
|
127 * AppendEntryLocalId and EntryLocalIdArray |
|
128 */ |
|
129 TInt TestMRqDataEntryLocalIDL( CStifItemParser& aItem ); |
|
130 |
|
131 /** |
|
132 * TestMRqDataMailHeaderL tests CMeetingRequestData's |
|
133 * SetMailHeaderMethodL and MailHeaderMethod |
|
134 */ |
|
135 TInt TestMRqDataMailHeaderL( CStifItemParser& aItem ); |
|
136 |
|
137 /** |
|
138 * TestMRqDataMailHeaderL tests CMeetingRequestData's |
|
139 * ReadFromBufferL |
|
140 */ |
|
141 TInt TestReadFromBufferL( CStifItemParser& aItem ); |
|
142 |
|
143 /** |
|
144 * TestMRqDataMailHeaderL tests CMeetingRequestData's |
|
145 * WriteToBufferLC |
|
146 */ |
|
147 TInt TestWriteToBufferLC( CStifItemParser& aItem ); |
|
148 |
|
149 //ADD NEW METHOD DEC HERE |
|
150 //[TestMethods] - Do not remove |
|
151 |
|
152 |
|
153 public: // Data |
|
154 |
|
155 protected: // Data |
|
156 |
|
157 private: // Data |
|
158 |
|
159 public: // Friend classes |
|
160 |
|
161 protected: // Friend classes |
|
162 |
|
163 private: // Friend classes |
|
164 |
|
165 |
|
166 }; |
|
167 |
|
168 #endif // SENDUIMEETINGREQUESTAPITEST_H |
|
169 |
|
170 // End of File |