equal
deleted
inserted
replaced
|
1 // Copyright (c) 2006-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 // Definition of power advice handler sub-component of agps manager |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalTechnology |
|
21 */ |
|
22 |
|
23 #ifndef LBSPOWERADVICEHANDLER_H |
|
24 #define LBSPOWERADVICEHANDLER_H |
|
25 |
|
26 #include <e32base.h> |
|
27 |
|
28 #include "LbsInternalInterface.h" |
|
29 |
|
30 class MPowerModeObserver |
|
31 { |
|
32 public: |
|
33 |
|
34 virtual void PowerModeAdvice(CLbsLocationSourceGpsBase::TPowerMode& aPowerMode) = 0; |
|
35 }; |
|
36 |
|
37 |
|
38 class CPowerModeAdviceHandler : public CActive |
|
39 { |
|
40 public: |
|
41 static CPowerModeAdviceHandler* NewL(MPowerModeObserver* aObserver); |
|
42 |
|
43 ~CPowerModeAdviceHandler(); |
|
44 void StartGettingPowerUpdates(); |
|
45 protected: |
|
46 CPowerModeAdviceHandler(MPowerModeObserver* aObserver); |
|
47 void ConstructL(); |
|
48 |
|
49 // From CActive |
|
50 virtual void RunL(); |
|
51 virtual void DoCancel(); |
|
52 |
|
53 private: |
|
54 MPowerModeObserver* iObserver; |
|
55 RLbsManagerPowerModeAdvice iManagerPowerModeAdvice; |
|
56 |
|
57 }; |
|
58 |
|
59 #endif // LBSPOWERADVICEHANDLER_H |
|
60 |