|
1 /* |
|
2 * Copyright (c) 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: CTestPosLmDisplayItem class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_TESTPOSLMDISPLAYITEM_H |
|
21 #define C_TESTPOSLMDISPLAYITEM_H |
|
22 |
|
23 |
|
24 #include <e32base.h> |
|
25 |
|
26 |
|
27 /** |
|
28 * This class will test methods of CPosLmDisplayItem class |
|
29 * @p CTestPosLmDisplayItem clss contians functions to test methods of |
|
30 * CPosLmDisplayItem class |
|
31 * |
|
32 * @lib testlmksearchapi.lib |
|
33 * @since S60 v3.2 |
|
34 */ |
|
35 |
|
36 class CTestPosLmDisplayItem : public CBase |
|
37 { |
|
38 |
|
39 public: |
|
40 /** |
|
41 * Two-phased constructor. |
|
42 */ |
|
43 static CTestPosLmDisplayItem* NewLC(); |
|
44 |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 virtual ~CTestPosLmDisplayItem(); |
|
50 |
|
51 /** |
|
52 * This function is used to check NewL function of CPosLmDisplayItem class. |
|
53 * This is tested by passing CPosLandmark pointer to the function. |
|
54 */ |
|
55 void TestNewL1L(TInt); |
|
56 |
|
57 /** |
|
58 * This function is used to check NewL function of CPosLmDisplayItem class. |
|
59 * This is tested by passing CPosLandmarkCategory pointer to the function. |
|
60 */ |
|
61 void TestNewL2L(TInt); |
|
62 |
|
63 /** |
|
64 * This function is used to check DisplayItemType function of CPosLmDisplayItem class. |
|
65 */ |
|
66 void TestDisplayItemTypeL(TInt); |
|
67 |
|
68 /** |
|
69 * This function is used to check DatabaseIndex function of CPosLmDisplayItem class. |
|
70 */ |
|
71 void TestDatabaseIndexL(TInt); |
|
72 |
|
73 /** |
|
74 * This function is used to check Category function of CPosLmDisplayItem class. |
|
75 */ |
|
76 void TestCategoryL(TInt); |
|
77 |
|
78 /** |
|
79 * This function is used to check Landmark function of CPosLmDisplayItem class. |
|
80 */ |
|
81 void TestLandmarkL(TInt); |
|
82 |
|
83 /** |
|
84 * This function is used to check GetDistance function of CPosLmDisplayItem class. |
|
85 */ |
|
86 void TestGetDistanceL(); |
|
87 |
|
88 private: |
|
89 |
|
90 /** |
|
91 * Constructor. |
|
92 */ |
|
93 CTestPosLmDisplayItem(); |
|
94 |
|
95 |
|
96 }; |
|
97 |
|
98 |
|
99 |
|
100 #endif // C_TESTPOSLMDISPLAYITEM_H |