|
1 /* |
|
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef DHCPPSYPOSITIONER_H |
|
21 #define DHCPPSYPOSITIONER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <lbs/epos_cpositioner.h> // CPositioner |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CDhcpPsySingletonHandler; |
|
29 class MPositionerStatus; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * This class implements Positioning Plug-in API for DHCP PSY |
|
35 * |
|
36 * This class provides the interface to Location Framework as specified by |
|
37 * Positioning Plug-in API. Each client connection to DHCP PSY makes an |
|
38 * instance of this class. |
|
39 * |
|
40 * This class owns a instance of CNppPsyRequester if there is location |
|
41 * request received. |
|
42 * |
|
43 * @lib dhcppositionprovider.dll |
|
44 * @since 3.2 |
|
45 */ |
|
46 class CDhcpPsyPositioner : public CPositioner |
|
47 { |
|
48 public: // Constructors and destructor |
|
49 |
|
50 /** |
|
51 * Two - phased constructor. |
|
52 */ |
|
53 static CDhcpPsyPositioner* NewL( TAny* aConstructionParameters ); |
|
54 |
|
55 /** |
|
56 * Destructor. |
|
57 */ |
|
58 virtual ~CDhcpPsyPositioner(); |
|
59 |
|
60 /** |
|
61 * Get status report interface |
|
62 * @return Reference to status report interface |
|
63 */ |
|
64 MPositionerStatus& StatusReportInterface(); |
|
65 |
|
66 public: // Functions from base classes |
|
67 |
|
68 /** |
|
69 * From CPositioner See Positioning Plug-in API |
|
70 * @since 3.2 |
|
71 */ |
|
72 void NotifyPositionUpdate ( TPositionInfoBase& aPosInfo, |
|
73 TRequestStatus& aStatus ); |
|
74 |
|
75 /** |
|
76 * From CPositioner See Positioning Plug-in API. |
|
77 * @since 3.2 |
|
78 */ |
|
79 void CancelNotifyPositionUpdate(); |
|
80 |
|
81 private: |
|
82 |
|
83 /** |
|
84 * C++default constructor. |
|
85 */ |
|
86 CDhcpPsyPositioner(); |
|
87 |
|
88 /** |
|
89 * By default Symbian 2nd phase constructor is private. |
|
90 */ |
|
91 void ConstructL( TAny* aConstructionParameters ); |
|
92 |
|
93 private: // Data |
|
94 |
|
95 CDhcpPsySingletonHandler* iDhcpRequestManager; |
|
96 |
|
97 }; |
|
98 |
|
99 #endif // DHCPPSYPOSITIONER_H |
|
100 |
|
101 // End of File |