Solid
13#include <ifaces/device.h>
14#include <solid/deviceinterface.h>
15#include <solid/solidnamespace.h>
17#include <QDBusObjectPath>
28class Device :
public Solid::Ifaces::Device
32 Device(
const QString &udi);
37 QString description()
const override;
38 QStringList emblems()
const override;
39 QString icon()
const override;
40 QString product()
const override;
41 QString vendor()
const override;
42 QString udi()
const override;
43 QString parentUdi()
const override;
45 QVariant prop(
const QString &key)
const;
46 bool propertyExists(
const QString &key)
const;
47 QVariantMap allProperties()
const;
48 void invalidateCache();
50 bool hasInterface(
const QString &name)
const;
51 QStringList interfaces()
const;
53 QString errorToString(
const QString &error)
const;
54 Solid::ErrorType errorToSolidError(
const QString &error)
const;
57 bool isPartition()
const;
58 bool isPartitionTable()
const;
59 bool isStorageVolume()
const;
60 bool isStorageAccess()
const;
62 bool isOpticalDrive()
const;
63 bool isOpticalDisc()
const;
64 bool mightBeOpticalDisc()
const;
65 bool isMounted()
const;
66 bool isEncryptedContainer()
const;
67 bool isEncryptedCleartext()
const;
72 QString drivePath()
const;
76 void propertyChanged(
const QMap<QString, int> &changes);
79 QPointer<DeviceBackend> m_backend;
82 QString loopDescription()
const;
83 QString storageDescription()
const;
84 QString volumeDescription()
const;
Type
This enum type defines the type of device interface that a Device can have.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:47:11 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.