|
1 // Copyright (c) 2008-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 "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @InternalComponent |
|
19 */ |
|
20 |
|
21 #ifndef __LBSAGPSREQUESTHANDLER_H__ |
|
22 #define __LBSAGPSREQUESTHANDLER_H__ |
|
23 |
|
24 #include <e32base.h> |
|
25 #include "cagpsrequestbus.h" |
|
26 #include "crequesthandler.h" |
|
27 |
|
28 class CPositionerQ; |
|
29 |
|
30 class CAgpsRequestHandler: public CRequestHandler |
|
31 { |
|
32 public: |
|
33 static CAgpsRequestHandler* NewL(CPositionerQ* aPositionerQ); |
|
34 ~CAgpsRequestHandler(); |
|
35 |
|
36 void IssueStatus(TBool aTracking, TLbsPositionUpdateRequestBase::TPowerAdvice aPower = TLbsPositionUpdateRequestBase::ENoPowerAdvice); |
|
37 void IssueCancel(TBool aTracking, TLbsPositionUpdateRequestBase::TPowerAdvice aPower = TLbsPositionUpdateRequestBase::EPowerAdviceStandby); |
|
38 void IssueMergedRequestL(); |
|
39 |
|
40 private: |
|
41 void ConstructL(); |
|
42 CAgpsRequestHandler(CPositionerQ* aPositionerQ); |
|
43 |
|
44 TInt MergeRequest(const TRequestParameters* aRequestParameters, |
|
45 const TBool aTracking, |
|
46 TLbsPositionUpdateRequestBase::TPowerAdvice aPower = TLbsPositionUpdateRequestBase::ENoPowerAdvice); |
|
47 |
|
48 TInt MergeMethod(TLbsNetPosRequestMethodInt& aNewReq); |
|
49 void ResetMergedRequest(); |
|
50 TInt ModeToIndex(TInt aMode); |
|
51 |
|
52 private: |
|
53 CAgpsRequestBus* iAGPSRequestBus; |
|
54 TPositionModuleInfoExtended::TDeviceGpsModeCapabilities iCapabilities; |
|
55 }; |
|
56 |
|
57 #endif // __LBSREQUESTHANDLER_H__ |