summaryrefslogtreecommitdiff
path: root/noncore/settings/sysinfo/devicesinfo.h
Side-by-side diff
Diffstat (limited to 'noncore/settings/sysinfo/devicesinfo.h') (more/less context) (show 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
@@ -26,24 +26,25 @@ _;:,     .>    :=|. This program is free software; you can
Boston, MA 02111-1307, USA.
*/
#ifndef DEVICESINFO_H
#define DEVICESINFO_H
/* OPIE */
#include <opie2/olistview.h>
#include <opie2/olayout.h>
/* QT */
#include <qwidget.h>
+#include <qwidgetstack.h>
//=================================================================================================
class DevicesView : public Opie::Ui::OListView
{
Q_OBJECT
public:
DevicesView( QWidget* parent = 0, const char* name = 0, WFlags f = 0 );
~DevicesView();
public slots:
void selectionChanged( QListViewItem* item );
};
@@ -52,48 +53,39 @@ class DevicesInfo : public QWidget
{
Q_OBJECT
public:
DevicesInfo( QWidget *parent = 0, const char *name = 0, WFlags f = 0 );
~DevicesInfo();
void setDetailsWidget( QWidget* w = 0 );
private:
Opie::Ui::OAutoBoxLayout* layout;
Opie::Ui::OListView* view;
QWidget* details;
+ QWidgetStack* stack;
private slots:
};
//=================================================================================================
class Category : public Opie::Ui::OListViewItem
{
public:
Category( DevicesView* parent, const QString& name );
virtual ~Category();
virtual void populate() = 0;
};
//=================================================================================================
-class Device : public Opie::Ui::OListViewItem
-{
-public:
- Device( Category* parent, const QString& name );
- ~Device();
-
- QWidget* detailsWidget();
-};
-
-//=================================================================================================
class CpuCategory : public Category
{
public:
CpuCategory( DevicesView* parent );
virtual ~CpuCategory();
virtual void populate();
};
//=================================================================================================
class InputCategory : public Category
{
@@ -115,14 +107,68 @@ public:
};
//=================================================================================================
class UsbCategory : public Category
{
public:
UsbCategory( DevicesView* parent );
virtual ~UsbCategory();
virtual void populate();
};
+//=================================================================================================
+class Device : public Opie::Ui::OListViewItem
+{
+public:
+ Device( Category* parent, const QString& name );
+ ~Device();
+
+ QWidget* devinfo;
+ QWidget* details;
+
+ virtual QWidget* detailsWidget();
+};
+
+//=================================================================================================
+class CpuDevice : public Device
+{
+public:
+ CpuDevice( Category* parent, const QString& name );
+ ~CpuDevice();
+
+ void addInfo( const QString& line );
+
+// virtual QWidget* detailsWidget();
+};
+
+//=================================================================================================
+class InputDevice : public Device
+{
+public:
+ InputDevice( Category* parent, const QString& name );
+ ~InputDevice();
+
+// virtual QWidget* detailsWidget();
+};
+
+//=================================================================================================
+class CardDevice : public Device
+{
+public:
+ CardDevice( Category* parent, const QString& name );
+ ~CardDevice();
+
+// virtual QWidget* detailsWidget();
+};
+
+//=================================================================================================
+class UsbDevice : public Device
+{
+public:
+ UsbDevice( Category* parent, const QString& name );
+ ~UsbDevice();
+
+// virtual QWidget* detailsWidget();
+};
#endif