Diffstat (limited to 'noncore/settings/sysinfo/devicesinfo.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/devicesinfo.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/noncore/settings/sysinfo/devicesinfo.h b/noncore/settings/sysinfo/devicesinfo.h index 082586b..60ec999 100644 --- a/noncore/settings/sysinfo/devicesinfo.h +++ b/noncore/settings/sysinfo/devicesinfo.h | |||
@@ -12,45 +12,107 @@ _;:, .> :=|. This program is free software; you can | |||
12 | .%`+i> _;_. | 12 | .%`+i> _;_. |
13 | .i_,=:_. -<s. This program is distributed in the hope that | 13 | .i_,=:_. -<s. This program is distributed in the hope that |
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
15 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
18 | ..}^=.= = ; General Public License for more | 18 | ..}^=.= = ; General Public License for more |
19 | ++= -. .` .: details. | 19 | ++= -. .` .: details. |
20 | : = ...= . :.=- | 20 | : = ...= . :.=- |
21 | -. .:....=;==+<; You should have received a copy of the GNU | 21 | -. .:....=;==+<; You should have received a copy of the GNU |
22 | -_. . . )=. = General Public License along with | 22 | -_. . . )=. = General Public License along with |
23 | -- :-=` this application; see the file LICENSE.GPL. | 23 | -- :-=` this application; see the file LICENSE.GPL. |
24 | If not, write to the Free Software Foundation, | 24 | If not, write to the Free Software Foundation, |
25 | Inc., 59 Temple Place - Suite 330, | 25 | Inc., 59 Temple Place - Suite 330, |
26 | Boston, MA 02111-1307, USA. | 26 | Boston, MA 02111-1307, USA. |
27 | */ | 27 | */ |
28 | 28 | ||
29 | #ifndef DEVICESINFO_H | 29 | #ifndef DEVICESINFO_H |
30 | #define DEVICESINFO_H | 30 | #define DEVICESINFO_H |
31 | 31 | ||
32 | #include <qwidget.h> | 32 | #include <qwidget.h> |
33 | #include <opie2/olistview.h> | 33 | #include <opie2/olistview.h> |
34 | using namespace Opie::Ui; | 34 | using namespace Opie::Ui; |
35 | 35 | ||
36 | //================================================================================================= | ||
36 | class DevicesView : public OListView | 37 | class DevicesView : public OListView |
37 | { | 38 | { |
38 | Q_OBJECT | 39 | Q_OBJECT |
39 | public: | 40 | public: |
40 | DevicesView( QWidget* parent = 0, const char* name = 0, WFlags f = 0 ); | 41 | DevicesView( QWidget* parent = 0, const char* name = 0, WFlags f = 0 ); |
41 | ~DevicesView(); | 42 | ~DevicesView(); |
42 | }; | 43 | }; |
43 | 44 | ||
45 | //================================================================================================= | ||
44 | class DevicesInfo : public QWidget | 46 | class DevicesInfo : public QWidget |
45 | { | 47 | { |
46 | Q_OBJECT | 48 | Q_OBJECT |
47 | public: | 49 | public: |
48 | DevicesInfo( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); | 50 | DevicesInfo( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); |
49 | ~DevicesInfo(); | 51 | ~DevicesInfo(); |
50 | 52 | ||
51 | private: | 53 | private: |
52 | OListView* view; | 54 | OListView* view; |
53 | 55 | ||
54 | private slots: | 56 | private slots: |
55 | }; | 57 | }; |
58 | |||
59 | //================================================================================================= | ||
60 | class Category : public OListViewItem | ||
61 | { | ||
62 | public: | ||
63 | Category( DevicesView* parent, const QString& name ); | ||
64 | virtual ~Category(); | ||
65 | |||
66 | virtual void populate() = 0; | ||
67 | }; | ||
68 | |||
69 | //================================================================================================= | ||
70 | class Device : public OListViewItem | ||
71 | { | ||
72 | public: | ||
73 | Device( Category* parent, const QString& name ); | ||
74 | ~Device(); | ||
75 | }; | ||
76 | |||
77 | //================================================================================================= | ||
78 | class CpuCategory : public Category | ||
79 | { | ||
80 | public: | ||
81 | CpuCategory( DevicesView* parent ); | ||
82 | virtual ~CpuCategory(); | ||
83 | |||
84 | virtual void populate(); | ||
85 | }; | ||
86 | |||
87 | //================================================================================================= | ||
88 | class InputCategory : public Category | ||
89 | { | ||
90 | public: | ||
91 | InputCategory( DevicesView* parent ); | ||
92 | virtual ~InputCategory(); | ||
93 | |||
94 | virtual void populate(); | ||
95 | }; | ||
96 | |||
97 | //================================================================================================= | ||
98 | class CardsCategory : public Category | ||
99 | { | ||
100 | public: | ||
101 | CardsCategory( DevicesView* parent ); | ||
102 | virtual ~CardsCategory(); | ||
103 | |||
104 | virtual void populate(); | ||
105 | }; | ||
106 | |||
107 | //================================================================================================= | ||
108 | class UsbCategory : public Category | ||
109 | { | ||
110 | public: | ||
111 | UsbCategory( DevicesView* parent ); | ||
112 | virtual ~UsbCategory(); | ||
113 | |||
114 | virtual void populate(); | ||
115 | }; | ||
116 | |||
117 | |||
56 | #endif | 118 | #endif |