author | sandman <sandman> | 2002-06-12 22:00:39 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-06-12 22:00:39 (UTC) |
commit | 72a7f7c6450033e3a2411c29b1f5505725c95241 (patch) (unidiff) | |
tree | 12595f940d738c6a5dc5ded877f6856500301f3a /libopie/ohwinfo.h | |
parent | 0d5717581cafd601edf76da8d53555ceaf82c770 (diff) | |
download | opie-72a7f7c6450033e3a2411c29b1f5505725c95241.zip opie-72a7f7c6450033e3a2411c29b1f5505725c95241.tar.gz opie-72a7f7c6450033e3a2411c29b1f5505725c95241.tar.bz2 |
New singleton class for getting info on hardware
(Zaurus detection is missing -- kergoth ?)
-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 | |||