File indexing completed on 2025-01-26 05:08:59

0001 /*
0002     SPDX-FileCopyrightText: 2010 Jacopo De Simoi <wilderkde@gmail.com>
0003     SPDX-FileCopyrightText: 2014 Lukáš Tinkl <ltinkl@redhat.com>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #pragma once
0009 
0010 #include <Plasma5Support/DataEngine>
0011 
0012 #include "ksolidnotify.h"
0013 
0014 /**
0015  *  Engine which provides data sources for device notifications.
0016  *  Each notification is represented by one source.
0017  */
0018 class DeviceNotificationsEngine : public Plasma5Support::DataEngine
0019 {
0020     Q_OBJECT
0021 public:
0022     DeviceNotificationsEngine(QObject *parent);
0023     ~DeviceNotificationsEngine() override;
0024 
0025 private Q_SLOTS:
0026     void notify(Solid::ErrorType solidError, const QString &error, const QString &errorDetails, const QString &udi);
0027     void clearNotification(const QString &udi);
0028 
0029 private:
0030     KSolidNotify *const m_solidNotify;
0031 };