|
1 /* |
|
2 * Copyright (c) 2007-2009 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 EPOS_CPOSMODULESSETTINGS_H |
|
21 #define EPOS_CPOSMODULESSETTINGS_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <lbs.h> |
|
25 #include "epos_mposmodulesettingsmanager.h" |
|
26 #include <lbs/epos_mposmodulesobserver.h> |
|
27 |
|
28 class CPosModules; |
|
29 |
|
30 /** |
|
31 * Class manages module settings. |
|
32 */ |
|
33 class CPosModuleSettings : public CBase, |
|
34 public MPosModulesObserver, |
|
35 public MPosModuleSettingsManager |
|
36 { |
|
37 public: // Constructors and destructor |
|
38 static CPosModuleSettings* NewL(); |
|
39 virtual ~CPosModuleSettings(); |
|
40 |
|
41 public: // New functions |
|
42 CPosModules& PosModules(); |
|
43 |
|
44 public: // From MPosModuleSettingsManager |
|
45 virtual void AddListenerL(MPosModuleSettingsListener& aListener ); |
|
46 virtual void RemoveListener(MPosModuleSettingsListener& aListener); |
|
47 virtual CPosModuleIdList* ModuleIdListL(); |
|
48 virtual void GetModuleInfoL(TPositionModuleId aModuleId, TPositionModuleInfoBase& aInfo); |
|
49 virtual TBool IsModuleVisibleL(TPositionModuleId aModuleId); |
|
50 |
|
51 protected: // From MPosModulesObserver |
|
52 virtual void HandleSettingsChangeL( TPosModulesEvent aEvent ); |
|
53 |
|
54 private: |
|
55 CPosModuleSettings(); |
|
56 void ConstructL(); |
|
57 CPosModuleSettings& operator= ( const CPosModuleSettings& ); |
|
58 |
|
59 private: // Data |
|
60 //Listen array |
|
61 RPointerArray < MPosModuleSettingsListener > iListenerArray; |
|
62 |
|
63 //Module settings API |
|
64 CPosModules* iModules; |
|
65 |
|
66 }; |
|
67 |
|
68 #endif // EPOS_CPOSMODULESSETTINGS_H |
|
69 |
|
70 // End of File |