748
|
1 |
/*
|
|
2 |
* Copyright (c) 2001-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 the License "Symbian Foundation License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
#ifndef __CT_LBS_CLIENT_POS_TP213_H__
|
|
21 |
#define __CT_LBS_CLIENT_POS_TP213_H__
|
|
22 |
|
|
23 |
// INCLUDES
|
|
24 |
#include "ctlbsportedstepbase.h"
|
|
25 |
#include "mctlbsrequestobserver.h"
|
|
26 |
|
|
27 |
// CONSTANTS
|
|
28 |
|
|
29 |
// FORWARD DECLARATION
|
|
30 |
class CT_LbsClientRequestor;
|
|
31 |
class CT_LbsClientEventTimer;
|
|
32 |
class CPosModules;
|
|
33 |
|
|
34 |
// CLASS DECLARATION
|
|
35 |
|
|
36 |
/**
|
|
37 |
* Test procedure 213
|
|
38 |
*
|
|
39 |
*/
|
|
40 |
class CT_LbsClientPosTp213 : public CT_LbsPortedStepBase, public MCT_LbsRequestObserver
|
|
41 |
{
|
|
42 |
public: // Constructors and destructor
|
|
43 |
|
|
44 |
/**
|
|
45 |
* C++ default constructor.
|
|
46 |
*/
|
|
47 |
CT_LbsClientPosTp213(CT_LbsServer& aParent);
|
|
48 |
|
|
49 |
/**
|
|
50 |
* Destructor.
|
|
51 |
*/
|
|
52 |
~CT_LbsClientPosTp213();
|
|
53 |
|
|
54 |
public: // Functions from base classes
|
|
55 |
|
|
56 |
/**
|
|
57 |
* From CT_LbsPortedStepBase
|
|
58 |
*/
|
|
59 |
void StartL();
|
|
60 |
|
|
61 |
/**
|
|
62 |
* From CT_LbsPortedStepBase
|
|
63 |
* Called after the tests
|
|
64 |
*/
|
|
65 |
void CloseTest();
|
|
66 |
|
|
67 |
/**
|
|
68 |
* From MCT_LbsRequestObserver
|
|
69 |
* Called when a CRequester request has completed.
|
|
70 |
*/
|
|
71 |
void RequestCompleteL();
|
|
72 |
|
|
73 |
private:
|
|
74 |
|
|
75 |
void EnablePsyL(
|
|
76 |
CPosModules& aDb,
|
|
77 |
TUid aPsy);
|
|
78 |
|
|
79 |
|
|
80 |
void DisablePsyL(
|
|
81 |
CPosModules& aDb,
|
|
82 |
TUid aPsy);
|
|
83 |
|
|
84 |
private:
|
|
85 |
|
|
86 |
void CheckRequestResultL(TInt aExpectedErrorCode, TRequestStatus& aStatus);
|
|
87 |
|
|
88 |
CT_LbsClientRequestor* iclient1;
|
|
89 |
CT_LbsClientRequestor* iclient2;
|
|
90 |
CT_LbsClientRequestor* iclient3;
|
|
91 |
CT_LbsClientEventTimer* ieventtimer;
|
|
92 |
TInt iCompletedRequests;
|
|
93 |
TBool iNoFurtherEvents;
|
|
94 |
TBool iErrorDuringExecution;
|
|
95 |
};
|
|
96 |
|
|
97 |
#endif // __CT_LBS_CLIENT_POS_TP213_H__
|
|
98 |
|
|
99 |
// End of File
|