KUserFeedback

notificationpopup.h
1/*
2 SPDX-FileCopyrightText: 2017 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: MIT
5*/
6
7#ifndef KUSERFEEDBACK_NOTIFICATIONPOPUP_H
8#define KUSERFEEDBACK_NOTIFICATIONPOPUP_H
9
10#include "kuserfeedbackwidgets_export.h"
11
12#include <QWidget>
13
14#include <memory>
15
16namespace KUserFeedback {
17
18class NotificationPopupPrivate;
19class Provider;
20
21/*!
22 * Notification popup that overlays a small part of the application for
23 * encouraging contributions or inform about surveys.
24 */
25class KUSERFEEDBACKWIDGETS_EXPORT NotificationPopup : public QWidget
26{
27 Q_OBJECT
28public:
29 /*!
30 * Create a new notification popup.
31 * Do not put this widget into a layout.
32 * @param parent The parent widget. This must not be @c nullptr.
33 */
34 explicit NotificationPopup(QWidget *parent);
35 ~NotificationPopup() override;
36
37 /*!
38 * Set the feedback provider that is going to drive this notification popup.
39 */
40 void setFeedbackProvider(Provider *provider);
41
42protected:
43 ///@cond internal
44 void keyReleaseEvent(QKeyEvent *event) override;
45 bool eventFilter(QObject *receiver, QEvent *event) override;
46 ///@endcond
47
48private:
49 std::unique_ptr<NotificationPopupPrivate> d;
50};
51
52}
53
54#endif // KUSERFEEDBACK_NOTIFICATIONPOPUP_H
Notification popup that overlays a small part of the application for encouraging contributions or inf...
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 Tue Mar 26 2024 11:20:56 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.