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

0001 /*
0002     SPDX-FileCopyrightText: 2005-2006 Olivier Goffart <ogoffart at kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #ifndef NOTIFYBYLOGFILE_H
0008 #define NOTIFYBYLOGFILE_H
0009 
0010 #include "knotificationplugin.h"
0011 
0012 class KNotification;
0013 
0014 class NotifyByLogfile : public KNotificationPlugin
0015 {
0016     Q_OBJECT
0017 
0018 public:
0019     explicit NotifyByLogfile(QObject *parent = nullptr);
0020     ~NotifyByLogfile() override;
0021 
0022     QString optionName() override
0023     {
0024         return QStringLiteral("Logfile");
0025     }
0026     void notify(KNotification *notification, KNotifyConfig *config) override;
0027 };
0028 
0029 #endif