Diffstat (limited to 'noncore/settings/sysinfo/devicesinfo.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/devicesinfo.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/noncore/settings/sysinfo/devicesinfo.h b/noncore/settings/sysinfo/devicesinfo.h index 60ec999..262af31 100644 --- a/noncore/settings/sysinfo/devicesinfo.h +++ b/noncore/settings/sysinfo/devicesinfo.h | |||
@@ -20,63 +20,67 @@ _;:, .> :=|. This program is free software; you can | |||
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 | /* OPIE */ |
33 | #include <opie2/olistview.h> | 33 | #include <opie2/olistview.h> |
34 | using namespace Opie::Ui; | 34 | |
35 | /* QT */ | ||
36 | #include <qwidget.h> | ||
35 | 37 | ||
36 | //================================================================================================= | 38 | //================================================================================================= |
37 | class DevicesView : public OListView | 39 | class DevicesView : public Opie::Ui::OListView |
38 | { | 40 | { |
39 | Q_OBJECT | 41 | Q_OBJECT |
40 | public: | 42 | public: |
41 | DevicesView( QWidget* parent = 0, const char* name = 0, WFlags f = 0 ); | 43 | DevicesView( QWidget* parent = 0, const char* name = 0, WFlags f = 0 ); |
42 | ~DevicesView(); | 44 | ~DevicesView(); |
45 | public slots: | ||
46 | void selectionChanged( QListViewItem* item ); | ||
43 | }; | 47 | }; |
44 | 48 | ||
45 | //================================================================================================= | 49 | //================================================================================================= |
46 | class DevicesInfo : public QWidget | 50 | class DevicesInfo : public QWidget |
47 | { | 51 | { |
48 | Q_OBJECT | 52 | Q_OBJECT |
49 | public: | 53 | public: |
50 | DevicesInfo( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); | 54 | DevicesInfo( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); |
51 | ~DevicesInfo(); | 55 | ~DevicesInfo(); |
52 | 56 | ||
53 | private: | 57 | private: |
54 | OListView* view; | 58 | Opie::Ui::OListView* view; |
55 | 59 | ||
56 | private slots: | 60 | private slots: |
57 | }; | 61 | }; |
58 | 62 | ||
59 | //================================================================================================= | 63 | //================================================================================================= |
60 | class Category : public OListViewItem | 64 | class Category : public Opie::Ui::OListViewItem |
61 | { | 65 | { |
62 | public: | 66 | public: |
63 | Category( DevicesView* parent, const QString& name ); | 67 | Category( DevicesView* parent, const QString& name ); |
64 | virtual ~Category(); | 68 | virtual ~Category(); |
65 | 69 | ||
66 | virtual void populate() = 0; | 70 | virtual void populate() = 0; |
67 | }; | 71 | }; |
68 | 72 | ||
69 | //================================================================================================= | 73 | //================================================================================================= |
70 | class Device : public OListViewItem | 74 | class Device : public Opie::Ui::OListViewItem |
71 | { | 75 | { |
72 | public: | 76 | public: |
73 | Device( Category* parent, const QString& name ); | 77 | Device( Category* parent, const QString& name ); |
74 | ~Device(); | 78 | ~Device(); |
75 | }; | 79 | }; |
76 | 80 | ||
77 | //================================================================================================= | 81 | //================================================================================================= |
78 | class CpuCategory : public Category | 82 | class CpuCategory : public Category |
79 | { | 83 | { |
80 | public: | 84 | public: |
81 | CpuCategory( DevicesView* parent ); | 85 | CpuCategory( DevicesView* parent ); |
82 | virtual ~CpuCategory(); | 86 | virtual ~CpuCategory(); |