KNewStuff

quickquestionlistener.h
1 /*
2  This file is part of KNewStuffQuick.
3  SPDX-FileCopyrightText: 2019 Dan Leinir Turthra Jensen <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.1-or-later
6 */
7 
8 #ifndef KNSQ_QUICKQUESTIONLISTENER_H
9 #define KNSQ_QUICKQUESTIONLISTENER_H
10 
11 #include "core/questionlistener.h"
12 
13 namespace KNewStuffQuick
14 {
15 class QuickQuestionListener : public KNSCore::QuestionListener
16 {
17  Q_OBJECT
18  Q_DISABLE_COPY(QuickQuestionListener)
19 public:
20  static QuickQuestionListener *instance();
21  virtual ~QuickQuestionListener();
22 
23  Q_SLOT void askQuestion(KNSCore::Question *question) override;
24 
25  Q_SIGNAL void askListQuestion(QString title, QString question, QStringList list);
26  Q_SIGNAL void askContinueCancelQuestion(QString title, QString question);
27  Q_SIGNAL void askTextInputQuestion(QString title, QString question);
28  Q_SIGNAL void askPasswordQuestion(QString title, QString question);
29  Q_SIGNAL void askYesNoQuestion(QString title, QString question);
30 
31  Q_SLOT void passResponse(bool responseIsContinue, QString input);
32 private:
33  QuickQuestionListener();
34  class Private;
35  Private *d;
36 };
37 }
38 
39 #endif//KNSQ_QUICKQUESTIONLISTENER_H
Contains the core functionality for handling interaction with NewStuff providers. ...
Implementation-side handler class for questions sent from KNewStuffCore.
Q_OBJECTQ_OBJECT
Q_DISABLE_COPY(Class)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 18 2021 22:43:50 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.