7#include "managerbase_p.h"
11#include <config-backends.h>
15#ifdef BUILD_DEVICE_BACKEND_fakehw
16#include "backends/fakehw/fakemanager.h"
18#ifdef BUILD_DEVICE_BACKEND_fstab
19#include "backends/fstab/fstabmanager.h"
21#ifdef BUILD_DEVICE_BACKEND_imobile
22#include "backends/imobile/imobilemanager.h"
24#ifdef BUILD_DEVICE_BACKEND_iokit
25#include "backends/iokit/iokitmanager.h"
27#ifdef BUILD_DEVICE_BACKEND_udev
28#include "backends/udev/udevmanager.h"
30#ifdef BUILD_DEVICE_BACKEND_udisks2
31#include "backends/udisks2/udisksmanager.h"
33#ifdef BUILD_DEVICE_BACKEND_upower
34#include "backends/upower/upowermanager.h"
36#ifdef BUILD_DEVICE_BACKEND_win
37#include "backends/win/windevicemanager.h"
40Solid::ManagerBasePrivate::ManagerBasePrivate()
44Solid::ManagerBasePrivate::~ManagerBasePrivate()
46 qDeleteAll(m_backends);
51void Solid::ManagerBasePrivate::loadBackends()
55 if (!solidFakeXml.isEmpty()) {
56#ifdef BUILD_DEVICE_BACKEND_fakehw
60#ifdef BUILD_DEVICE_BACKEND_fstab
61 m_backends <<
new Solid::Backends::Fstab::FstabManager(
nullptr);
63#ifdef BUILD_DEVICE_BACKEND_imobile
64 m_backends <<
new Solid::Backends::IMobile::Manager(
nullptr);
66#ifdef BUILD_DEVICE_BACKEND_iokit
67 m_backends <<
new Solid::Backends::IOKit::IOKitManager(
nullptr);
69#ifdef BUILD_DEVICE_BACKEND_udev
70 m_backends <<
new Solid::Backends::UDev::UDevManager(
nullptr);
72#ifdef BUILD_DEVICE_BACKEND_udisks2
73 if (!qEnvironmentVariableIsSet(
"SOLID_DISABLE_UDISKS2")) {
74 m_backends <<
new Solid::Backends::UDisks2::Manager(
nullptr);
77#ifdef BUILD_DEVICE_BACKEND_upower
78 if (!qEnvironmentVariableIsSet(
"SOLID_DISABLE_UPOWER")) {
79 m_backends <<
new Solid::Backends::UPower::UPowerManager(
nullptr);
82#ifdef BUILD_DEVICE_BACKEND_win
83 m_backends <<
new Solid::Backends::Win::WinDeviceManager(
nullptr);
a Fake manager that read a device list from a XML file.
QString fromLocal8Bit(QByteArrayView str)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:22 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.