|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // @file CT_LbsClientUpdateOptions.h |
|
15 // This contains the header file for Update Options Tests |
|
16 // |
|
17 // |
|
18 |
|
19 #ifndef __CT_LBS_CLIENT_UPDATEOPTIONS_H__ |
|
20 #define __CT_LBS_CLIENT_UPDATEOPTIONS_H__ |
|
21 |
|
22 #include "ctlbsclientstep.h" |
|
23 #include "ctlbsclientserver.h" |
|
24 #include <lbsadmin.h> |
|
25 |
|
26 |
|
27 // Literals used |
|
28 _LIT(KLbsClientStep_UpdateOptions, "LbsClientStep_UpdateOptions"); |
|
29 |
|
30 class CT_LbsClientStep_UpdateOptions : public CT_LbsClientStep |
|
31 { |
|
32 public: |
|
33 ~CT_LbsClientStep_UpdateOptions(); |
|
34 |
|
35 static CT_LbsClientStep_UpdateOptions* New(CT_LbsClientServer& aParent); |
|
36 virtual TVerdict doTestStepL(); |
|
37 |
|
38 private: |
|
39 CT_LbsClientStep_UpdateOptions(CT_LbsClientServer& aParent); |
|
40 |
|
41 void CT_LbsClientStep_UpdateOptions::TempSetRequestorL(); |
|
42 TBool CT_LbsClientStep_UpdateOptions::CompareUpdateOptions(TPositionUpdateOptions aPosA, TPositionUpdateOptions aPosB); |
|
43 |
|
44 TBool VerifyFirstPosTime(const TTime& aTimeRequested, const TPositionInfo& aPosInfo, const TPositionUpdateOptions& aUpdateOpts); |
|
45 TBool VerifyPosTime(const TTime& aTimeFirstPosReceived, const TPositionUpdateOptions& aUpdateOpts, TPositionInfo& aPosInfo, TInt aPosCount); |
|
46 |
|
47 |
|
48 private: |
|
49 |
|
50 // to allow changing admin settings: |
|
51 CLbsAdmin* iLbsAdmin; |
|
52 |
|
53 TBool iRequestedAssData; |
|
54 TBool iReceivedAssData; |
|
55 |
|
56 }; |
|
57 |
|
58 #endif //__CT_LBS_CLIENT_UPDATEOPTIONS_H__ |