|
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 // A wrapper around the location reqeust bus. This bus is used by the |
|
15 // location server to issue requests to the Network Location manager |
|
16 // |
|
17 // |
|
18 |
|
19 /** |
|
20 @file |
|
21 @InternalComponent |
|
22 */ |
|
23 |
|
24 #ifndef __NETREQUESTBUS_H__ |
|
25 #define __NETREQUESTBUS_H__ |
|
26 |
|
27 #include <e32base.h> |
|
28 #include "LbsInternalInterface.h" |
|
29 |
|
30 /** |
|
31 Wrapper around the RLbsPositionUpdateRequests |
|
32 Assume something else (root) has already called RLbsPositionUpdateRequests::InitializeL() |
|
33 therefore just call RLbsPositionUpdateRequests::Open |
|
34 */ |
|
35 class CNETRequestBus |
|
36 { |
|
37 public: |
|
38 static CNETRequestBus* NewL(const RLbsPositionUpdateRequests::TChannelIdentifer& aChannel); |
|
39 CNETRequestBus(const RLbsPositionUpdateRequests::TChannelIdentifer& aChannel); |
|
40 ~CNETRequestBus(); |
|
41 void ConstructL(); |
|
42 void PublishRequestL(const TLbsPositionUpdateRequestBase& aRequest); |
|
43 void ReadRequestL(TLbsPositionUpdateRequestBase& aRequest); |
|
44 protected: |
|
45 /** from the Internal API, the request bus, a RProperty wrapper */ |
|
46 RLbsPositionUpdateRequests iNETRequestBus; |
|
47 /** the channel indentifier of the request property */ |
|
48 const RLbsPositionUpdateRequests::TChannelIdentifer& iChannel; |
|
49 }; |
|
50 |
|
51 #endif // __NETREQUESTBUS_H__ |