KNewStuff

questionlistener.cpp
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 #include "questionlistener.h"
9 #include "questionmanager.h"
10 
11 using namespace KNSCore;
12 
13 QuestionListener::QuestionListener(QObject* parent)
14  : QObject(parent)
15 {
16  connect(QuestionManager::instance(), &QuestionManager::askQuestion, this, &QuestionListener::askQuestion);
17 }
18 
19 QuestionListener::~QuestionListener()
20 {
21 }
22 
23 void QuestionListener::askQuestion(Question* question)
24 {
25  Q_UNUSED(question)
26 }
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. ...
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Aug 11 2020 22:43:23 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.