File indexing completed on 2024-05-12 04:01:43

0001 /*
0002     SPDX-FileCopyrightText: 2009 Harald Fernengel <harry@kdevelop.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #ifndef SOLID_BACKENDS_IOKIT_IOKITMANAGER_H
0008 #define SOLID_BACKENDS_IOKIT_IOKITMANAGER_H
0009 
0010 #include <solid/deviceinterface.h>
0011 #include <solid/devices/ifaces/devicemanager.h>
0012 
0013 #include <QStringList>
0014 
0015 namespace Solid
0016 {
0017 namespace Backends
0018 {
0019 namespace IOKit
0020 {
0021 class IOKitManagerPrivate;
0022 
0023 class IOKitManager : public Solid::Ifaces::DeviceManager
0024 {
0025     Q_OBJECT
0026 
0027 public:
0028     IOKitManager(QObject *parent);
0029     virtual ~IOKitManager();
0030 
0031     virtual QString udiPrefix() const;
0032     virtual QSet<Solid::DeviceInterface::Type> supportedInterfaces() const;
0033 
0034     virtual QStringList allDevices();
0035     virtual QStringList devicesFromQuery(const QString &parentUdi, Solid::DeviceInterface::Type type);
0036     virtual QObject *createDevice(const QString &udi);
0037 
0038 private:
0039     IOKitManagerPrivate *d;
0040 };
0041 }
0042 }
0043 }
0044 
0045 #endif // SOLID_BACKENDS_IOKIT_IOKITMANAGER_H