not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / plasma / dataengines / soliddevice / devicesignalmapmanager.h
blob5762a1fbe829abbcafe66cfbe8c2a64c74fe01d8
1 /*
2 * Copyright (C) 2007 Christopher Blauvelt <cblauvelt@gmail.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Library General Public License version 2 as
6 * published by the Free Software Foundation
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details
13 * You should have received a copy of the GNU Library General Public
14 * License along with this program; if not, write to the
15 * Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 #ifndef DEVICE_SIGNALMAP_MANAGER_H
20 #define DEVICE_SIGNALMAP_MANAGER_H
22 #include <KDebug>
24 #include "devicesignalmapper.h"
26 class DeviceSignalMapManager : public QObject
28 Q_OBJECT
30 public:
31 DeviceSignalMapManager(QObject *parent=0);
32 ~DeviceSignalMapManager();
34 void mapDevice(Solid::AcAdapter *ac, const QString &udi);
35 void mapDevice(Solid::Button *button, const QString &udi);
36 void mapDevice(Solid::Battery *battery, const QString &udi);
37 void mapDevice(Solid::StorageAccess *storageaccess, const QString &udi);
39 void unmapDevice(Solid::AcAdapter *ac);
40 void unmapDevice(Solid::Button *button);
41 void unmapDevice(Solid::Battery *battery);
42 void unmapDevice(Solid::StorageAccess *storageaccess);
44 private:
45 QMap<Solid::DeviceInterface::Type, DeviceSignalMapper*> signalmap;
46 QObject *user;
49 #endif