File indexing completed on 2024-04-14 05:26:59

0001 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0002 // SPDX-FileCopyrightText: 2020-2021 Harald Sitter <sitter@kde.org>
0003 
0004 #pragma once
0005 
0006 #include "devicenotifier.h"
0007 
0008 #include <Solid/Device>
0009 
0010 class SolidDeviceNotifier : public DeviceNotifier
0011 {
0012     Q_OBJECT
0013 public:
0014     using DeviceNotifier::DeviceNotifier;
0015 
0016     void start() override;
0017     void loadData() override;
0018 
0019 private:
0020     void checkUDI(const QString &udi);
0021     void checkSolidDevice(const Solid::Device &device);
0022 };