From 91df4cc8260f38b7547dc0a08feec940e98bd2ac Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Thu, 12 Dec 2019 20:50:17 +0100 Subject: [PATCH] Add missing file Oopsie :) --- applets/notifications/globalshortcuts.h | 43 +++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 applets/notifications/globalshortcuts.h diff --git a/applets/notifications/globalshortcuts.h b/applets/notifications/globalshortcuts.h new file mode 100644 index 000000000..e1599d964 --- /dev/null +++ b/applets/notifications/globalshortcuts.h @@ -0,0 +1,43 @@ +/* + * Copyright 2019 Kai Uwe Broulik + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 3 of + * the License or any later version accepted by the membership of + * KDE e.V. (or its successor approved by the membership of KDE + * e.V.), which shall act as a proxy defined in Section 14 of + * version 3 of the license. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#pragma once + +#include + +class QAction; + +class GlobalShortcuts : public QObject +{ + Q_OBJECT + +public: + explicit GlobalShortcuts(QObject *parent = nullptr); + ~GlobalShortcuts() override; + + Q_INVOKABLE void showDoNotDisturbOsd(bool doNotDisturb) const; + +signals: + void toggleDoNotDisturbTriggered(); + +private: + QAction *m_toggleDoNotDisturbAction; + +};