summaryrefslogtreecommitdiff
path: root/libopie/odevice.h
authorsandman <sandman>2002-09-05 21:23:09 (UTC)
committer sandman <sandman>2002-09-05 21:23:09 (UTC)
commitbaea6aaf4f0c9672a4383470a9389bca1a20bdba (patch) (side-by-side diff)
treedef42730d45a0aa47eeb4f637cf140633b8d2c7c /libopie/odevice.h
parent930e178bf07eb5685852f56a3ecb05b8b823f42c (diff)
downloadopie-baea6aaf4f0c9672a4383470a9389bca1a20bdba.zip
opie-baea6aaf4f0c9672a4383470a9389bca1a20bdba.tar.gz
opie-baea6aaf4f0c9672a4383470a9389bca1a20bdba.tar.bz2
- added a setPowerButtonHandler() for iPAQs and Zs
(-> disableAPM() in launcher can be removed) - another try to fix the OZ suspend code
Diffstat (limited to 'libopie/odevice.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie/odevice.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libopie/odevice.h b/libopie/odevice.h
index 5009b91..ee01f0f 100644
--- a/libopie/odevice.h
+++ b/libopie/odevice.h
@@ -58,24 +58,30 @@ enum OLedState {
OLED_BlinkFast
};
class ODevice
{
public:
public:
static ODevice *inst ( );
// system
+ enum PowerButtonHandler {
+ KERNEL,
+ OPIE
+ };
+
+ virtual bool setPowerButtonHandler ( PowerButtonHandler h );
virtual bool suspend ( );
// information
QString modelString ( );
OModel model ( );
QString vendorString ( );
OVendor vendor ( );
QString systemString ( );
OSystem system ( );