-rw-r--r-- | libopie/ohwinfo.h | 48 |
1 files changed, 48 insertions, 0 deletions
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 @@ | |||
1 | #ifndef _LIBOPIE_OHWINFO_H_ | ||
2 | #define _LIBOPIE_OHWINFO_H_ | ||
3 | |||
4 | #include <qstring.h> | ||
5 | |||
6 | enum OHwModel { | ||
7 | OMODEL_Unknown, | ||
8 | |||
9 | OMODEL_iPAQ_H31xx, | ||
10 | OMODEL_iPAQ_H36xx, | ||
11 | OMODEL_iPAQ_H37xx, | ||
12 | OMODEL_iPAQ_H38xx, | ||
13 | |||
14 | OMODEL_Zaurus_SL5000 | ||
15 | }; | ||
16 | |||
17 | enum OHwVendor { | ||
18 | OVENDOR_Unknown, | ||
19 | |||
20 | OVENDOR_HP, | ||
21 | OVENDOR_Sharp, | ||
22 | }; | ||
23 | |||
24 | class OHwInfoData; | ||
25 | |||
26 | |||
27 | class OHwInfo | ||
28 | { | ||
29 | public: | ||
30 | static OHwInfo *inst ( ); | ||
31 | |||
32 | QString modelString ( ); | ||
33 | OHwModel model ( ); | ||
34 | |||
35 | QString vendorString ( ); | ||
36 | OHwVendor vendor ( ); | ||
37 | |||
38 | virtual ~OHwInfo ( ); | ||
39 | |||
40 | private: | ||
41 | OHwInfo ( ); | ||
42 | OHwInfo ( const OHwInfo & ); | ||
43 | |||
44 | OHwInfoData *m_data; | ||
45 | }; | ||
46 | |||
47 | #endif | ||
48 | |||