forked from Qortal/Brooklyn
23 lines
690 B
C++
23 lines
690 B
C++
/*
|
|
SPDX-FileCopyrightText: 2008 Rob Scheepmaker <r.scheepmaker@student.utwente.nl>
|
|
|
|
SPDX-License-Identifier: LGPL-2.0-only
|
|
*/
|
|
|
|
#include "notificationservice.h"
|
|
#include "notificationaction.h"
|
|
#include "notificationsengine.h"
|
|
|
|
NotificationService::NotificationService(NotificationsEngine *parent, const QString &source)
|
|
: Plasma::Service(parent)
|
|
, m_notificationEngine(parent)
|
|
{
|
|
setName(QStringLiteral("notifications"));
|
|
setDestination(source);
|
|
}
|
|
|
|
Plasma::ServiceJob *NotificationService::createJob(const QString &operation, QMap<QString, QVariant> ¶meters)
|
|
{
|
|
return new NotificationAction(m_notificationEngine, destination(), operation, parameters, this);
|
|
}
|