src/hbcore/utils/hbsleepmodelistener_p.cpp
changeset 28 b7da29130b0e
parent 7 923ff622b8b9
equal deleted inserted replaced
23:e6ad4ef83b23 28:b7da29130b0e
    76             if (index >= 0 && index < KHWRMLightMaxTargets) {
    76             if (index >= 0 && index < KHWRMLightMaxTargets) {
    77                 status = static_cast<CHWRMLight::TLightStatus>(currentStatus[index].iStatus);
    77                 status = static_cast<CHWRMLight::TLightStatus>(currentStatus[index].iStatus);
    78                 if (!lastStatusValid || lastStatus != status) {
    78                 if (!lastStatusValid || lastStatus != status) {
    79                     lastStatusValid = true;
    79                     lastStatusValid = true;
    80                     lastStatus = status;
    80                     lastStatus = status;
       
    81 #ifndef __WINSCW__ 
    81                     RProcess process;
    82                     RProcess process;
    82                     // If process is something else than themeserver
    83                     // If process is something else than themeserver
    83                     if (process.SecureId().iId != KHbPsHardwareCoarseOrientationCategoryUid.iUid) {
    84                     if (process.SecureId().iId != KHbPsHardwareCoarseOrientationCategoryUid.iUid) {
    84                         QList<HbMainWindow *> mainWindowList = hbInstance->allMainWindows();
    85                         QList<HbMainWindow *> mainWindowList = hbInstance->allMainWindows();
    85                         for (int i = 0; i < mainWindowList.count(); ++i) {
    86                         for (int i = 0; i < mainWindowList.count(); ++i) {
    91                         }
    92                         }
    92                     } else {
    93                     } else {
    93                         HbEvent event(status == CHWRMLight::ELightOff ? HbEvent::SleepModeEnter : HbEvent::SleepModeExit);
    94                         HbEvent event(status == CHWRMLight::ELightOff ? HbEvent::SleepModeEnter : HbEvent::SleepModeExit);
    94                         QCoreApplication::sendEvent(qApp, &event);
    95                         QCoreApplication::sendEvent(qApp, &event);
    95                     }
    96                     }
       
    97 #endif //__WINSCW__
    96                 }
    98                 }
    97             }
    99             }
    98         }
   100         }
    99     }
   101     }
   100 
   102