src/hbcore/utils/hbsleepmodelistener_p.cpp
changeset 28 b7da29130b0e
parent 7 923ff622b8b9
--- a/src/hbcore/utils/hbsleepmodelistener_p.cpp	Thu Sep 02 20:44:51 2010 +0300
+++ b/src/hbcore/utils/hbsleepmodelistener_p.cpp	Fri Sep 17 08:32:10 2010 +0300
@@ -78,6 +78,7 @@
                 if (!lastStatusValid || lastStatus != status) {
                     lastStatusValid = true;
                     lastStatus = status;
+#ifndef __WINSCW__ 
                     RProcess process;
                     // If process is something else than themeserver
                     if (process.SecureId().iId != KHbPsHardwareCoarseOrientationCategoryUid.iUid) {
@@ -93,6 +94,7 @@
                         HbEvent event(status == CHWRMLight::ELightOff ? HbEvent::SleepModeEnter : HbEvent::SleepModeExit);
                         QCoreApplication::sendEvent(qApp, &event);
                     }
+#endif //__WINSCW__
                 }
             }
         }