author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 24 Nov 2009 08:56:33 +0200 | |
changeset 33 | 50974a8b132e |
parent 19 | 989d2f495d90 |
permissions | -rw-r--r-- |
19 | 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 the License "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: ?Description |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
||
20 |
#ifndef GETLIST_H |
|
21 |
#define GETLIST_H |
|
22 |
||
23 |
#include <liwcommon.h> |
|
24 |
#include <e32base.h> |
|
25 |
#include <f32file.h> |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
26 |
#include <badesca.h> |
19 | 27 |
|
28 |
class CLiwServiceHandler; |
|
29 |
class CLiwGenericParamList; |
|
30 |
class MLiwInterface; |
|
31 |
class CStifLogger; |
|
32 |
class CPosLandmarkDatabase; |
|
33 |
class CPosLmCategoryManager; |
|
34 |
class CPosLmDatabaseManager; |
|
35 |
||
36 |
//CPosLmDatabaseManager* iDatabaseManager; |
|
37 |
||
38 |
void CreateLandmarksL (CPosLandmarkDatabase* aLandmarkHandle); |
|
39 |
void RemoveAllCategories ( CPosLmCategoryManager* aHandle ); |
|
40 |
void RemoveAllLandmarks ( CPosLandmarkDatabase* aLandmarkHandle ); |
|
41 |
TInt CheckErrorCode( const CLiwGenericParamList& aOutList, TInt32& aError ); |
|
42 |
//void DeleteAllLocalDatabasesL(); |
|
43 |
||
44 |
||
45 |
class CCalCallback : public MLiwNotifyCallback |
|
46 |
{ |
|
47 |
public: |
|
48 |
||
49 |
static CCalCallback* NewL(CActiveSchedulerWait* aWaitSchedular, TInt32& aResult ); |
|
50 |
||
51 |
/* CCalCallback() |
|
52 |
{ |
|
53 |
iResult = KErrGeneral; |
|
54 |
} */ |
|
55 |
virtual ~CCalCallback(){} |
|
56 |
||
57 |
TInt HandleNotifyL(TInt aCmdId, |
|
58 |
TInt aEventId, |
|
59 |
CLiwGenericParamList& aEventParamList, |
|
60 |
const CLiwGenericParamList& aInParamList); |
|
61 |
||
62 |
private: |
|
63 |
||
64 |
CCalCallback(CActiveSchedulerWait* aWaitSchedular, TInt32& aResult ):iWaitSchedular(aWaitSchedular), iResult(aResult){ } |
|
65 |
||
66 |
CActiveSchedulerWait* iWaitSchedular; |
|
67 |
TInt32& iResult; |
|
68 |
||
69 |
||
70 |
}; |
|
71 |
||
72 |
||
73 |
class CTestAsync : public CActive |
|
74 |
{ |
|
75 |
public: |
|
76 |
static CTestAsync* NewL(TInt type); |
|
77 |
~CTestAsync(); |
|
78 |
void Start(); |
|
79 |
void CancelNotification(TBool include_tid,TInt32 tid); |
|
80 |
void CancelNotification_KeyBased(); |
|
81 |
void CancelNotification_PosBased(); |
|
82 |
void CancelNotification_InvalidTidType(); |
|
83 |
void CancelNotification_InvalidCmd(); |
|
84 |
TInt32 Result(); |
|
85 |
||
86 |
private: |
|
87 |
void ConstructL(TInt case_type); |
|
88 |
CTestAsync(); |
|
89 |
||
90 |
virtual void DoCancel(); |
|
91 |
virtual void RunL(); |
|
92 |
||
93 |
void TestFunc(); |
|
94 |
void GetListInvalidCase(); |
|
95 |
||
96 |
void AddGetListCancel(); |
|
97 |
void CancelWithInvalidTid(); |
|
98 |
void CallGetListMultipleTimes(); |
|
99 |
void CancelKeyBasedTid(); |
|
100 |
void CancelPosBasedTid(); |
|
101 |
void CancelLargeTid(); |
|
102 |
void CancelInvalidTidType(); |
|
103 |
void CancelInvalidCmd(); |
|
104 |
MLiwInterface* CreateInterface(); |
|
105 |
||
106 |
public: |
|
107 |
TInt32 iTransactionId; |
|
108 |
TInt iTestCaseType; |
|
109 |
||
110 |
private: |
|
111 |
CLiwServiceHandler* iServiceHandler; |
|
112 |
CLiwGenericParamList* inparam; |
|
113 |
CLiwGenericParamList* outparam; |
|
114 |
CActiveSchedulerWait* iWaitSchedular; |
|
115 |
TInt32 iResult; |
|
116 |
CCalCallback* iCallback; |
|
117 |
MLiwInterface* interface; |
|
118 |
CStifLogger *gLog; |
|
119 |
}; |
|
120 |
||
121 |
#endif |