Solid

dummypowernotifier.cpp
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#include "dummypowernotifier.h"
8
9using namespace Solid;
10DummyPowerNotifier::DummyPowerNotifier(QObject *parent)
11 : PowerNotifier(parent)
12{
13 QMetaObject::invokeMethod(this, "emitEverythingChanged", Qt::QueuedConnection);
14}
15
16void DummyPowerNotifier::emitEverythingChanged()
17{
18 Q_EMIT acPluggedChanged(true);
19}
20
21#include "moc_dummypowernotifier.cpp"
The single responsibility of this class is to create arguments valid for logind Inhibit call.
Definition fakebattery.h:16
bool invokeMethod(QObject *context, Functor &&function, FunctorReturnType *ret)
Q_EMITQ_EMIT
QueuedConnection
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.