summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_abstractmobiledevice.cpp8
-rw-r--r--libopie2/opiecore/device/odevice_zaurus.cpp4
2 files changed, 10 insertions, 2 deletions
diff --git a/libopie2/opiecore/device/odevice_abstractmobiledevice.cpp b/libopie2/opiecore/device/odevice_abstractmobiledevice.cpp
index fe5864b..dbe9364 100644
--- a/libopie2/opiecore/device/odevice_abstractmobiledevice.cpp
+++ b/libopie2/opiecore/device/odevice_abstractmobiledevice.cpp
@@ -64,5 +64,7 @@ bool OAbstractMobileDevice::suspend() {
bool res = false;
+ {
QCopEnvelope( "QPE/System", "aboutToSuspend()" );
+ }
struct timeval tvs, tvn;
@@ -83,9 +85,11 @@ bool OAbstractMobileDevice::suspend() {
}
- return res;
-
+ {
QCopEnvelope( "QPE/System", "returnFromSuspend()" );
}
+ return res;
+}
+
//#include <linux/fb.h> better not rely on kernel headers in userspace ...
diff --git a/libopie2/opiecore/device/odevice_zaurus.cpp b/libopie2/opiecore/device/odevice_zaurus.cpp
index 4a80a7e..5d48488 100644
--- a/libopie2/opiecore/device/odevice_zaurus.cpp
+++ b/libopie2/opiecore/device/odevice_zaurus.cpp
@@ -713,5 +713,7 @@ bool Zaurus::suspend() {
bool res = false;
+ {
QCopEnvelope( "QPE/System", "aboutToSuspend()" );
+ }
struct timeval tvs, tvn;
@@ -733,5 +735,7 @@ bool Zaurus::suspend() {
}
+ {
QCopEnvelope( "QPE/System", "returnFromSuspend()" );
+ }
return res;