Plasma5Support

powermanagementjob.h
1/*
2 SPDX-FileCopyrightText: 2011 Sebastian Kügler <sebas@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-only
5*/
6
7#pragma once
8
9// plasma
10#include <Plasma5Support/ServiceJob>
11
14
15class PowerManagementJob : public Plasma5Support::ServiceJob
16{
18
19public:
20 PowerManagementJob(const QString &operation, QMap<QString, QVariant> &parameters, QObject *parent = nullptr);
21 ~PowerManagementJob() override;
22
23protected:
24 void start() override;
25
26private:
27 QDBusPendingCall setPowerProfile(const QString &value);
28 SessionManagement *m_session;
29 inline static uint m_sleepInhibitionCookie = -1;
30 inline static uint m_lockInhibitionCookie = -1;
31};
This class provides jobs for use with Plasma5Support::Service.
Definition servicejob.h:39
QVariantMap parameters() const
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.