/* SPDX-FileCopyrightText: 2019 David Edmundson SPDX-FileCopyrightText: 2019 Aleix Pol Gonzalez SPDX-License-Identifier: LGPL-2.0-or-later */ #pragma once #include #include #include class FeedbackSettings; class FeedbackData; class Feedback : public KQuickManagedConfigModule { Q_OBJECT Q_PROPERTY(QJsonArray feedbackSources MEMBER m_feedbackSources NOTIFY feedbackSourcesChanged) Q_PROPERTY(QJsonArray audits READ audits CONSTANT) Q_PROPERTY(bool feedbackEnabled READ feedbackEnabled CONSTANT) Q_PROPERTY(FeedbackSettings *feedbackSettings READ feedbackSettings CONSTANT) public: explicit Feedback(QObject *parent, const KPluginMetaData &data); bool feedbackEnabled() const; FeedbackSettings *feedbackSettings() const; QJsonArray audits() const; void programFinished(int exitCode); Q_SIGNALS: void feedbackSourcesChanged(); private: QHash> m_uses; QJsonArray m_feedbackSources; FeedbackData *m_data; };