Diffstat (limited to 'noncore/settings/sysinfo/devicesinfo.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/devicesinfo.h | 62 |
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 @@ -30,27 +30,89 @@ _;:, .> :=|. This program is free software; you can #define DEVICESINFO_H #include <qwidget.h> #include <opie2/olistview.h> using namespace Opie::Ui; +//================================================================================================= class DevicesView : public OListView { Q_OBJECT public: DevicesView( QWidget* parent = 0, const char* name = 0, WFlags f = 0 ); ~DevicesView(); }; +//================================================================================================= class DevicesInfo : public QWidget { Q_OBJECT public: DevicesInfo( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); ~DevicesInfo(); private: OListView* view; private slots: }; + +//================================================================================================= +class Category : public OListViewItem +{ +public: + Category( DevicesView* parent, const QString& name ); + virtual ~Category(); + + virtual void populate() = 0; +}; + +//================================================================================================= +class Device : public OListViewItem +{ +public: + Device( Category* parent, const QString& name ); + ~Device(); +}; + +//================================================================================================= +class CpuCategory : public Category +{ +public: + CpuCategory( DevicesView* parent ); + virtual ~CpuCategory(); + + virtual void populate(); +}; + +//================================================================================================= +class InputCategory : public Category +{ +public: + InputCategory( DevicesView* parent ); + virtual ~InputCategory(); + + virtual void populate(); +}; + +//================================================================================================= +class CardsCategory : public Category +{ +public: + CardsCategory( DevicesView* parent ); + virtual ~CardsCategory(); + + virtual void populate(); +}; + +//================================================================================================= +class UsbCategory : public Category +{ +public: + UsbCategory( DevicesView* parent ); + virtual ~UsbCategory(); + + virtual void populate(); +}; + + #endif |