Solid

udisksgenericinterface.h
1/*
2 SPDX-FileCopyrightText: 2009 Pino Toscano <pino@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef SOLID_BACKENDS_UDISKS_GENERICINTERFACE_H
8#define SOLID_BACKENDS_UDISKS_GENERICINTERFACE_H
9
10#include "udisksdeviceinterface.h"
11#include <solid/devices/ifaces/genericinterface.h>
12#include <solid/genericinterface.h>
13
14namespace Solid
15{
16namespace Backends
17{
18namespace UDisks2
19{
20class Device;
21
22class GenericInterface : public DeviceInterface, virtual public Solid::Ifaces::GenericInterface
23{
26
27public:
28 GenericInterface(Device *device);
29 ~GenericInterface() override;
30
31 QVariant property(const QString &key) const override;
32 QVariantMap allProperties() const override;
33 bool propertyExists(const QString &key) const override;
34
36 void propertyChanged(const QMap<QString, int> &changes) override;
37 void conditionRaised(const QString &condition, const QString &reason) override;
38};
39}
40}
41}
42
43#endif // SOLID_BACKENDS_UDISKS_GENERICINTERFACE_H
Generic interface to deal with a device.
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
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.