datasourcemodules/gpspositioningmodule/lbsagpspsy/inc/responsehandler/cfinalnetdatabus.h
equal
deleted
inserted
replaced
|
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 // netfinaldatabus.h |
|
15 // An ative object wrapper to manage the network final data bus. This is the P&S bus |
|
16 // that the location managers (e.g. the LocServer manager and network manager) |
|
17 // publish onto. The location server and others subscribe to this bus. |
|
18 // |
|
19 // |
|
20 |
|
21 /** |
|
22 @file |
|
23 @InternalComponent |
|
24 */ |
|
25 |
|
26 #ifndef __NETFINALDATABUS_H__ |
|
27 #define __NETFINALDATABUS_H__ |
|
28 |
|
29 #include <e32base.h> |
|
30 #include "lbsnetinternalapi.h" |
|
31 #include "mdatabusobserver.h" |
|
32 #include "lbsreffnpint.h" |
|
33 |
|
34 class CFinalNetDataBus : public CActive |
|
35 { |
|
36 public: |
|
37 static CFinalNetDataBus* NewL(MDataBusObserver& aObserver); |
|
38 void ConstructL(); |
|
39 ~CFinalNetDataBus(); |
|
40 void Subscribe(); |
|
41 void UnSubscribe(); |
|
42 TInt GetLastPositionInfo(TPositionInfo& aFNPInfo, TTime& aActualTime); |
|
43 |
|
44 private: |
|
45 CFinalNetDataBus(MDataBusObserver& aObserver); |
|
46 |
|
47 // from CActive |
|
48 void RunL(); |
|
49 void DoCancel(); |
|
50 TInt RunError(TInt aError); |
|
51 private: |
|
52 MDataBusObserver& iObs; |
|
53 RLbsNetworkPositionUpdates iFinalNetDataBus; // RProperty wrapper |
|
54 TPositionInfo iPositionInfo; // position info data from the network |
|
55 }; |
|
56 |
|
57 #endif // __NETFINALDATABUS_H__ |