|
1 // Copyright (c) 2005-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 "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Contains declaration of CTestCustomPropertyStep class |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __TEST_CUSTOM_PROPERTY_STEP_H__ |
|
19 #define __TEST_CUSTOM_PROPERTY_STEP_H__ |
|
20 |
|
21 // User Includes |
|
22 #include "TestBookmarksServer.h" |
|
23 #include "TestBookmarksBaseStep.h" |
|
24 |
|
25 /** |
|
26 The test step that sets the custom property of the DB or a Folder or a |
|
27 Bookmark based on the value mentioned in the ini file |
|
28 @internalTechnology |
|
29 @test |
|
30 */ |
|
31 class CTestCustomPropertyStep : public CTestBookmarksBaseStep |
|
32 { |
|
33 public: |
|
34 CTestCustomPropertyStep(CTestBookmarksServer& aTestServer); |
|
35 |
|
36 // TEF pure virtual |
|
37 virtual enum TVerdict doTestStepL(); |
|
38 |
|
39 void DoTestL(const TInt& aProperty, const TPtrC& aValue); |
|
40 void DoRegDeregCustomProperty(const TPtrC& aOperation, const TPtrC& aCategory, const TPtrC& aUid); |
|
41 void DoSetGetCustomPropertyL(const TPtrC& aOperation, const TPtrC& aCategory, const TPtrC& aUid); |
|
42 TInt RegisterCustomProperty(const TPtrC& aUid, const TPtrC& aCategory, const TPtrC& aDataType); |
|
43 TInt DeRegisterCustomProperty(const TPtrC& aUid, const TPtrC& aCategory); |
|
44 Bookmark::TPropertyType GetPropertyType(const TPtrC& aDataType); |
|
45 |
|
46 template <class RType> |
|
47 void DoSetPropertyL(RType &aBkWho, const TPtrC& aDataType, const TPtrC& aUid); |
|
48 |
|
49 template <class RType> |
|
50 void DoGetPropertyL(RType &aBkWho, const TPtrC& aDataType, const TPtrC& aUid); |
|
51 |
|
52 |
|
53 }; |
|
54 |
|
55 /*@{*/ |
|
56 // Literal constant defined for identifying step name |
|
57 _LIT(KTestCustomPropertyStep, "TestCustomPropertyStep"); |
|
58 /*@}*/ |
|
59 |
|
60 #endif // __TEST_CUSTOM_PROPERTY_STEP_H__ |