controlpanelui/src/cpprofilewrapper/src/cpprofilemonitor_p.h
changeset 41 ab0490982943
parent 33 0cfa53de576f
--- a/controlpanelui/src/cpprofilewrapper/src/cpprofilemonitor_p.h	Thu Sep 02 17:11:27 2010 +0800
+++ b/controlpanelui/src/cpprofilewrapper/src/cpprofilemonitor_p.h	Thu Sep 30 16:15:53 2010 +0800
@@ -17,26 +17,35 @@
 #ifndef CPPROFILEMONITORPRIVATE_H
 #define CPPROFILEMONITORPRIVATE_H
 
-#include <MProfileChangeObserver.h>
+#include <MProEngNotifyHandler.h>
+#include <MProEngProfileActivationObserver.h>
+#include <MProEngProfileObserver.h>
+#include <MProEngProfileNameArrayObserver.h>
 #include <qglobal.h>
 
-class CProfileChangeNotifyHandler;
+class CpProfileModel;
 class CpProfileMonitor;
 
-class CpProfileMonitorPrivate:public MProfileChangeObserver
+class CpProfileMonitorPrivate:public MProEngProfileActivationObserver,
+                              public MProEngProfileObserver,
+                              public MProEngProfileNameArrayObserver
 {
     Q_DECLARE_PUBLIC(CpProfileMonitor)
 public:
     CpProfileMonitorPrivate();
     ~CpProfileMonitorPrivate();
     void initialize(CpProfileMonitor *parent);
-    
-#ifdef Q_OS_SYMBIAN
+    void stopMonitoring();
 private:
-    void HandleActiveProfileEventL(TProfileEvent aProfileEvent, TInt aProfileId);
+    //from MProEngProfileObserver
+    void HandleProfileModifiedL( TInt aProfileId );
+    //from MProEngProfileActivationObserver
+    void HandleProfileActivatedL( TInt aProfileId );
+    //from MProEngProfileNameArrayObserver
+    void HandleProfileNameArrayModificationL();
 private:
-    CProfileChangeNotifyHandler *mProfileNotifier;
-#endif
+    CpProfileModel *mProfileModel;
+    MProEngNotifyHandler *mProfileNotifier;
 private:
     CpProfileMonitor *q_ptr;
 };