30 #include <MProfileTones.h> |
30 #include <MProfileTones.h> |
31 #include <MProfileName.h> |
31 #include <MProfileName.h> |
32 #include <TProfileToneSettings.h> |
32 #include <TProfileToneSettings.h> |
33 #include <MProfileChangeObserver.h> |
33 #include <MProfileChangeObserver.h> |
34 #include <CProfileChangeNotifyHandler.h> |
34 #include <CProfileChangeNotifyHandler.h> |
|
35 #include "cpecenrepmonitor.h" |
35 |
36 |
36 // FORWARD DECLARATIONS |
37 // FORWARD DECLARATIONS |
37 class MPEPhoneModelInternal; |
38 class MPEPhoneModelInternal; |
38 |
39 |
39 // CLASS DECLARATION |
40 // CLASS DECLARATION |
44 * for notification of changes to profiles |
45 * for notification of changes to profiles |
45 * |
46 * |
46 * @lib Phoneenginebase.lib |
47 * @lib Phoneenginebase.lib |
47 * @since Series60_4.0 |
48 * @since Series60_4.0 |
48 */ |
49 */ |
49 NONSHARABLE_CLASS( CPEProfileSettingMonitor ) : public CBase, public MProfileChangeObserver |
50 NONSHARABLE_CLASS( CPEProfileSettingMonitor ) : public CPECenRepMonitor, public MProfileChangeObserver |
50 { |
51 { |
51 public: |
52 public: |
52 static CPEProfileSettingMonitor* NewL( MPEPhoneModelInternal& aModel ); |
53 static CPEProfileSettingMonitor* NewL( MPEPhoneModelInternal& aModel ); |
53 ~CPEProfileSettingMonitor(); |
54 ~CPEProfileSettingMonitor(); |
54 public: // From MProfileChangeObserver |
55 public: // From MProfileChangeObserver |
55 virtual void HandleActiveProfileEventL( TProfileEvent aProfileEvent, TInt aProfileId ); |
56 virtual void HandleActiveProfileEventL( TProfileEvent aProfileEvent, TInt aProfileId ); |
56 protected: |
57 protected: |
57 CPEProfileSettingMonitor( MPEPhoneModelInternal& aModel ); |
58 CPEProfileSettingMonitor( MPEPhoneModelInternal& aModel ); |
58 void ConstructL(); |
59 void ConstructL(); |
59 void GetProfileSettingsL(); |
60 void GetProfileSettingsL(); |
|
61 // From CPECenRepMonitor |
|
62 void UpdateL(); |
60 private: // Not owned by this object |
63 private: // Not owned by this object |
61 MPEPhoneModelInternal& iModel; |
64 MPEPhoneModelInternal& iModel; |
62 private: // Owned by this object |
65 private: // Owned by this object |
63 MProfileEngine* iProfileEngine; |
66 MProfileEngine* iProfileEngine; |
64 CProfileChangeNotifyHandler* iProfileEventHandler; |
67 CProfileChangeNotifyHandler* iProfileEventHandler; |