1 /* 2 SPDX-FileCopyrightText: 2005-2006 Olivier Goffart <ogoffart at kde.org> 3 4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 5 */ 6 7 #ifndef NOTIFYBYLOGFILE_H 8 #define NOTIFYBYLOGFILE_H 9 10 #include "knotificationplugin.h" 11 12 class KNotification; 13 14 class NotifyByLogfile : public KNotificationPlugin 15 { 16 Q_OBJECT 17 18 public: 19 explicit NotifyByLogfile(QObject *parent = nullptr); 20 ~NotifyByLogfile() override; 21 optionName()22 QString optionName() override 23 { 24 return QStringLiteral("Logfile"); 25 } 26 void notify(KNotification *notification, KNotifyConfig *config) override; 27 }; 28 29 #endif 30