javamanager/javacaptain/extensionplugins/settingslistener/src.s60/settingslistenerimpl.h
equal
deleted
inserted
replaced
18 */ |
18 */ |
19 |
19 |
20 #ifndef SETTINGSLISTENERIMPL_H |
20 #ifndef SETTINGSLISTENERIMPL_H |
21 #define SETTINGSLISTENERIMPL_H |
21 #define SETTINGSLISTENERIMPL_H |
22 |
22 |
23 #include "javaosheaders.h" |
|
24 |
|
25 #include "settingslistenerinterface.h" |
|
26 |
|
27 #include <vector> |
23 #include <vector> |
28 #include <memory> |
24 #include <memory> |
29 #include <cenrepnotifyhandler.h> |
25 #include <cenrepnotifyhandler.h> |
|
26 |
|
27 #include "javaosheaders.h" |
|
28 #include "settingslistenerinterface.h" |
30 |
29 |
31 namespace java |
30 namespace java |
32 { |
31 { |
33 namespace captain |
32 namespace captain |
34 { |
33 { |
41 public: |
40 public: |
42 SettingsListenerImpl(CoreInterface* aCore); |
41 SettingsListenerImpl(CoreInterface* aCore); |
43 virtual ~SettingsListenerImpl(); |
42 virtual ~SettingsListenerImpl(); |
44 |
43 |
45 // SystemSettingsChangeListenerInterface |
44 // SystemSettingsChangeListenerInterface |
46 virtual void StartListening(); |
45 virtual void startListening(); |
47 virtual void StopListening(); |
46 virtual void stopListening(); |
48 |
47 |
49 private: |
48 private: |
50 void cleanUp(); |
49 void cleanUp(); |
51 int createCenRepKeyListener(TUid aRepoId, TUint32 aKeyId, |
50 CenRepListener* createCenRepKeyListener(TUid aRepoId, TUint32 aKeyId, |
52 CCenRepNotifyHandler::TCenRepKeyType aKeyType, |
51 CCenRepNotifyHandler::TCenRepKeyType aKeyType, |
53 std::auto_ptr<CenRepListener>& aListener); |
52 TInt& aErrorCode); |
54 int createCenRepListener(TUid aRepoId, CenRepListener*& aListener); |
|
55 |
53 |
56 CoreInterface* mCore; // resource not owned |
54 CoreInterface* mCore; // resource not owned |
57 typedef std::vector<CenRepListener*> crListeners_t; |
55 typedef std::vector<CenRepListener*> crListeners_t; |
58 crListeners_t mCenRepListeners; // listeners are owned resources. |
56 crListeners_t mCenRepListeners; // listeners are owned resources. |
59 |
57 |