summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/device/odevice.cpp
authoralwin <alwin>2004-02-19 11:38:19 (UTC)
committer alwin <alwin>2004-02-19 11:38:19 (UTC)
commitb0019ad8b4a0d69dfd98fe4aa599600746eac20f (patch) (side-by-side diff)
tree8a77c163eab658f9cca5c573b8999905f9d26c87 /libopie2/opiecore/device/odevice.cpp
parentfd12f140cefd20ff7658b695c657c3a6a838da19 (diff)
downloadopie-b0019ad8b4a0d69dfd98fe4aa599600746eac20f.zip
opie-b0019ad8b4a0d69dfd98fe4aa599600746eac20f.tar.gz
opie-b0019ad8b4a0d69dfd98fe4aa599600746eac20f.tar.bz2
when going to suspend, a QCopEnvelope message will send
( "QPE/System","aboutSuspend()" )
Diffstat (limited to 'libopie2/opiecore/device/odevice.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice.cpp50
1 files changed, 28 insertions, 22 deletions
diff --git a/libopie2/opiecore/device/odevice.cpp b/libopie2/opiecore/device/odevice.cpp
index 72b9ac7..7d67efe 100644
--- a/libopie2/opiecore/device/odevice.cpp
+++ b/libopie2/opiecore/device/odevice.cpp
@@ -1,27 +1,27 @@
/*
-                 This file is part of the Opie Project
-              Copyright (C) The Opie Team <opie-devel@handhelds.org>
+ This file is part of the Opie Project
+ Copyright (C) The Opie Team <opie-devel@handhelds.org>
=.
.=l.
-           .>+-=
- _;:,     .>    :=|. This program is free software; you can
-.> <`_,   >  .   <= redistribute it and/or modify it under
-:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
-.="- .-=="i,     .._ License as published by the Free Software
- - .   .-<_>     .<> Foundation; either version 2 of the License,
-     ._= =}       : or (at your option) any later version.
-    .%`+i>       _;_.
-    .i_,=:_.      -<s. This program is distributed in the hope that
-     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
-    : ..    .:,     . . . without even the implied warranty of
-    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
-  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
-..}^=.=       =       ; Library General Public License for more
-++=   -.     .`     .: details.
- :     =  ...= . :.=-
- -.   .:....=;==+<; You should have received a copy of the GNU
-  -_. . .   )=.  = Library General Public License along with
-    --        :-=` this library; see the file COPYING.LIB.
+ .>+-=
+_;:, .> :=|. This program is free software; you can
+.> <`_, > . <= redistribute it and/or modify it under
+:`=1 )Y*s>-.-- : the terms of the GNU Library General Public
+.="- .-=="i, .._ License as published by the Free Software
+- . .-<_> .<> Foundation; either version 2 of the License,
+ ._= =} : or (at your option) any later version.
+ .%`+i> _;_.
+ .i_,=:_. -<s. This program is distributed in the hope that
+ + . -:. = it will be useful, but WITHOUT ANY WARRANTY;
+ : .. .:, . . . without even the implied warranty of
+ =_ + =;=|` MERCHANTABILITY or FITNESS FOR A
+ _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU
+..}^=.= = ; Library General Public License for more
+++= -. .` .: details.
+: = ...= . :.=-
+-. .:....=;==+<; You should have received a copy of the GNU
+ -_. . . )=. = Library General Public License along with
+ -- :-=` this library; see the file COPYING.LIB.
If not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
@@ -186,7 +186,8 @@ bool ODevice::suspend()
return false;
bool res = false;
-
+ ODevice::sendSuspendmsg();
+
struct timeval tvs, tvn;
::gettimeofday ( &tvs, 0 );
@@ -620,3 +621,8 @@ void ODevice::remapHeldAction ( int button, const OQCopMessage &action )
void ODevice::virtual_hook(int, void* ){
}
+
+void ODevice::sendSuspendmsg()
+{
+ QCopEnvelope ( "QPE/System", "aboutSuspend()" );
+}