imagehandlingutilities/thumbnailmanager/tmcommon/inc/tmactivitymanager.h
changeset 15 7197e789b953
parent 14 2edacbf5d3f9
--- a/imagehandlingutilities/thumbnailmanager/tmcommon/inc/tmactivitymanager.h	Fri Mar 19 09:35:30 2010 +0200
+++ b/imagehandlingutilities/thumbnailmanager/tmcommon/inc/tmactivitymanager.h	Fri Apr 16 15:16:16 2010 +0300
@@ -21,6 +21,10 @@
 #ifndef TMACTIVITYMANAGER_H
 #define TMACTIVITYMANAGER_H
 
+//5.0 and 9.2 behaves totally different way, 
+//! uncomment on 5.0 !
+#define MONITOR_LIGHTS
+
 
 class MTMActivityManagerObserver
 
@@ -30,8 +34,10 @@
 };
 
 
-class CTMActivityManager : public CActive,
-                           public MHWRMLightObserver
+class CTMActivityManager : public CActive
+#ifdef MONITOR_LIGHTS   
+                           ,public MHWRMLightObserver
+#endif
 
 {
 public:
@@ -67,8 +73,10 @@
     void ConstructL();
     void NotifyObserver();
     
+#ifdef MONITOR_LIGHTS
 private: //From MHWRMLightObserver
     void LightStatusChanged(TInt aTarget, CHWRMLight::TLightStatus aStatus);
+#endif
     
 protected:
     enum TWatch { ENone = 0, EWaitingForInactivity, EWaitingForActivity };
@@ -79,11 +87,12 @@
     MTMActivityManagerObserver* iObserver; ///The observer of activity status
     TInt iTimeout; ///Current inactivity period
     
+#ifdef MONITOR_LIGHTS
     //Backlight control 
     CHWRMLight* iLight;
     //backlight status
     TBool iLights;
-
+#endif
     //previous status
     TInt iPreviousStatus;
     TBool iFirstRound;