libyui-qt-pkg  2.42.13
 All Classes Functions Variables Enumerations
YQPkgDiskUsageList Class Reference

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

#include <YQPkgDiskUsageList.h>

Inheritance diagram for YQPkgDiskUsageList:
Collaboration diagram for YQPkgDiskUsageList:

Public Slots

void updateDiskUsage ()
 
void postPendingWarnings ()
 

Public Member Functions

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

Public Attributes

YQPkgWarningRangeNotifier runningOutWarning
 
YQPkgWarningRangeNotifier overflowWarning
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *ev)
 

Protected Attributes

QMap< QString,
YQPkgDiskUsageListItem * > 
_items
 
bool _debug
 

Detailed Description

List of disk usage of all attached partitions.

Definition at line 149 of file YQPkgDiskUsageList.h.

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? ).

Definition at line 83 of file YQPkgDiskUsageList.cc.

virtual YQPkgDiskUsageList::~YQPkgDiskUsageList ( )
inlinevirtual

Destructor.

Definition at line 166 of file YQPkgDiskUsageList.h.

Member Function Documentation

void YQPkgDiskUsageList::keyPressEvent ( QKeyEvent *  ev)
protectedvirtual

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

Reimplemented from QListView / QWidget.

Definition at line 196 of file YQPkgDiskUsageList.cc.

Here is the call graph for this function:

void YQPkgDiskUsageList::postPendingWarnings ( )
slot

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

Definition at line 151 of file YQPkgDiskUsageList.cc.

Here is the call graph for this function:

QSize YQPkgDiskUsageList::sizeHint ( ) const
virtual

Suggest reasonable default size.

Reimplemented from QListView.

Definition at line 178 of file YQPkgDiskUsageList.cc.

void YQPkgDiskUsageList::updateDiskUsage ( )
slot

Update all statistical data in the list.

Definition at line 125 of file YQPkgDiskUsageList.cc.

Here is the call graph for this function:

Member Data Documentation

YQPkgWarningRangeNotifier YQPkgDiskUsageList::overflowWarning

Warning range notifier about disk space overflow warning.

Definition at line 183 of file YQPkgDiskUsageList.h.

YQPkgWarningRangeNotifier YQPkgDiskUsageList::runningOutWarning

Warning range notifier about running out of disk space warning.

Definition at line 178 of file YQPkgDiskUsageList.h.


The documentation for this class was generated from the following files: