libyui-qt-pkg
 
Loading...
Searching...
No Matches
YQPkgDiskUsageWarningDialog Class Reference

#include <YQPkgDiskUsageWarningDialog.h>

Inheritance diagram for YQPkgDiskUsageWarningDialog:
Collaboration diagram for YQPkgDiskUsageWarningDialog:

Static Public Member Functions

static bool diskUsageWarning (const QString &message, int thresholdPercent, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString())
 

Protected Member Functions

 YQPkgDiskUsageWarningDialog (QWidget *parent, const QString &message, int thresholdPercent, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString())
 

Detailed Description

Warning dialog about partitions that are getting full or overflowing.

Constructor & Destructor Documentation

◆ YQPkgDiskUsageWarningDialog()

YQPkgDiskUsageWarningDialog::YQPkgDiskUsageWarningDialog ( QWidget * parent,
const QString & message,
int thresholdPercent,
const QString & acceptButtonLabel,
const QString & rejectButtonLabel = QString() )
protected

Constructor: Creates a disk usage warning dialog with text 'message' on top, a list of partitions that are at least 'thresholdPercent' full and one ( default ) or two buttons.

Not meant for public use. Applications should use the static 'diskUsageWarning' method instead.

Member Function Documentation

◆ diskUsageWarning()

bool YQPkgDiskUsageWarningDialog::diskUsageWarning ( const QString & message,
int thresholdPercent,
const QString & acceptButtonLabel,
const QString & rejectButtonLabel = QString() )
static

Static convenience method: Post a disk usage warning with text 'message', a list of partitions that are at least 'thresholdPercent' full and one ( default ) or two buttons.

Returns 'true' if the user accepted ( i.e. clicked the 'accept' button ) and 'false' if the user rejected ( i.e. clicked the 'reject' button or the window manager close button ).


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