summaryrefslogtreecommitdiff
path: root/libopie/odevice.h
authorsandman <sandman>2002-07-27 22:45:04 (UTC)
committer sandman <sandman>2002-07-27 22:45:04 (UTC)
commit9cc89b6a54ee267953b0422c4607097d075ecab9 (patch) (side-by-side diff)
tree4bde48d162a97ef74cf9e276c0194b8138fb4e0c /libopie/odevice.h
parentdac5c073c3e04ceb6900aeb72e53cf6d7350c3c9 (diff)
downloadopie-9cc89b6a54ee267953b0422c4607097d075ecab9.zip
opie-9cc89b6a54ee267953b0422c4607097d075ecab9.tar.gz
opie-9cc89b6a54ee267953b0422c4607097d075ecab9.tar.bz2
Small extension to read the system version
(currently only functional for familiar)
Diffstat (limited to 'libopie/odevice.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/odevice.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libopie/odevice.h b/libopie/odevice.h
index b40abe7..b54e576 100644
--- a/libopie/odevice.h
+++ b/libopie/odevice.h
@@ -33,75 +33,76 @@ enum OModel {
OMODEL_iPAQ_H37xx,
OMODEL_iPAQ_H38xx,
OMODEL_Zaurus_SL5000
};
enum OVendor {
OVENDOR_Unknown,
OVENDOR_HP,
OVENDOR_Sharp
};
enum OSystem {
OSYSTEM_Unknown,
OSYSTEM_Familiar,
OSYSTEM_Zaurus,
OSYSTEM_OpenZaurus
};
enum OLedState {
OLED_Off,
OLED_On,
OLED_BlinkSlow,
OLED_BlinkFast
};
class ODevice
{
public:
public:
static ODevice *inst ( );
// information
QString modelString ( );
OModel model ( );
QString vendorString ( );
OVendor vendor ( );
QString systemString ( );
OSystem system ( );
+ QString systemVersionString ( );
// input / output
virtual void alarmSound ( );
virtual void keySound ( );
virtual void touchSound ( );
virtual uint hasLeds ( ) const;
virtual OLedState led ( uint which ) const;
virtual bool setLed ( uint which, OLedState st );
virtual ~ODevice ( );
protected:
ODevice ( );
virtual void init ( );
ODeviceData *d;
private:
ODevice ( const ODevice & );
};
#endif