libyui-qt-pkg
Loading...
Searching...
No Matches
YQPkgDiskUsageWarningDialog.h
1/*
2 Copyright (c) 2000 - 2010 Novell, Inc.
3 Copyright (c) 2021 SUSE LLC
4
5 This library is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as
7 published by the Free Software Foundation; either version 2.1 of the
8 License, or (at your option) version 3.0 of the License. This library
9 is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12 License for more details. You should have received a copy of the GNU
13 Lesser General Public License along with this library; if not, write
14 to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
15 Floor, Boston, MA 02110-1301 USA
16*/
17
18
19/*
20 File: YQPkgDiskUsageWarningDialog.h
21 Author: Stefan Hundhammer <shundhammer.de>
22*/
23
24
25#ifndef YQPkgDiskUsageWarningDialog_h
26#define YQPkgDiskUsageWarningDialog_h
27
28#include <qdialog.h>
29
30
32
33
37class YQPkgDiskUsageWarningDialog : public QDialog
38{
39 Q_OBJECT
40
41public:
51 static bool diskUsageWarning( const QString & message,
52 int thresholdPercent,
53 const QString & acceptButtonLabel,
54 const QString & rejectButtonLabel = QString() );
55protected:
56
65 YQPkgDiskUsageWarningDialog( QWidget * parent,
66 const QString & message,
67 int thresholdPercent,
68 const QString & acceptButtonLabel,
69 const QString & rejectButtonLabel = QString() );
70};
71
72
73#endif // ifndef YQPkgDiskUsageWarningDialog_h
List of disk usage of all attached partitions.
Definition YQPkgDiskUsageList.h:134
Definition YQPkgDiskUsageWarningDialog.h:38
YQPkgDiskUsageWarningDialog(QWidget *parent, const QString &message, int thresholdPercent, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString())
Definition YQPkgDiskUsageWarningDialog.cc:50
static bool diskUsageWarning(const QString &message, int thresholdPercent, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString())
Definition YQPkgDiskUsageWarningDialog.cc:149