From 72a7f7c6450033e3a2411c29b1f5505725c95241 Mon Sep 17 00:00:00 2001 From: sandman Date: Wed, 12 Jun 2002 22:00:39 +0000 Subject: New singleton class for getting info on hardware (Zaurus detection is missing -- kergoth ?) --- (limited to 'libopie/ohwinfo.h') diff --git a/libopie/ohwinfo.h b/libopie/ohwinfo.h new file mode 100644 index 0000000..e2106f3 --- a/dev/null +++ b/libopie/ohwinfo.h @@ -0,0 +1,48 @@ +#ifndef _LIBOPIE_OHWINFO_H_ +#define _LIBOPIE_OHWINFO_H_ + +#include + +enum OHwModel { + OMODEL_Unknown, + + OMODEL_iPAQ_H31xx, + OMODEL_iPAQ_H36xx, + OMODEL_iPAQ_H37xx, + OMODEL_iPAQ_H38xx, + + OMODEL_Zaurus_SL5000 +}; + +enum OHwVendor { + OVENDOR_Unknown, + + OVENDOR_HP, + OVENDOR_Sharp, +}; + +class OHwInfoData; + + +class OHwInfo +{ +public: + static OHwInfo *inst ( ); + + QString modelString ( ); + OHwModel model ( ); + + QString vendorString ( ); + OHwVendor vendor ( ); + + virtual ~OHwInfo ( ); + +private: + OHwInfo ( ); + OHwInfo ( const OHwInfo & ); + + OHwInfoData *m_data; +}; + +#endif + -- cgit v0.9.0.2