KNewStuff
10 #include "questionmanager.h" 12 #include <QCoreApplication> 16 class Question::Private {
19 : questionType(YesNoQuestion)
26 bool questionActive =
false;
27 Question::QuestionType questionType;
28 Question::Response response;
32 Question::Question(QuestionType questionType,
QObject *
parent)
36 d->questionType = questionType;
44 Question::Response Question::ask()
46 d->questionActive =
true;
48 Q_EMIT QuestionManager::instance()->askQuestion(
this);
49 while(d->questionActive)
51 qApp->processEvents();
57 Question::QuestionType Question::questionType()
const 59 return d->questionType;
62 void Question::setQuestionType(Question::QuestionType newType)
64 d->questionType = newType;
67 void Question::setQuestion(
const QString &newQuestion)
69 d->question = newQuestion;
72 QString Question::question()
const 77 void Question::setTitle(
const QString &newTitle)
97 void Question::setResponse(Response response)
99 d->response = response;
100 d->questionActive =
false;
103 void Question::setResponse(
const QString &response)
105 d->textResponse = response;
108 QString Question::response()
const 110 return d->textResponse;
Contains the core functionality for handling interaction with NewStuff providers. ...
QObject * parent() const const
KIOFILEWIDGETS_EXPORT QStringList list(const QString &fileClass)
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.