Solid

imobiledevice.h
1/*
2 SPDX-FileCopyrightText: 2020 MBition GmbH
3 SPDX-FileContributor: Kai Uwe Broulik <kai_uwe.broulik@mbition.io>
4
5 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6*/
7
8#ifndef SOLID_BACKENDS_IMOBILE_IMOBILEDEVICE_H
9#define SOLID_BACKENDS_IMOBILE_IMOBILEDEVICE_H
10
11#include <QStringList>
12#include <solid/devices/ifaces/device.h>
13
14namespace Solid
15{
16namespace Backends
17{
18namespace IMobile
19{
20class IMobileDevice : public Solid::Ifaces::Device
21{
23
24public:
25 explicit IMobileDevice(const QString &udi);
26 ~IMobileDevice() override;
27
28 QString udi() const override;
29 QString parentUdi() const override;
30
31 QString vendor() const override;
32 QString product() const override;
33 QString icon() const override;
34 QStringList emblems() const override;
35 QString description() const override;
36
37 bool queryDeviceInterface(const Solid::DeviceInterface::Type &type) const override;
38
39 QObject *createDeviceInterface(const Solid::DeviceInterface::Type &type) override;
40
41private:
42 QString m_udi;
43
44 QString m_name;
45 QString m_deviceClass;
46};
47
48} // namespace IMobile
49} // namespace Backends
50} // namespace Solid
51
52#endif // SOLID_BACKENDS_IMOBILE_IMOBILEDEVICE_H
Type
This enum type defines the type of device interface that a Device can have.
This class specifies the interface a device will have to comply to 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
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 11:56:28 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.