equal
deleted
inserted
replaced
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 |