summaryrefslogtreecommitdiff
path: root/noncore/settings/sysinfo/devicesinfo.h
authormickeyl <mickeyl>2005-05-04 21:05:21 (UTC)
committer mickeyl <mickeyl>2005-05-04 21:05:21 (UTC)
commita19581c15cdb15f17988b6af958e6aa27eb01c7d (patch) (unidiff)
tree387a43f66c252bd4fe5d24bdf90dbb429b74a94d /noncore/settings/sysinfo/devicesinfo.h
parentbdc113a8b37e3fa2f65903d043798d33d2f9f907 (diff)
downloadopie-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.h66
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//=================================================================================================
40class DevicesView : public Opie::Ui::OListView 41class 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;
64private slots: 66private slots:
65}; 67};
66 68
@@ -75,16 +77,6 @@ public:
75}; 77};
76 78
77//================================================================================================= 79//=================================================================================================
78class Device : public Opie::Ui::OListViewItem
79{
80public:
81 Device( Category* parent, const QString& name );
82 ~Device();
83
84 QWidget* detailsWidget();
85};
86
87//=================================================================================================
88class CpuCategory : public Category 80class CpuCategory : public Category
89{ 81{
90public: 82public:
@@ -124,5 +116,59 @@ public:
124 virtual void populate(); 116 virtual void populate();
125}; 117};
126 118
119//=================================================================================================
120class Device : public Opie::Ui::OListViewItem
121{
122public:
123 Device( Category* parent, const QString& name );
124 ~Device();
125
126 QWidget* devinfo;
127 QWidget* details;
128
129 virtual QWidget* detailsWidget();
130};
131
132//=================================================================================================
133class CpuDevice : public Device
134{
135public:
136 CpuDevice( Category* parent, const QString& name );
137 ~CpuDevice();
138
139 void addInfo( const QString& line );
140
141// virtual QWidget* detailsWidget();
142};
143
144//=================================================================================================
145class InputDevice : public Device
146{
147public:
148 InputDevice( Category* parent, const QString& name );
149 ~InputDevice();
150
151// virtual QWidget* detailsWidget();
152};
153
154//=================================================================================================
155class CardDevice : public Device
156{
157public:
158 CardDevice( Category* parent, const QString& name );
159 ~CardDevice();
160
161// virtual QWidget* detailsWidget();
162};
163
164//=================================================================================================
165class UsbDevice : public Device
166{
167public:
168 UsbDevice( Category* parent, const QString& name );
169 ~UsbDevice();
170
171// virtual QWidget* detailsWidget();
172};
127 173
128#endif 174#endif