Diffstat (limited to 'noncore/settings/sysinfo/devicesinfo.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/devicesinfo.h | 66 |
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 @@ -36,4 +36,5 @@ _;:, .> :=|. This program is free software; you can /* QT */ #include <qwidget.h> +#include <qwidgetstack.h> //================================================================================================= @@ -62,4 +63,5 @@ private: Opie::Ui::OListView* view; QWidget* details; + QWidgetStack* stack; private slots: }; @@ -76,14 +78,4 @@ public: //================================================================================================= -class Device : public Opie::Ui::OListViewItem -{ -public: - Device( Category* parent, const QString& name ); - ~Device(); - - QWidget* detailsWidget(); -}; - -//================================================================================================= class CpuCategory : public Category { @@ -125,4 +117,58 @@ public: }; +//================================================================================================= +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 |