|
1 /* |
|
2 * Copyright (c) 2002 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: TestSyncAgent is a STIF TestModule to test the Synch Agent API |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef TESTCNTDATASTOREEXTN_H |
|
21 #define TESTCNTDATASTOREEXTN_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <StifLogger.h> |
|
25 #include <TestScripterInternal.h> |
|
26 #include <StifTestModule.h> |
|
27 #include <nsmlcontactsdatastoreextension.h> |
|
28 |
|
29 // Logging path |
|
30 _LIT( KTestCntDataStoreExtnLogPath, "\\logs\\testframework\\TestCntDataStoreExtn\\" ); |
|
31 // Log file |
|
32 _LIT( KTestCntDataStoreExtnLogFile, "TestCntDataStoreExtn.txt" ); |
|
33 |
|
34 // FORWARD DECLARATIONS |
|
35 class CTestCntDataStoreExtn; |
|
36 |
|
37 |
|
38 // CLASS DECLARATION |
|
39 /** |
|
40 * TestCntDataStoreExtn test class for STIF Test Framework TestScripter. |
|
41 */ |
|
42 NONSHARABLE_CLASS(CTestCntDataStoreExtn) : public CScriptBase |
|
43 { |
|
44 public: // Constructors and destructor |
|
45 |
|
46 /** |
|
47 * Two-phased constructor. |
|
48 */ |
|
49 static CTestCntDataStoreExtn* NewL( CTestModuleIf& aTestModuleIf ); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 virtual ~CTestCntDataStoreExtn(); |
|
55 |
|
56 public: // Functions from base classes |
|
57 |
|
58 /** |
|
59 * From CScriptBase Runs a script line. |
|
60 * @param aItem Script line containing method name and parameters |
|
61 * @return Symbian OS error code |
|
62 */ |
|
63 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
64 |
|
65 private: |
|
66 |
|
67 /** |
|
68 * C++ default constructor. |
|
69 */ |
|
70 CTestCntDataStoreExtn( CTestModuleIf& aTestModuleIf ); |
|
71 |
|
72 /** |
|
73 * By default Symbian 2nd phase constructor is private. |
|
74 */ |
|
75 void ConstructL(); |
|
76 |
|
77 /** |
|
78 * Frees all resources allocated from test methods. |
|
79 * @since ?Series60_version |
|
80 */ |
|
81 void Delete(); |
|
82 |
|
83 //ADD NEW METHOD DEC HERE |
|
84 /** |
|
85 * Export the contacts |
|
86 */ |
|
87 TInt ExportContactsL( CStifItemParser& aItem ); |
|
88 |
|
89 /** |
|
90 * Import the contacts |
|
91 */ |
|
92 TInt ImportContactsL( CStifItemParser& aItem ); |
|
93 |
|
94 /** |
|
95 * Read contact |
|
96 */ |
|
97 TInt ReadContactL( CStifItemParser& aItem ); |
|
98 |
|
99 /** |
|
100 * Delete contact |
|
101 */ |
|
102 TInt DeleteContactL( CStifItemParser& aItem ); |
|
103 |
|
104 /** |
|
105 * Delete Contacts |
|
106 */ |
|
107 TInt DeleteContactsL( CStifItemParser& aItem ); |
|
108 |
|
109 |
|
110 /** |
|
111 * Delete All Contacts |
|
112 */ |
|
113 TInt DeleteAllContactsL( CStifItemParser& aItem ); |
|
114 |
|
115 /** |
|
116 * List Store |
|
117 */ |
|
118 TInt ListStoresL( CStifItemParser& aItem ); |
|
119 |
|
120 /** |
|
121 * Machine ID |
|
122 */ |
|
123 TInt MachineIdL( CStifItemParser& aItem ); |
|
124 |
|
125 /** |
|
126 * List the contacts |
|
127 */ |
|
128 TInt ListContactsL( CStifItemParser& aItem ); |
|
129 |
|
130 private: // Data |
|
131 CNsmlContactsDataStoreExtension* iCntDataStoreExtension; |
|
132 CArrayFixFlat<TUid>* iEntryArray; |
|
133 |
|
134 }; |
|
135 |
|
136 #endif // TESTCNTDATASTOREEXTN |
|
137 |
|
138 // End of File |