Diffstat (limited to 'noncore/settings/sysinfo/devicesinfo.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/devicesinfo.h | 66 |
1 files changed, 56 insertions, 10 deletions
diff --git a/noncore/settings/sysinfo/devicesinfo.h b/noncore/settings/sysinfo/devicesinfo.h index b065f40..586d204 100644 --- a/noncore/settings/sysinfo/devicesinfo.h +++ b/noncore/settings/sysinfo/devicesinfo.h | |||
@@ -37,2 +37,3 @@ _;:, .> :=|. This program is free software; you can | |||
37 | #include <qwidget.h> | 37 | #include <qwidget.h> |
38 | #include <qwidgetstack.h> | ||
38 | 39 | ||
@@ -63,2 +64,3 @@ private: | |||
63 | QWidget* details; | 64 | QWidget* details; |
65 | QWidgetStack* stack; | ||
64 | private slots: | 66 | private slots: |
@@ -77,12 +79,2 @@ public: | |||
77 | //================================================================================================= | 79 | //================================================================================================= |
78 | class Device : public Opie::Ui::OListViewItem | ||
79 | { | ||
80 | public: | ||
81 | Device( Category* parent, const QString& name ); | ||
82 | ~Device(); | ||
83 | |||
84 | QWidget* detailsWidget(); | ||
85 | }; | ||
86 | |||
87 | //================================================================================================= | ||
88 | class CpuCategory : public Category | 80 | class CpuCategory : public Category |
@@ -126,2 +118,56 @@ public: | |||
126 | 118 | ||
119 | //================================================================================================= | ||
120 | class Device : public Opie::Ui::OListViewItem | ||
121 | { | ||
122 | public: | ||
123 | Device( Category* parent, const QString& name ); | ||
124 | ~Device(); | ||
125 | |||
126 | QWidget* devinfo; | ||
127 | QWidget* details; | ||
128 | |||
129 | virtual QWidget* detailsWidget(); | ||
130 | }; | ||
131 | |||
132 | //================================================================================================= | ||
133 | class CpuDevice : public Device | ||
134 | { | ||
135 | public: | ||
136 | CpuDevice( Category* parent, const QString& name ); | ||
137 | ~CpuDevice(); | ||
138 | |||
139 | void addInfo( const QString& line ); | ||
140 | |||
141 | // virtual QWidget* detailsWidget(); | ||
142 | }; | ||
143 | |||
144 | //================================================================================================= | ||
145 | class InputDevice : public Device | ||
146 | { | ||
147 | public: | ||
148 | InputDevice( Category* parent, const QString& name ); | ||
149 | ~InputDevice(); | ||
150 | |||
151 | // virtual QWidget* detailsWidget(); | ||
152 | }; | ||
153 | |||
154 | //================================================================================================= | ||
155 | class CardDevice : public Device | ||
156 | { | ||
157 | public: | ||
158 | CardDevice( Category* parent, const QString& name ); | ||
159 | ~CardDevice(); | ||
160 | |||
161 | // virtual QWidget* detailsWidget(); | ||
162 | }; | ||
163 | |||
164 | //================================================================================================= | ||
165 | class UsbDevice : public Device | ||
166 | { | ||
167 | public: | ||
168 | UsbDevice( Category* parent, const QString& name ); | ||
169 | ~UsbDevice(); | ||
170 | |||
171 | // virtual QWidget* detailsWidget(); | ||
172 | }; | ||
127 | 173 | ||