|
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 __LBSNETREQUESTHANDLER_H__ |
|
22 #define __LBSNETREQUESTHANDLER_H__ |
|
23 |
|
24 #include <e32base.h> |
|
25 #include "cnetrequestbus.h" |
|
26 #include "crequesthandler.h" |
|
27 |
|
28 class CNETRequestHandler: public CRequestHandler |
|
29 { |
|
30 public: |
|
31 static CNETRequestHandler* NewL(CPositionerQ* aPositionerQ); |
|
32 ~CNETRequestHandler(); |
|
33 |
|
34 void IssueStatus(TBool aTracking, TLbsPositionUpdateRequestBase::TPowerAdvice aPower = TLbsPositionUpdateRequestBase::ENoPowerAdvice); |
|
35 void IssueCancel(TBool aTracking, TLbsPositionUpdateRequestBase::TPowerAdvice aPower = TLbsPositionUpdateRequestBase::EPowerAdviceStandby); |
|
36 void IssueMergedRequestL(); |
|
37 |
|
38 private: |
|
39 void ConstructL(); |
|
40 CNETRequestHandler(CPositionerQ* aPositionerQ); |
|
41 |
|
42 TInt MergeRequest(const TRequestParameters* aRequestParameters, |
|
43 const TBool aTracking, |
|
44 TLbsPositionUpdateRequestBase::TPowerAdvice aPower = TLbsPositionUpdateRequestBase::ENoPowerAdvice); |
|
45 |
|
46 void ResetMergedRequest(); |
|
47 |
|
48 private: |
|
49 RLbsPositionUpdateRequests::TChannelIdentifer iChannel; // the channel identifier for the key of RProperty object |
|
50 CNETRequestBus* iNETRequestBus; |
|
51 }; |
|
52 |
|
53 #endif // __LBSNETREQUESTHANDLER_H__ |