summaryrefslogtreecommitdiff
path: root/noncore/settings/sysinfo/devicesinfo.h
Unidiff
Diffstat (limited to 'noncore/settings/sysinfo/devicesinfo.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sysinfo/devicesinfo.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/settings/sysinfo/devicesinfo.h b/noncore/settings/sysinfo/devicesinfo.h
index c601a96..c4e3637 100644
--- a/noncore/settings/sysinfo/devicesinfo.h
+++ b/noncore/settings/sysinfo/devicesinfo.h
@@ -1,176 +1,180 @@
1/* 1/*
2                This file is part of the Opie Project 2                This file is part of the Opie Project
3 =. Copyright (C) 2005 Michael 'Mickey' Lauer <mickey@Vanille.de> 3 =. Copyright (C) 2005 Michael 'Mickey' Lauer <mickey@Vanille.de>
4 .=l. Copyright (C) The Opie Team <opie-devel@handhelds.org> 4 .=l. Copyright (C) The Opie Team <opie-devel@handhelds.org>
5          .>+-= 5          .>+-=
6_;:,     .>    :=|. This program is free software; you can 6_;:,     .>    :=|. This program is free software; you can
7.> <`_,   >  .   <= redistribute it and/or modify it under 7.> <`_,   >  .   <= redistribute it and/or modify it under
8:`=1 )Y*s>-.--   : the terms of the GNU General Public 8:`=1 )Y*s>-.--   : the terms of the GNU General Public
9.="- .-=="i,     .._ License as published by the Free Software 9.="- .-=="i,     .._ License as published by the Free Software
10- .   .-<_>     .<> Foundation; version 2 of the License. 10- .   .-<_>     .<> Foundation; version 2 of the License.
11    ._= =}       : 11    ._= =}       :
12   .%`+i>       _;_. 12   .%`+i>       _;_.
13   .i_,=:_.      -<s. This program is distributed in the hope that 13   .i_,=:_.      -<s. This program is distributed in the hope that
14    +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 14    +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
15   : ..    .:,     . . . without even the implied warranty of 15   : ..    .:,     . . . without even the implied warranty of
16   =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 16   =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
17 _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU 17 _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
18..}^=.=       =       ; General Public License for more 18..}^=.=       =       ; General Public License for more
19++=   -.     .`     .: details. 19++=   -.     .`     .: details.
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/* OPIE */ 32/* OPIE */
33#include <opie2/olistview.h> 33#include <opie2/olistview.h>
34#include <opie2/olayout.h> 34#include <opie2/olayout.h>
35 35
36/* QT */ 36/* QT */
37#include <qwidget.h> 37#include <qwidget.h>
38#include <qwidgetstack.h> 38#include <qwidgetstack.h>
39 39
40namespace Opie { namespace Core { class OPcmciaSocket; class OInputDevice; }; };
41
40//================================================================================================= 42//=================================================================================================
41class DevicesView : public Opie::Ui::OListView 43class DevicesView : public Opie::Ui::OListView
42{ 44{
43 Q_OBJECT 45 Q_OBJECT
44public: 46public:
45 DevicesView( QWidget* parent = 0, const char* name = 0, WFlags f = 0 ); 47 DevicesView( QWidget* parent = 0, const char* name = 0, WFlags f = 0 );
46 ~DevicesView(); 48 ~DevicesView();
47public slots: 49public slots:
48 void selectionChanged( QListViewItem* item ); 50 void selectionChanged( QListViewItem* item );
49}; 51};
50 52
51//================================================================================================= 53//=================================================================================================
52class DevicesInfo : public QWidget 54class DevicesInfo : public QWidget
53{ 55{
54 Q_OBJECT 56 Q_OBJECT
55public: 57public:
56 DevicesInfo( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); 58 DevicesInfo( QWidget *parent = 0, const char *name = 0, WFlags f = 0 );
57 ~DevicesInfo(); 59 ~DevicesInfo();
58 60
59 void setDetailsWidget( QWidget* w = 0 ); 61 void setDetailsWidget( QWidget* w = 0 );
60 62
61private: 63private:
62 Opie::Ui::OAutoBoxLayout* layout; 64 Opie::Ui::OAutoBoxLayout* layout;
63 Opie::Ui::OListView* view; 65 Opie::Ui::OListView* view;
64 QWidget* details; 66 QWidget* details;
65 QWidgetStack* stack; 67 QWidgetStack* stack;
66private slots: 68private slots:
67}; 69};
68 70
69//================================================================================================= 71//=================================================================================================
70class Category : public Opie::Ui::OListViewItem 72class Category : public Opie::Ui::OListViewItem
71{ 73{
72public: 74public:
73 Category( DevicesView* parent, const QString& name ); 75 Category( DevicesView* parent, const QString& name );
74 virtual ~Category(); 76 virtual ~Category();
75 77
76 virtual void populate() = 0; 78 virtual void populate() = 0;
77}; 79};
78 80
79//================================================================================================= 81//=================================================================================================
80class CpuCategory : public Category 82class CpuCategory : public Category
81{ 83{
82public: 84public:
83 CpuCategory( DevicesView* parent ); 85 CpuCategory( DevicesView* parent );
84 virtual ~CpuCategory(); 86 virtual ~CpuCategory();
85 87
86 virtual void populate(); 88 virtual void populate();
87}; 89};
88 90
89//================================================================================================= 91//=================================================================================================
90class InputCategory : public Category 92class InputCategory : public Category
91{ 93{
92public: 94public:
93 InputCategory( DevicesView* parent ); 95 InputCategory( DevicesView* parent );
94 virtual ~InputCategory(); 96 virtual ~InputCategory();
95 97
96 virtual void populate(); 98 virtual void populate();
97}; 99};
98 100
99//================================================================================================= 101//=================================================================================================
100class CardsCategory : public Category 102class CardsCategory : public Category
101{ 103{
102public: 104public:
103 CardsCategory( DevicesView* parent ); 105 CardsCategory( DevicesView* parent );
104 virtual ~CardsCategory(); 106 virtual ~CardsCategory();
105
106 virtual void populate(); 107 virtual void populate();
107}; 108};
108 109
109//================================================================================================= 110//=================================================================================================
110class UsbCategory : public Category 111class UsbCategory : public Category
111{ 112{
112public: 113public:
113 UsbCategory( DevicesView* parent ); 114 UsbCategory( DevicesView* parent );
114 virtual ~UsbCategory(); 115 virtual ~UsbCategory();
115 116
116 virtual void populate(); 117 virtual void populate();
117}; 118};
118 119
119//================================================================================================= 120//=================================================================================================
120class Device : public Opie::Ui::OListViewItem 121class Device : public Opie::Ui::OListViewItem
121{ 122{
122public: 123public:
123 Device( Category* parent, const QString& name ); 124 Device( Category* parent, const QString& name );
124 Device( Device* parent, const QString& name ); 125 Device( Device* parent, const QString& name );
125 ~Device(); 126 ~Device();
126 127
127 QWidget* devinfo; 128 QWidget* devinfo;
128 QWidget* details; 129 QWidget* details;
129 130
130 virtual QWidget* detailsWidget(); 131 virtual QWidget* detailsWidget();
131}; 132};
132 133
133//================================================================================================= 134//=================================================================================================
134class CpuDevice : public Device 135class CpuDevice : public Device
135{ 136{
136public: 137public:
137 CpuDevice( Category* parent, const QString& name ); 138 CpuDevice( Category* parent, const QString& name );
138 ~CpuDevice(); 139 ~CpuDevice();
139 140
140 void addInfo( const QString& line ); 141 void addInfo( const QString& line );
141 142
142// virtual QWidget* detailsWidget(); 143// virtual QWidget* detailsWidget();
143}; 144};
144 145
145//================================================================================================= 146//=================================================================================================
146class InputDevice : public Device 147class InputDevice : public Device
147{ 148{
148public: 149public:
149 InputDevice( Category* parent, const QString& name ); 150 InputDevice( Category* parent, const QString& name );
150 ~InputDevice(); 151 ~InputDevice();
151 152
153 void setInfo( const Opie::Core::OInputDevice* dev );
154
152// virtual QWidget* detailsWidget(); 155// virtual QWidget* detailsWidget();
153}; 156};
154 157
155//================================================================================================= 158//=================================================================================================
156class CardDevice : public Device 159class CardDevice : public Device
157{ 160{
158public: 161public:
159 CardDevice( Category* parent, const QString& name ); 162 CardDevice( Category* parent, const QString& name );
160 ~CardDevice(); 163 ~CardDevice();
164 void setInfo( const Opie::Core::OPcmciaSocket* card );
161 165
162// virtual QWidget* detailsWidget(); 166// virtual QWidget* detailsWidget();
163}; 167};
164 168
165//================================================================================================= 169//=================================================================================================
166class UsbDevice : public Device 170class UsbDevice : public Device
167{ 171{
168public: 172public:
169 UsbDevice( Category* parent, const QString& name ); 173 UsbDevice( Category* parent, const QString& name );
170 UsbDevice( UsbDevice* parent, const QString& name ); 174 UsbDevice( UsbDevice* parent, const QString& name );
171 ~UsbDevice(); 175 ~UsbDevice();
172 176
173// virtual QWidget* detailsWidget(); 177// virtual QWidget* detailsWidget();
174}; 178};
175 179
176#endif 180#endif