File indexing completed on 2024-05-12 05:37:20
0001 /* 0002 SPDX-FileCopyrightText: 2007 Christopher Blauvelt <cblauvelt@gmail.com> 0003 0004 SPDX-License-Identifier: LGPL-2.0-only 0005 */ 0006 0007 #pragma once 0008 0009 #include <QDebug> 0010 0011 #include "devicesignalmapper.h" 0012 0013 class DeviceSignalMapManager : public QObject 0014 { 0015 Q_OBJECT 0016 0017 public: 0018 explicit DeviceSignalMapManager(QObject *parent = nullptr); 0019 ~DeviceSignalMapManager() override; 0020 0021 void mapDevice(Solid::Battery *battery, const QString &udi); 0022 void mapDevice(Solid::StorageAccess *storageaccess, const QString &udi); 0023 0024 void unmapDevice(Solid::Battery *battery); 0025 void unmapDevice(Solid::StorageAccess *storageaccess); 0026 0027 private: 0028 QMap<Solid::DeviceInterface::Type, DeviceSignalMapper *> signalmap; 0029 QObject *user; 0030 };