| 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 |
| 16 | struct ca_context; |
| 17 | #endif |
| 18 | |
| 19 | class KNotifyConfigElement; |
| 20 | |
| 21 | /* |
| 22 | * Represent the config for an event |
| 23 | */ |
| 24 | class KNotifyConfigActionsWidget : public QWidget |
| 25 | { |
| 26 | Q_OBJECT |
| 27 | public: |
| 28 | explicit KNotifyConfigActionsWidget(QWidget *parent); |
| 29 | ~KNotifyConfigActionsWidget() override; |
| 30 | |
| 31 | void setConfigElement(KNotifyConfigElement *config); |
| 32 | void save(KNotifyConfigElement *config); |
| 33 | Q_SIGNALS: |
| 34 | void changed(); |
| 35 | private Q_SLOTS: |
| 36 | void slotPlay(); |
| 37 | |
| 38 | private: |
| 39 | Ui::KNotifyConfigActionsWidgetBase m_ui; |
| 40 | #if HAVE_CANBERRA |
| 41 | ca_context *m_context = nullptr; |
| 42 | #endif |
| 43 | }; |
| 44 | |
| 45 | #endif // KNOTIFYCONFIGACTIONSWIDGET_H |
| 46 | |