Solid

upowerdbusinterface.h
1/*
2 SPDX-FileCopyrightText: 2023 Stefan BrĂ¼ns <stefan.bruens@rwth-aachen.de>
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_UPOWER_DBUSINTERFACE_H
8#define SOLID_BACKENDS_UPOWER_DBUSINTERFACE_H
9
10#include <QDBusConnectionInterface>
11#include <QDBusObjectPath>
12#include <QDBusPendingReply>
13#include <QList>
14#include <QObject>
15
16namespace Solid
17{
18namespace Backends
19{
20namespace UPower
21{
22/*
23 * Proxy class for interface org.freedesktop.UPower
24 */
25class DBusInterface: public QDBusAbstractInterface
26{
28
29public:
30 DBusInterface(const QDBusConnection &connection, QObject *parent = nullptr);
31
32 ~DBusInterface();
33
34public Q_SLOTS:
36
38 void DeviceAdded(const QDBusObjectPath &device);
39 void DeviceRemoved(const QDBusObjectPath &device);
40};
41
42}
43}
44}
45#endif // SOLID_BACKENDS_UPOWER_DBUSINTERFACE_H
The single responsibility of this class is to create arguments valid for logind Inhibit call.
Definition fakebattery.h:16
QDBusConnection connection() const const
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 3 2024 11:47:59 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.