libyui-qt-pkg
Loading...
Searching...
No Matches
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.

Constructor & Destructor Documentation

◆ YQPkgDiskUsageList()

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

◆ ~YQPkgDiskUsageList()

virtual YQPkgDiskUsageList::~YQPkgDiskUsageList ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ keyPressEvent()

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.

◆ postPendingWarnings

void YQPkgDiskUsageList::postPendingWarnings ( )
slot

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

◆ sizeHint()

QSize YQPkgDiskUsageList::sizeHint ( ) const
virtual

Suggest reasonable default size.

Reimplemented from QListView.

◆ updateDiskUsage

void YQPkgDiskUsageList::updateDiskUsage ( )
slot

Update all statistical data in the list.

Member Data Documentation

◆ overflowWarning

YQPkgWarningRangeNotifier YQPkgDiskUsageList::overflowWarning

Warning range notifier about disk space overflow warning.

◆ runningOutWarning

YQPkgWarningRangeNotifier YQPkgDiskUsageList::runningOutWarning

Warning range notifier about running out of disk space warning.


The documentation for this class was generated from the following files:
  • /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui-qt-pkg/src/YQPkgDiskUsageList.h
  • /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui-qt-pkg/src/YQPkgDiskUsageList.cc