#include <YQPkgDiskUsageWarningDialog.h>
Static Public Member Functions | |
bool | diskUsageWarning (const QString &message, int thresholdPercent, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString::null) |
Protected Member Functions | |
YQPkgDiskUsageWarningDialog (QWidget *parent, const QString &message, int thresholdPercent, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString::null) |
|
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. |
|
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 ). |