author | sandman <sandman> | 2002-09-05 21:23:09 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-09-05 21:23:09 (UTC) |
commit | baea6aaf4f0c9672a4383470a9389bca1a20bdba (patch) (unidiff) | |
tree | def42730d45a0aa47eeb4f637cf140633b8d2c7c /libopie/odevice.h | |
parent | 930e178bf07eb5685852f56a3ecb05b8b823f42c (diff) | |
download | opie-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
-rw-r--r-- | libopie/odevice.h | 6 |
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 { | |||
58 | OLED_BlinkFast | 58 | OLED_BlinkFast |
59 | }; | 59 | }; |
60 | 60 | ||
61 | 61 | ||
62 | class ODevice | 62 | class ODevice |
63 | { | 63 | { |
64 | public: | 64 | public: |
65 | 65 | ||
66 | public: | 66 | public: |
67 | static ODevice *inst ( ); | 67 | static ODevice *inst ( ); |
68 | 68 | ||
69 | // system | 69 | // system |
70 | enum PowerButtonHandler { | ||
71 | KERNEL, | ||
72 | OPIE | ||
73 | }; | ||
74 | |||
75 | virtual bool setPowerButtonHandler ( PowerButtonHandler h ); | ||
70 | virtual bool suspend ( ); | 76 | virtual bool suspend ( ); |
71 | 77 | ||
72 | // information | 78 | // information |
73 | 79 | ||
74 | QString modelString ( ); | 80 | QString modelString ( ); |
75 | OModel model ( ); | 81 | OModel model ( ); |
76 | 82 | ||
77 | QString vendorString ( ); | 83 | QString vendorString ( ); |
78 | OVendor vendor ( ); | 84 | OVendor vendor ( ); |
79 | 85 | ||
80 | QString systemString ( ); | 86 | QString systemString ( ); |
81 | OSystem system ( ); | 87 | OSystem system ( ); |