Solid
Go to the documentation of this file.
24 #if !defined (Q_WS_WIN) && !defined (Q_OS_MAC)
25 #include <config-solid.h>
28 #include "backends/fakehw/fakemanager.h"
30 #if defined (Q_OS_MAC)
31 #include "backends/iokit/iokitmanager.h"
32 #elif defined (Q_OS_UNIX)
33 #include "backends/hal/halmanager.h"
34 #if defined (WITH_SOLID_UDISKS2)
35 #include "backends/udisks2/udisksmanager.h"
37 #include "backends/udisks/udisksmanager.h"
39 #include "backends/upower/upowermanager.h"
41 #if defined (HUPNP_FOUND)
42 #include "backends/upnp/upnpdevicemanager.h"
45 #if defined (UDEV_FOUND)
46 #include "backends/udev/udevmanager.h"
49 #include "backends/fstab/fstabmanager.h"
51 #elif defined (Q_WS_WIN) && !defined(_WIN32_WCE)
52 #include "backends/win/windevicemanager.h"
54 #include "backends/wmi/wmimanager.h"
65 qDeleteAll(m_backends);
70 QString solidFakeXml(QString::fromLocal8Bit(qgetenv(
"SOLID_FAKEHW")));
72 if (!solidFakeXml.isEmpty()) {
73 m_backends <<
new Solid::Backends::Fake::FakeManager(0, solidFakeXml);
75 # if defined(Q_OS_MAC)
76 m_backends <<
new Solid::Backends::IOKit::IOKitManager(0);
78 # elif defined(Q_WS_WIN) && defined(WITH_SOLID_WMI) && !defined(_WIN32_WCE)
79 m_backends <<
new Solid::Backends::Wmi::WmiManager(0);
80 # elif defined(Q_WS_WIN) && !defined(_WIN32_WCE)
81 m_backends <<
new Solid::Backends::Win::WinDeviceManager(0);
82 # elif defined(Q_OS_UNIX) && !defined(Q_OS_LINUX)
83 m_backends <<
new Solid::Backends::Hal::HalManager(0);
85 # elif defined(Q_OS_LINUX)
86 bool solidHalLegacyEnabled
87 = QString::fromLocal8Bit(qgetenv(
"SOLID_HAL_LEGACY")).toInt()==1;
88 if (solidHalLegacyEnabled) {
89 m_backends <<
new Solid::Backends::Hal::HalManager(0);
91 # if defined(UDEV_FOUND)
92 m_backends <<
new Solid::Backends::UDev::UDevManager(0);
94 # if defined(WITH_SOLID_UDISKS2)
95 m_backends <<
new Solid::Backends::UDisks2::Manager(0)
97 m_backends <<
new Solid::Backends::UDisks::UDisksManager(0)
99 <<
new Solid::Backends::UPower::UPowerManager(0)
100 <<
new Solid::Backends::Fstab::FstabManager(0);
104 # if defined (HUPNP_FOUND)
105 m_backends <<
new Solid::Backends::UPnP::UPnPDeviceManager(0);
QList< QObject * > managerBackends() const
virtual ~ManagerBasePrivate()
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:47 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.