Solid

abstractacpluggedjob.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 ABSTRACT_AC_PLUGGED_JOB_H
8#define ABSTRACT_AC_PLUGGED_JOB_H
9
10#include <solid/job.h>
11
12namespace Solid
13{
14class AbstractAcPluggedJob : public Job
15{
17public:
18 explicit AbstractAcPluggedJob(QObject *parent = nullptr)
19 : Job(parent)
20 {
21 }
22 virtual ~AbstractAcPluggedJob()
23 {
24 }
25 virtual bool isPlugged() const = 0;
26};
27}
28
29#endif // ABSTRACT_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
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.