libyui-qt-pkg  2.47.5
YQPkgDiskUsageWarningDialog Class Reference

Warning dialog about partitions that are getting full or overflowing. More...

#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())
 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. More...
 

Protected Member Functions

 YQPkgDiskUsageWarningDialog (QWidget *parent, const QString &message, int thresholdPercent, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString())
 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. More...
 

Detailed Description

Warning dialog about partitions that are getting full or overflowing.

Definition at line 53 of file YQPkgDiskUsageWarningDialog.h.

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.

Definition at line 63 of file YQPkgDiskUsageWarningDialog.cc.

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

Definition at line 162 of file YQPkgDiskUsageWarningDialog.cc.


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