Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

YQPkgDiskUsageList Class Reference

List of disk usage of all attached partitions. More...

#include <YQPkgDiskUsageList.h>

Inheritance diagram for YQPkgDiskUsageList:

QY2DiskUsageList QY2ListView List of all members.

Public Slots

void updateDiskUsage ()
void postPendingWarnings ()

Public Member Functions

 YQPkgDiskUsageList (QWidget *parent, int thresholdPercent=0)
virtual ~YQPkgDiskUsageList ()
void fakeData ()
virtual QSize sizeHint () const

Public Attributes

YQPkgWarningRangeNotifier runningOutWarning
YQPkgWarningRangeNotifier overflowWarning

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *ev)

Protected Attributes

QAsciiDict< YQPkgDiskUsageListItem_items
bool _debug

Detailed Description

List of disk usage of all attached partitions.


Constructor & Destructor Documentation

YQPkgDiskUsageList::YQPkgDiskUsageList QWidget *  parent,
int  thresholdPercent = 0
 

Constructor.

'thresholdPercent' can be used to include only partitions with at least this many percent used disk space in the list. This is useful for warning dialogs ( only? ).

virtual YQPkgDiskUsageList::~YQPkgDiskUsageList  )  [inline, virtual]
 

Destructor.


Member Function Documentation

void YQPkgDiskUsageList::fakeData  ) 
 

For debugging: Add some fake data.

void YQPkgDiskUsageList::keyPressEvent QKeyEvent *  ev  )  [protected, virtual]
 

Event handler for keyboard input - for debugging and testing. Changes the current item's percentage on the fly.

Reimplemented from QListView / QWidget.

void YQPkgDiskUsageList::postPendingWarnings  )  [slot]
 

Post all pending disk space warnings based on the warning range notifiers.

QSize YQPkgDiskUsageList::sizeHint  )  const [virtual]
 

Suggest reasonable default size.

Reimplemented from QListView.

void YQPkgDiskUsageList::updateDiskUsage  )  [slot]
 

Update all statistical data in the list.


Member Data Documentation

bool YQPkgDiskUsageList::_debug [protected]
 

QAsciiDict<YQPkgDiskUsageListItem> YQPkgDiskUsageList::_items [protected]
 

YQPkgWarningRangeNotifier YQPkgDiskUsageList::overflowWarning
 

Warning range notifier about disk space overflow warning.

YQPkgWarningRangeNotifier YQPkgDiskUsageList::runningOutWarning
 

Warning range notifier about running out of disk space warning.


The documentation for this class was generated from the following files:
Generated on Wed Nov 12 06:11:17 2008 for yast2-qt by  doxygen 1.3.9.1