Solid

fdacpluggedjob.h
1/*
2 SPDX-FileCopyrightText: 2014 Alejandro Fiestas Olivares <afiestas@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 FD_AC_PLUGGED_JOB_H
8#define FD_AC_PLUGGED_JOB_H
9
10#include "backends/abstractacpluggedjob.h"
11
12class QDBusError;
13class QDBusMessage;
15namespace Solid
16{
17class FDAcPluggedJob : public AbstractAcPluggedJob
18{
20public:
21 explicit FDAcPluggedJob(QObject *parent = nullptr);
22 bool isPlugged() const override;
23
24private Q_SLOTS:
25 void doStart() override;
26
27 void slotDBusReply(const QDBusMessage &msg);
28 void slotDBusError(const QDBusError &error);
29
30private:
31 bool m_isPlugged;
32};
33}
34
35#endif // FD_AC_PLUGGED_JOB_H
The single responsibility of this class is to create arguments valid for logind Inhibit call.
Definition fakebattery.h:16
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:17:12 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.