|
1 /** |
|
2 * Copyright (c) 2005-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 "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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __TESTCONTACTSDBSTEP_H__ |
|
21 #define __TESTCONTACTSDBSTEP_H__ |
|
22 |
|
23 #include "TestStartUpServer.h" |
|
24 |
|
25 class CTestContactsDbStep : public CTestStep |
|
26 { |
|
27 public: |
|
28 CTestContactsDbStep(); |
|
29 ~CTestContactsDbStep(); |
|
30 TVerdict doTestStepPreambleL(); |
|
31 TVerdict doTestStepPostambleL(); |
|
32 TVerdict doTestStepL(); |
|
33 |
|
34 private: |
|
35 CActiveScheduler* iSched; |
|
36 CContactDatabase* iDb; |
|
37 TPtrC iCntsDbAction; |
|
38 TInt iNumberOfContacts; |
|
39 CContactItemFieldSet* iFields; |
|
40 |
|
41 void CreateDefaultCntsDb(); |
|
42 void OpenDefaultCntsDb(); |
|
43 void DeleteDefaultCntsDb(); |
|
44 TBool CheckExistingViewDefsL(); |
|
45 void AddContactsL(TInt aNumber); |
|
46 void ReplaceDefaultCntsDb(); |
|
47 void SetManyFieldsL(CContactItemFieldSet &aFields, const TDesC& aText, const TInt aMany); |
|
48 void SetFieldL(CContactItemFieldSet &aFields, const TInt aPos, const TDesC& aText); |
|
49 }; |
|
50 |
|
51 #endif |