File indexing completed on 2024-05-12 05:37:18

0001 /*
0002     SPDX-FileCopyrightText: 2008 Rob Scheepmaker <r.scheepmaker@student.utwente.nl>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-only
0005 */
0006 
0007 #pragma once
0008 
0009 #include "notificationsengine.h"
0010 
0011 #include <Plasma5Support/ServiceJob>
0012 
0013 class NotificationAction : public Plasma5Support::ServiceJob
0014 {
0015     Q_OBJECT
0016 
0017 public:
0018     NotificationAction(NotificationsEngine *engine,
0019                        const QString &destination,
0020                        const QString &operation,
0021                        QMap<QString, QVariant> &parameters,
0022                        QObject *parent = nullptr)
0023         : ServiceJob(destination, operation, parameters, parent)
0024         , m_engine(engine)
0025     {
0026     }
0027 
0028     void start() override;
0029 
0030 private:
0031     NotificationsEngine *const m_engine;
0032 };