KNewStuff

questionlistener.h
1 /*
2  This file is part of KNewStuffCore.
3  SPDX-FileCopyrightText: 2016 Dan Leinir Turthra Jensen <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.1-or-later
6 */
7 
8 #ifndef KNS3_QUESTIONLISTENER_H
9 #define KNS3_QUESTIONLISTENER_H
10 
11 #include <QObject>
12 
13 #include "knewstuffcore_export.h"
14 
15 namespace KNSCore
16 {
17 class Question;
28 class KNEWSTUFFCORE_EXPORT QuestionListener : public QObject
29 {
30  Q_OBJECT
31 public:
32  explicit QuestionListener(QObject* parent = nullptr);
33  virtual ~QuestionListener();
34 
35  Q_SLOT virtual void askQuestion(Question* question);
36 };
37 }
38 
39 #endif//KNS3_QUESTIONLISTENER_H
A way to ask a user a question from inside a GUI-less library (like KNewStuffCore) ...
Definition: question.h:41
Contains the core functionality for handling interaction with NewStuff providers. ...
Implementation-side handler class for questions sent from KNewStuffCore.
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.