File indexing completed on 2025-01-26 03:44:34
0001 /* 0002 SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: MIT 0005 */ 0006 0007 #ifndef KUSERFEEDBACK_CONSOLE_SURVEYDIALOG_H 0008 #define KUSERFEEDBACK_CONSOLE_SURVEYDIALOG_H 0009 0010 #include <core/survey.h> 0011 0012 #include <QDialog> 0013 0014 #include <memory> 0015 0016 class QUrl; 0017 0018 namespace KUserFeedback { 0019 namespace Console { 0020 0021 namespace Ui 0022 { 0023 class SurveyDialog; 0024 } 0025 0026 class SurveyDialog : public QDialog 0027 { 0028 Q_OBJECT 0029 public: 0030 explicit SurveyDialog(QWidget *parent = nullptr); 0031 ~SurveyDialog() override; 0032 0033 Survey survey() const; 0034 void setSurvey(const Survey &survey); 0035 0036 private: 0037 void updateState(); 0038 0039 Survey m_survey; 0040 std::unique_ptr<Ui::SurveyDialog> ui; 0041 }; 0042 0043 } 0044 } 0045 0046 #endif // KUSERFEEDBACK_CONSOLE_SURVEYDIALOG_H