author | mickeyl <mickeyl> | 2005-05-04 21:05:21 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-05-04 21:05:21 (UTC) |
commit | a19581c15cdb15f17988b6af958e6aa27eb01c7d (patch) (unidiff) | |
tree | 387a43f66c252bd4fe5d24bdf90dbb429b74a94d /noncore/settings/sysinfo/devicesinfo.h | |
parent | bdc113a8b37e3fa2f65903d043798d33d2f9f907 (diff) | |
download | opie-a19581c15cdb15f17988b6af958e6aa27eb01c7d.zip opie-a19581c15cdb15f17988b6af958e6aa27eb01c7d.tar.gz opie-a19581c15cdb15f17988b6af958e6aa27eb01c7d.tar.bz2 |
CPUinfo details now shown
Diffstat (limited to 'noncore/settings/sysinfo/devicesinfo.h') (more/less context) (ignore 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 | |||
@@ -35,6 +35,7 @@ _;:, .> :=|. This program is free software; you can | |||
35 | 35 | ||
36 | /* QT */ | 36 | /* QT */ |
37 | #include <qwidget.h> | 37 | #include <qwidget.h> |
38 | #include <qwidgetstack.h> | ||
38 | 39 | ||
39 | //================================================================================================= | 40 | //================================================================================================= |
40 | class DevicesView : public Opie::Ui::OListView | 41 | class DevicesView : public Opie::Ui::OListView |
@@ -61,6 +62,7 @@ private: | |||
61 | Opie::Ui::OAutoBoxLayout* layout; | 62 | Opie::Ui::OAutoBoxLayout* layout; |
62 | Opie::Ui::OListView* view; | 63 | Opie::Ui::OListView* view; |
63 | QWidget* details; | 64 | QWidget* details; |
65 | QWidgetStack* stack; | ||
64 | private slots: | 66 | private slots: |
65 | }; | 67 | }; |
66 | 68 | ||
@@ -75,16 +77,6 @@ public: | |||
75 | }; | 77 | }; |
76 | 78 | ||
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 |
89 | { | 81 | { |
90 | public: | 82 | public: |
@@ -124,5 +116,59 @@ public: | |||
124 | virtual void populate(); | 116 | virtual void populate(); |
125 | }; | 117 | }; |
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 | ||
128 | #endif | 174 | #endif |