|
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: Provides testing of CPosLmOperation class methods |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CTESTPOSLMOPERATION_H |
|
21 #define CTESTPOSLMOPERATION_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <StifLogger.h> |
|
25 #include <TestScripterInternal.h> |
|
26 #include <StifTestModule.h> |
|
27 #include <EPos_CPosLmOperation.h> |
|
28 |
|
29 // CLASS |
|
30 |
|
31 class CTestPosLmOperation : public CActive |
|
32 { |
|
33 public: //Public constructor of class |
|
34 |
|
35 /** |
|
36 * |
|
37 */ |
|
38 CTestPosLmOperation(CStifLogger* aLog); |
|
39 |
|
40 static CTestPosLmOperation* NewL(CStifLogger* aLog); |
|
41 |
|
42 void ConstructL(); |
|
43 |
|
44 ~CTestPosLmOperation(); |
|
45 |
|
46 public: //Public methods |
|
47 |
|
48 /** |
|
49 * |
|
50 */ |
|
51 TInt DestructOperationL( CStifItemParser& aItem ); |
|
52 |
|
53 /** |
|
54 * |
|
55 */ |
|
56 TInt ExecuteL( CStifItemParser& aItem ); |
|
57 |
|
58 /** |
|
59 * |
|
60 */ |
|
61 TInt ExecuteAndDeleteOperationL( CStifItemParser& aItem ); |
|
62 |
|
63 /** |
|
64 * |
|
65 */ |
|
66 TInt NextStepL( CStifItemParser& aItem ); |
|
67 |
|
68 |
|
69 |
|
70 protected: |
|
71 |
|
72 void RunL(); |
|
73 |
|
74 void DoCancel(); |
|
75 |
|
76 |
|
77 private: |
|
78 |
|
79 // Private members |
|
80 CStifLogger* iLog; //Log |
|
81 |
|
82 TReal32 iProgress; // Progress of operation |
|
83 |
|
84 CPosLmOperation* iOperation; |
|
85 |
|
86 TInt iLastResult; |
|
87 |
|
88 CPosLandmarkDatabase* iDatabase; |
|
89 }; |
|
90 |
|
91 #endif // CTESTPOSLMOPERATION_H |