|
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 // An Active Object that requests and handles change notification requests from the CenRep |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalAll |
|
21 @deprecated |
|
22 */ |
|
23 |
|
24 #ifndef LBSHOSTSETTINGSNOTIFIER_H_ |
|
25 #define LBSHOSTSETTINGSNOTIFIER_H_ |
|
26 |
|
27 #include <centralrepository.h> |
|
28 #include <lbs/lbshostsettingsclasstypes.h> |
|
29 #include "lbshostsettingsimpl.h" |
|
30 #include <lbs/lbshostsettings.h> |
|
31 |
|
32 class CLbsHostSettingsNotifier : public CActive |
|
33 { |
|
34 public: |
|
35 static CLbsHostSettingsNotifier* NewL(TLbsHostStoreId aStoreId, CRepository& aRepository, MLbsHostSettingsStoreObserver* aObserver); |
|
36 ~CLbsHostSettingsNotifier(); |
|
37 void RequestNotificationL(); |
|
38 void SuppressNotification(TUid aSettingsId); |
|
39 |
|
40 private: |
|
41 CLbsHostSettingsNotifier(TLbsHostStoreId aStoreId, CRepository& aRepository, MLbsHostSettingsStoreObserver* aObserver); |
|
42 virtual void RunL(); |
|
43 virtual void DoCancel(); |
|
44 virtual TInt RunError(TInt aError); |
|
45 |
|
46 private: |
|
47 CRepository& iRepository; |
|
48 TLbsHostStoreId iStoreId; |
|
49 // We do not own iObserver so do not delete it. |
|
50 // We have a pointer instead of a reference because it may be NULL |
|
51 MLbsHostSettingsStoreObserver* iObserver; |
|
52 TUid iSuppressSettingsId; |
|
53 }; |
|
54 |
|
55 #endif // LBSHOSTSETTINGSNOTIFIER_H_ |