1/*
2 This file is part of the KDE project
3 SPDX-FileCopyrightText: 2005-2007 Olivier Goffart <ogoffart at kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-only
6*/
7
8#ifndef KNOTIFYCONFIGACTIONSWIDGET_H
9#define KNOTIFYCONFIGACTIONSWIDGET_H
10
11#include "knotify-config.h"
12#include "ui_knotifyconfigactionswidgetbase.h"
13#include <QWidget>
14
15#if HAVE_CANBERRA
16struct ca_context;
17#endif
18
19class KNotifyConfigElement;
20
21/**
22 * Represent the config for an event
23 * @internal
24 * @author Olivier Goffart <ogoffart @ kde.org>
25 */
26class KNotifyConfigActionsWidget : public QWidget
27{
28 Q_OBJECT
29public:
30 explicit KNotifyConfigActionsWidget(QWidget *parent);
31 ~KNotifyConfigActionsWidget() override;
32
33 void setConfigElement(KNotifyConfigElement *config);
34 void save(KNotifyConfigElement *config);
35Q_SIGNALS:
36 void changed();
37private Q_SLOTS:
38 void slotPlay();
39
40private:
41 Ui::KNotifyConfigActionsWidgetBase m_ui;
42#if HAVE_CANBERRA
43 ca_context *m_context = nullptr;
44#endif
45};
46
47#endif // KNOTIFYCONFIGACTIONSWIDGET_H
48

source code of knotifyconfig/src/knotifyconfigactionswidget.h