Solid

acpluggedjob.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 SOLID_AC_PLUGGED_JOB_H
8#define SOLID_AC_PLUGGED_JOB_H
9
10#include <Solid/Job>
11
12#include "solid_export.h"
13
14namespace Solid
15{
16class AcPluggedJobPrivate;
17class SOLID_EXPORT AcPluggedJob : public Job
18{
19 Q_OBJECT
20 Q_PROPERTY(bool plugged READ isPlugged NOTIFY result)
21
22public:
23 explicit AcPluggedJob(QObject *parent = nullptr);
24
25 bool isPlugged() const;
26
27private Q_SLOTS:
28 void doStart() override;
29
30 /**
31 * We have to re-declare the signal because
32 * if not, Q_PROPERTY wouldn't work.
33 */
34Q_SIGNALS:
35 void result(Solid::Job *);
36
37private:
38 Q_DECLARE_PRIVATE(AcPluggedJob)
39};
40} // Solid namespace
41#endif // SOLID_AC_PLUGGED_JOB_H
This class represents an asynchronous job performed by Solid, it is usually not used directly but ins...
Definition job.h:37
The single responsibility of this class is to create arguments valid for logind Inhibit call.
Definition fakebattery.h:16
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.