mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-14 11:15:54 +00:00
32 lines
818 B
C++
32 lines
818 B
C++
/*
|
|
SPDX-FileCopyrightText: 2010 Jacopo De Simoi <wilderkde@gmail.com>
|
|
SPDX-FileCopyrightText: 2014 Lukáš Tinkl <ltinkl@redhat.com>
|
|
|
|
SPDX-License-Identifier: LGPL-2.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <Plasma/DataEngine>
|
|
|
|
#include "ksolidnotify.h"
|
|
|
|
/**
|
|
* Engine which provides data sources for device notifications.
|
|
* Each notification is represented by one source.
|
|
*/
|
|
class DeviceNotificationsEngine : public Plasma::DataEngine
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
DeviceNotificationsEngine(QObject *parent, const QVariantList &args);
|
|
~DeviceNotificationsEngine() override;
|
|
|
|
private Q_SLOTS:
|
|
void notify(Solid::ErrorType solidError, const QString &error, const QString &errorDetails, const QString &udi);
|
|
void clearNotification(const QString &udi);
|
|
|
|
private:
|
|
KSolidNotify *m_solidNotify;
|
|
};
|