summaryrefslogtreecommitdiff
path: root/noncore/settings/sysinfo/devicesinfo.h
authormickeyl <mickeyl>2005-05-02 17:32:08 (UTC)
committer mickeyl <mickeyl>2005-05-02 17:32:08 (UTC)
commit8bd13e6ac069f9d58ec10e61a4dc174837c6b5ee (patch) (unidiff)
tree81d80182a1aee3e71ccf21a2bcb1a1e107d8d72d /noncore/settings/sysinfo/devicesinfo.h
parentc3d0da09d6c49061efc43ce9707c5952ebefdae3 (diff)
downloadopie-8bd13e6ac069f9d58ec10e61a4dc174837c6b5ee.zip
opie-8bd13e6ac069f9d58ec10e61a4dc174837c6b5ee.tar.gz
opie-8bd13e6ac069f9d58ec10e61a4dc174837c6b5ee.tar.bz2
first stab at populating device nodes
Diffstat (limited to 'noncore/settings/sysinfo/devicesinfo.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sysinfo/devicesinfo.h62
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
@@ -33,6 +33,7 @@ _;:,     .>    :=|. This program is free software; you can
33#include <opie2/olistview.h> 33#include <opie2/olistview.h>
34using namespace Opie::Ui; 34using namespace Opie::Ui;
35 35
36//=================================================================================================
36class DevicesView : public OListView 37class DevicesView : public OListView
37{ 38{
38 Q_OBJECT 39 Q_OBJECT
@@ -41,6 +42,7 @@ public:
41 ~DevicesView(); 42 ~DevicesView();
42}; 43};
43 44
45//=================================================================================================
44class DevicesInfo : public QWidget 46class DevicesInfo : public QWidget
45{ 47{
46 Q_OBJECT 48 Q_OBJECT
@@ -53,4 +55,64 @@ private:
53 55
54private slots: 56private slots:
55}; 57};
58
59//=================================================================================================
60class Category : public OListViewItem
61{
62public:
63 Category( DevicesView* parent, const QString& name );
64 virtual ~Category();
65
66 virtual void populate() = 0;
67};
68
69//=================================================================================================
70class Device : public OListViewItem
71{
72public:
73 Device( Category* parent, const QString& name );
74 ~Device();
75};
76
77//=================================================================================================
78class CpuCategory : public Category
79{
80public:
81 CpuCategory( DevicesView* parent );
82 virtual ~CpuCategory();
83
84 virtual void populate();
85};
86
87//=================================================================================================
88class InputCategory : public Category
89{
90public:
91 InputCategory( DevicesView* parent );
92 virtual ~InputCategory();
93
94 virtual void populate();
95};
96
97//=================================================================================================
98class CardsCategory : public Category
99{
100public:
101 CardsCategory( DevicesView* parent );
102 virtual ~CardsCategory();
103
104 virtual void populate();
105};
106
107//=================================================================================================
108class UsbCategory : public Category
109{
110public:
111 UsbCategory( DevicesView* parent );
112 virtual ~UsbCategory();
113
114 virtual void populate();
115};
116
117
56#endif 118#endif