File indexing completed on 2024-11-24 03:41:04

0001 /*
0002     This file is part of the KDE libraries
0003     SPDX-FileCopyrightText: 2004 George Staikos <staikos@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.1-or-later
0006 */
0007 
0008 #ifndef KBETTERTHANKDIALOG_H
0009 #define KBETTERTHANKDIALOG_H
0010 
0011 #include <QDialog>
0012 
0013 #include "ui_kbetterthankdialogbase.h"
0014 
0015 class KBetterThanKDialog : public QDialog, private Ui_KBetterThanKDialogBase
0016 {
0017     Q_OBJECT
0018 
0019 public:
0020     explicit KBetterThanKDialog(QWidget *parent = nullptr);
0021 
0022     void init();
0023     void setLabel(const QString &label);
0024 
0025 protected Q_SLOTS:
0026     void accept() override;
0027     void reject() override;
0028 
0029 private Q_SLOTS:
0030     void allowOnceClicked();
0031     void allowAlwaysClicked();
0032     void denyClicked();
0033     void denyForeverClicked();
0034 };
0035 
0036 #endif