equal
deleted
inserted
replaced
|
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // This contains CTestContactsBase |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef TEST_CONTACTS_BASE_H |
|
19 #define TEST_CONTACTS_BASE_H |
|
20 |
|
21 |
|
22 #include <cntdb.h> |
|
23 #include <TestExecuteStepBase.h> |
|
24 #include <cntitem.h> |
|
25 |
|
26 #include "TestContact.h" |
|
27 |
|
28 const TInt KMaxScriptLineLength = 200; |
|
29 |
|
30 class CTestContactsBase : public CTestStep, protected MTestContactInstrumentation |
|
31 { |
|
32 public: |
|
33 CTestContactsBase(); |
|
34 ~CTestContactsBase(); |
|
35 virtual enum TVerdict doTestStepPreambleL(); |
|
36 virtual enum TVerdict doTestStepPostambleL(); |
|
37 |
|
38 protected: |
|
39 void CreateDatabase(); |
|
40 void OpenDatabase(); |
|
41 void CleanupDatabase(); |
|
42 void RaiseInstrumentationEventNotificationL(TInt aEventTag); |
|
43 CContactIdArray* SearchEntriesL(); |
|
44 |
|
45 protected: |
|
46 CContactDatabase* iDatabase; |
|
47 CContactItemFieldDef* iFieldDef; |
|
48 |
|
49 private: |
|
50 CActiveScheduler* iSchedular; |
|
51 }; |
|
52 |
|
53 #endif /* TEST_CONTACTS_BASE_H */ |