KUserFeedback

feedbackconfigdialog.h
1/*
2 SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: MIT
5*/
6
7#ifndef KUSERFEEDBACK_CONSOLE_FEEDBACKCONFIGDIALOG_H
8#define KUSERFEEDBACK_CONSOLE_FEEDBACKCONFIGDIALOG_H
9
10#include "kuserfeedbackwidgets_export.h"
11#include <QDialog>
12
13#include <memory>
14
15namespace KUserFeedback {
16
17class FeedbackConfigDialogPrivate;
18class Provider;
19
20/*! Configure which feedback a user wants to provide.
21 *
22 * @see FeedbackConfigWidget
23 */
24class KUSERFEEDBACKWIDGETS_EXPORT FeedbackConfigDialog : public QDialog
25{
26 Q_OBJECT
27public:
28 /*! Create a new feedback configuration dialog.
29 * @param parent The parent widget.
30 */
31 explicit FeedbackConfigDialog(QWidget *parent = nullptr);
32 ~FeedbackConfigDialog() override;
33
34 /*! Set the feedback provider that this dialog configures. */
35 void setFeedbackProvider(KUserFeedback::Provider *provider);
36
37 /*! Accepts the dialog and write changes made by the user to
38 * the feedback provider.
39 */
40 void accept() override;
41
42private:
43 std::unique_ptr<FeedbackConfigDialogPrivate> d;
44};
45
46}
47
48#endif // KUSERFEEDBACK_CONSOLE_FEEDBACKCONFIGDIALOG_H
Configure which feedback a user wants to provide.
The central object managing data sources and transmitting feedback to the server.
Definition provider.h:32
Classes for integrating telemetry collection, survey targeting, and contribution encouragenemt and co...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:48:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.