KNewStuff

questionmanager.h
1/*
2 This file is part of KNewStuffCore.
3 SPDX-FileCopyrightText: 2016 Dan Leinir Turthra Jensen <admin@leinir.dk>
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"
14namespace KNSCore
15{
16class Question;
17class QuestionManagerPrivate;
18/**
19 * @short The central class handling Question redirection
20 *
21 * This class is used to ensure that KNSCore::Question instances get redirected
22 * to the appropriate KNSCore::QuestionListener instances. It is a very dumb class
23 * which only ensures the listeners have somewhere to listen to, and the
24 * questions have somewhere to ask to be asked.
25 */
26class KNEWSTUFFCORE_EXPORT QuestionManager : public QObject
27{
28 Q_OBJECT
29 Q_DISABLE_COPY(QuestionManager)
30public:
31 static QuestionManager *instance();
32 ~QuestionManager() override;
33
34Q_SIGNALS:
35 void askQuestion(KNSCore::Question *question);
36
37private:
39 const void *d; // Future BIC
40};
41}
42
43#endif // KNS3_QUESTIONMANAGER_H
The central class handling Question redirection.
A way to ask a user a question from inside a GUI-less library (like KNewStuffCore)
Definition question.h:47
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:20:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.