KNewStuff

questionmanager.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_QUESTIONMANAGER_H
9 #define KNS3_QUESTIONMANAGER_H
10 
11 #include <QObject>
12 
13 #include "knewstuffcore_export.h"
14 
15 #include "question.h"
16 
17 namespace KNSCore
18 {
27 class KNEWSTUFFCORE_EXPORT QuestionManager : public QObject
28 {
29  Q_OBJECT
30  Q_DISABLE_COPY(QuestionManager)
31 public:
32  static QuestionManager* instance();
33  virtual ~QuestionManager();
34 
35 Q_SIGNALS:
36  void askQuestion(KNSCore::Question* question);
37 
38 private:
40  class Private;
41  Private* d;
42 };
43 }
44 
45 #endif//KNS3_QUESTIONMANAGER_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. ...
The central class handling Question redirection.
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.