mirror of https://github.com/Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
721 B
30 lines
721 B
/* |
|
SPDX-FileCopyrightText: 2007 Christopher Blauvelt <[email protected]> |
|
|
|
SPDX-License-Identifier: LGPL-2.0-only |
|
*/ |
|
|
|
#pragma once |
|
|
|
#include <QDebug> |
|
|
|
#include "devicesignalmapper.h" |
|
|
|
class DeviceSignalMapManager : public QObject |
|
{ |
|
Q_OBJECT |
|
|
|
public: |
|
explicit DeviceSignalMapManager(QObject *parent = nullptr); |
|
~DeviceSignalMapManager() override; |
|
|
|
void mapDevice(Solid::Battery *battery, const QString &udi); |
|
void mapDevice(Solid::StorageAccess *storageaccess, const QString &udi); |
|
|
|
void unmapDevice(Solid::Battery *battery); |
|
void unmapDevice(Solid::StorageAccess *storageaccess); |
|
|
|
private: |
|
QMap<Solid::DeviceInterface::Type, DeviceSignalMapper *> signalmap; |
|
QObject *user; |
|
};
|
|
|