KWidgetsAddons

kmessageboxdontaskagaininterface.h
1 /*
2  This file is part of the KDE libraries
3  SPDX-FileCopyrightText: 2012 David Faure <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only or LicenseRef-KDE-Accepted-LGPL
6 */
7 
8 #ifndef KMESSAGEBOXDONTASKAGAININTERFACE_H
9 #define KMESSAGEBOXDONTASKAGAININTERFACE_H
10 
11 #include "kmessagebox.h"
12 #include <qmetatype.h>
13 
19 {
20 public:
23 
24  virtual bool shouldBeShownYesNo(const QString &dontShowAgainName, KMessageBox::ButtonCode &result) = 0;
25  virtual bool shouldBeShownContinue(const QString &dontShowAgainName) = 0;
26  virtual void saveDontShowAgainYesNo(const QString &dontShowAgainName, KMessageBox::ButtonCode result) = 0;
27  virtual void saveDontShowAgainContinue(const QString &dontShowAgainName) = 0;
28  virtual void enableAllMessages() = 0;
29  virtual void enableMessage(const QString &dontShowAgainName) = 0;
30  virtual void setConfig(KConfig *) = 0;
31 };
32 
33 Q_DECLARE_METATYPE(KMessageBoxDontAskAgainInterface *)
34 
35 #define KMESSAGEBOXDONTASKAGAIN_PROPERTY "KMessageBoxDontAskAgain"
36 
37 #endif
ButtonCode
Button types.
Definition: kmessagebox.h:48
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jul 4 2020 22:44:23 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.