Diffstat (limited to 'noncore/settings/sysinfo/storage.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/storage.h | 44 |
1 files changed, 17 insertions, 27 deletions
diff --git a/noncore/settings/sysinfo/storage.h b/noncore/settings/sysinfo/storage.h index 7e8b4e0..b8564af 100644 --- a/noncore/settings/sysinfo/storage.h +++ b/noncore/settings/sysinfo/storage.h @@ -32,5 +32,6 @@ class QVBoxLayout; class QWidget; +class StorageInfo; -class StorageInfo : public QWidget +class FileSysInfo : public QWidget { @@ -38,3 +39,3 @@ class StorageInfo : public QWidget public: - StorageInfo( QWidget *parent=0, const char *name=0 ); + FileSysInfo( QWidget *parent=0, const char *name=0 ); @@ -45,6 +46,14 @@ private: void updateMounts(); - QDict<MountInfo> disks; - QList<QFrame> lines; + + QWidget *container; QVBoxLayout *vb; - QWidget *container; + + StorageInfo *storage; + QDict<MountInfo> disks; + QList<QFrame> lines; + + bool rebuildDisks; + +private slots: + void disksChanged(); }; @@ -55,3 +64,3 @@ class MountInfo : public QWidget public: - MountInfo( const QString &path, const QString &ttl, QWidget *parent=0, const char *name=0 ); + MountInfo( FileSystem *filesys=0, QWidget *parent=0, const char *name=0 ); ~MountInfo(); @@ -59,2 +68,4 @@ public: void updateData(); + + FileSystem *fs; @@ -62,3 +73,2 @@ private: QString title; - FileSystem *fs; QLabel *totalSize; @@ -69,21 +79 @@ private: -class FileSystem -{ -public: - FileSystem( const QString &p ); - - void update(); - - const QString &path() const { return fspath; } - long blockSize() const { return blkSize; } - long totalBlocks() const { return totalBlks; } - long availBlocks() const { return availBlks; } - -private: - QString fspath; - long blkSize; - long totalBlks; - long availBlks; -}; - - |