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