author | kergoth <kergoth> | 2003-01-26 01:01:32 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-01-26 01:01:32 (UTC) |
commit | 7b5f4142a1ace5fba9fdf9b8e5538669a56ba60b (patch) (side-by-side diff) | |
tree | 29ab0dfa5c6d35621857af78a6fa3eaae517be33 /libopie/odevice.h | |
parent | 7d07568352e368fe473e4c1c5493df2ebb0090d2 (diff) | |
download | opie-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.
-rw-r--r-- | libopie/odevice.h | 10 |
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 @@ -25,8 +25,10 @@ #include <qnamespace.h> #include <opie/odevicebutton.h> +enum Transformation { None, Rot90, Rot180, Rot270 }; /* from qgfxtransformed_qws.cpp */ + class ODeviceData; namespace Opie { @@ -47,8 +49,11 @@ enum OModel { Model_Zaurus = ( 2 << 24 ), 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 { Vendor_Unknown, @@ -88,9 +93,8 @@ enum OHardKey { HardKey_Suspend = Qt::Key_F34, HardKey_Backlight = Qt::Key_F35, }; - class ODevice : public QObject { Q_OBJECT private: @@ -106,10 +110,8 @@ public: virtual ~ODevice ( ); static ODevice *inst ( ); - - // information QString modelString ( ) const; OModel model ( ) const; @@ -122,8 +124,10 @@ public: OSystem system ( ) const; QString systemVersionString ( ) const; + Transformation rotation ( ) const; + // system virtual bool setSoftSuspend ( bool on ); virtual bool suspend ( ); |