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) (unidiff)
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 @@
1/* 1/*
2                 This file is part of the Opie Project 2 This file is part of the Opie Project
3              Copyright (C) The Opie Team <opie-devel@handhelds.org> 3 Copyright (C) The Opie Team <opie-devel@handhelds.org>
4 =. 4 =.
5 .=l. 5 .=l.
6           .>+-= 6 .>+-=
7 _;:,     .>    :=|. This program is free software; you can 7_;:, .> :=|. This program is free software; you can
8.> <`_,   >  .   <= redistribute it and/or modify it under 8.> <`_, > . <= redistribute it and/or modify it under
9:`=1 )Y*s>-.--   : the terms of the GNU Library General Public 9:`=1 )Y*s>-.-- : the terms of the GNU Library General Public
10.="- .-=="i,     .._ License as published by the Free Software 10.="- .-=="i, .._ License as published by the Free Software
11 - .   .-<_>     .<> Foundation; either version 2 of the License, 11- . .-<_> .<> Foundation; either version 2 of the License,
12     ._= =}       : or (at your option) any later version. 12 ._= =} : or (at your option) any later version.
13    .%`+i>       _;_. 13 .%`+i> _;_.
14    .i_,=:_.      -<s. This program is distributed in the hope that 14 .i_,=:_. -<s. This program is distributed in the hope that
15     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 15 + . -:. = it will be useful, but WITHOUT ANY WARRANTY;
16    : ..    .:,     . . . without even the implied warranty of 16 : .. .:, . . . without even the implied warranty of
17    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 17 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A
18  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU 18 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU
19..}^=.=       =       ; Library General Public License for more 19..}^=.= = ; Library General Public License for more
20++=   -.     .`     .: details. 20++= -. .` .: details.
21 :     =  ...= . :.=- 21: = ...= . :.=-
22 -.   .:....=;==+<; You should have received a copy of the GNU 22-. .:....=;==+<; You should have received a copy of the GNU
23  -_. . .   )=.  = Library General Public License along with 23 -_. . . )=. = Library General Public License along with
24    --        :-=` this library; see the file COPYING.LIB. 24 -- :-=` this library; see the file COPYING.LIB.
25 If not, write to the Free Software Foundation, 25 If not, write to the Free Software Foundation,
26 Inc., 59 Temple Place - Suite 330, 26 Inc., 59 Temple Place - Suite 330,
27 Boston, MA 02111-1307, USA. 27 Boston, MA 02111-1307, USA.
@@ -186,7 +186,8 @@ bool ODevice::suspend()
186 return false; 186 return false;
187 187
188 bool res = false; 188 bool res = false;
189 189 ODevice::sendSuspendmsg();
190
190 struct timeval tvs, tvn; 191 struct timeval tvs, tvn;
191 ::gettimeofday ( &tvs, 0 ); 192 ::gettimeofday ( &tvs, 0 );
192 193
@@ -620,3 +621,8 @@ void ODevice::remapHeldAction ( int button, const OQCopMessage &action )
620void ODevice::virtual_hook(int, void* ){ 621void ODevice::virtual_hook(int, void* ){
621 622
622} 623}
624
625void ODevice::sendSuspendmsg()
626{
627 QCopEnvelope ( "QPE/System", "aboutSuspend()" );
628}