File indexing completed on 2024-04-28 15:29:12

0001 /*
0002     SPDX-FileCopyrightText: 2019-2020 Weixuan XIAO <veyx.shaw at gmail.com>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #ifndef NOTIFYBYMACOSNOTIFICATIONCENTER_H
0008 #define NOTIFYBYMACOSNOTIFICATIONCENTER_H
0009 
0010 #include "knotificationplugin.h"
0011 
0012 class NotifyByMacOSNotificationCenter : public KNotificationPlugin
0013 {
0014     Q_OBJECT
0015 
0016 public:
0017     NotifyByMacOSNotificationCenter(QObject *parent);
0018     ~NotifyByMacOSNotificationCenter() override;
0019 
0020     QString optionName() override
0021     {
0022         return QStringLiteral("Popup");
0023     }
0024     void notify(KNotification *notification, KNotifyConfig *config) override;
0025     void update(KNotification *notification, KNotifyConfig *config) override;
0026     void close(KNotification *notification) override;
0027 };
0028 
0029 #endif // NOTIFYBYMACOSNOTIFICATIONCENTER_H