Solid

imobilemanager.h
1/*
2 SPDX-FileCopyrightText: 2020 MBition GmbH
3 SPDX-FileContributor: Kai Uwe Broulik <kai_uwe.broulik@mbition.io>
4 SPDX-FileCopyrightText: 2023 Harald Sitter <sitter@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7*/
8
9#ifndef SOLID_BACKENDS_IMOBILE_IMOBILEMANAGER_H
10#define SOLID_BACKENDS_IMOBILE_IMOBILEMANAGER_H
11
12#include <solid/devices/ifaces/devicemanager.h>
13
14#include <libimobiledevice/libimobiledevice.h>
15
17
18namespace Solid
19{
20namespace Backends
21{
22namespace IMobile
23{
25{
27
28public:
29 explicit Manager(QObject *parent);
30 ~Manager() override;
31
32 QObject *createDevice(const QString &udi) override;
33 QStringList devicesFromQuery(const QString &parentUdi, Solid::DeviceInterface::Type type) override;
34 QStringList allDevices() override;
35 QSet<Solid::DeviceInterface::Type> supportedInterfaces() const override;
36 QString udiPrefix() const override;
37
38 void onDeviceEvent(const idevice_event_t *event);
39
40private:
41 void spinUp();
42 bool m_spunUp = false;
43 QStringList m_deviceUdis;
44 std::unique_ptr<QFileSystemWatcher> m_watcher;
45};
46
47} // namespace IMobile
48} // namespace Backends
49} // namespace Solid
50
51#endif // SOLID_BACKENDS_IMOBILE_IMOBILEMANAGER_H
Type
This enum type defines the type of device interface that a Device can have.
This class specifies the interface a backend will have to implement in order to be used in the system...
The single responsibility of this class is to create arguments valid for logind Inhibit call.
Definition fakebattery.h:16
Q_OBJECTQ_OBJECT
virtual bool event(QEvent *e)
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 11:53:07 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.