|
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 "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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __CT_LBS_CLIENT_POS_TP25_H__ |
|
21 #define __CT_LBS_CLIENT_POS_TP25_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include "ctlbsportedstepbase.h" |
|
25 #include "mctlbsrequestobserver.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CT_LbsRequester; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Test procedure 25 |
|
34 * |
|
35 */ |
|
36 class CT_LbsClientPosTp25 : public CT_LbsPortedStepBase, public MCT_LbsRequestObserver |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * C++ default constructor. |
|
42 */ |
|
43 CT_LbsClientPosTp25(CT_LbsServer& aParent); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 ~CT_LbsClientPosTp25(); |
|
49 |
|
50 public: // Functions from base classes |
|
51 |
|
52 /** |
|
53 * From CT_LbsPortedStepBase |
|
54 * Runs the test in the module |
|
55 */ |
|
56 void StartL(); |
|
57 |
|
58 /** |
|
59 * From MCT_LbsRequestObserver |
|
60 * Called when a CT_LbsRequester request has completed. |
|
61 */ |
|
62 void RequestCompleteL(); |
|
63 |
|
64 private: // New functions |
|
65 |
|
66 /** |
|
67 * Leaves if aCondition is false. |
|
68 * @param aCondition something that should be true |
|
69 */ |
|
70 void AssertTrueL(TBool aCondition, const TDesC& aErrorMsg); |
|
71 |
|
72 private: // Data |
|
73 |
|
74 CT_LbsRequester* iFastPsy; |
|
75 CT_LbsRequester* iMediumPsy; |
|
76 CT_LbsRequester* iSlowPsy; |
|
77 TInt iCompletedRequests; |
|
78 }; |
|
79 |
|
80 #endif // __CT_LBS_CLIENT_POS_TP25_H__ |
|
81 |
|
82 // End of File |