summaryrefslogtreecommitdiff
path: root/libopie/odevice.h
authorkergoth <kergoth>2003-01-26 01:01:32 (UTC)
committer kergoth <kergoth>2003-01-26 01:01:32 (UTC)
commit7b5f4142a1ace5fba9fdf9b8e5538669a56ba60b (patch) (side-by-side diff)
tree29ab0dfa5c6d35621857af78a6fa3eaae517be33 /libopie/odevice.h
parent7d07568352e368fe473e4c1c5493df2ebb0090d2 (diff)
downloadopie-7b5f4142a1ace5fba9fdf9b8e5538669a56ba60b.zip
opie-7b5f4142a1ace5fba9fdf9b8e5538669a56ba60b.tar.gz
opie-7b5f4142a1ace5fba9fdf9b8e5538669a56ba60b.tar.bz2
1) Add Sharp Zaurus A300/B600|5600/C700 models, will add the model specific bits
later. 2) Add rotation data and method, to set a default rotation based on model .. so we can ditch the use of the startup script to set that.
Diffstat (limited to 'libopie/odevice.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie/odevice.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/libopie/odevice.h b/libopie/odevice.h
index 54b85a2..8164c4d 100644
--- a/libopie/odevice.h
+++ b/libopie/odevice.h
@@ -26,6 +26,8 @@
#include <opie/odevicebutton.h>
+enum Transformation { None, Rot90, Rot180, Rot270 }; /* from qgfxtransformed_qws.cpp */
+
class ODeviceData;
namespace Opie {
@@ -48,6 +50,9 @@ enum OModel {
Model_Zaurus_SL5000 = ( Model_Zaurus | 0x000001 ),
Model_Zaurus_SL5500 = ( Model_Zaurus | 0x000002 ),
+ Model_Zaurus_SLA300 = ( Model_Zaurus | 0x000003 ),
+ Model_Zaurus_SLB600 = ( Model_Zaurus | 0x000004 ),
+ Model_Zaurus_SLC700 = ( Model_Zaurus | 0x000005 ),
};
enum OVendor {
@@ -89,7 +94,6 @@ enum OHardKey {
HardKey_Backlight = Qt::Key_F35,
};
-
class ODevice : public QObject {
Q_OBJECT
@@ -107,8 +111,6 @@ public:
static ODevice *inst ( );
-
-
// information
QString modelString ( ) const;
@@ -123,6 +125,8 @@ public:
QString systemVersionString ( ) const;
+ Transformation rotation ( ) const;
+
// system
virtual bool setSoftSuspend ( bool on );