• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

Solid

  • solid
  • solid
powermanagement_p.h
Go to the documentation of this file.
1/*
2 Copyright 2006-2007 Kevin Ottens <ervin@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) version 3, or any
8 later version accepted by the membership of KDE e.V. (or its
9 successor approved by the membership of KDE e.V.), which shall
10 act as a proxy defined in Section 6 of version 3 of the license.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#ifndef SOLID_POWERMANAGEMENT_P_H
22#define SOLID_POWERMANAGEMENT_P_H
23
24#include "powermanagement.h"
25
26#include "inhibitinterface.h"
27#include "powermanagementinterface.h"
28#include "policyagentinterface.h"
29
30#include <QtDBus/QDBusServiceWatcher>
31
32namespace Solid
33{
34 class PowerManagementPrivate : public PowerManagement::Notifier
35 {
36 Q_OBJECT
37 public:
38 enum RequiredPolicy {
39 None = 0,
40 InterruptSession = 1,
41 ChangeProfile = 2,
42 ChangeScreenSettings = 4
43 };
44
45 PowerManagementPrivate();
46 ~PowerManagementPrivate();
47
48 public Q_SLOTS:
49 void slotCanSuspendChanged(bool newState);
50 void slotCanHibernateChanged(bool newState);
51 void slotCanHybridSuspendChanged(bool newState);
52 void slotPowerSaveStatusChanged(bool newState);
53 void slotServiceRegistered(const QString &serviceName);
54 void slotServiceUnregistered(const QString &serviceName);
55
56 public:
57 OrgFreedesktopPowerManagementInterface managerIface;
58 OrgKdeSolidPowerManagementPolicyAgentInterface policyAgentIface;
59 OrgFreedesktopPowerManagementInhibitInterface inhibitIface;
60 QDBusServiceWatcher serviceWatcher;
61
62 bool powerSaveStatus;
63 QSet<Solid::PowerManagement::SleepState> supportedSleepStates;
64 QHash<uint, uint> screensaverCookiesForPowerDevilCookies;
65 };
66}
67
68#endif
Solid::PowerManagementPrivate
Definition: powermanagement_p.h:35
Solid::PowerManagementPrivate::serviceWatcher
QDBusServiceWatcher serviceWatcher
Definition: powermanagement_p.h:60
Solid::PowerManagementPrivate::inhibitIface
OrgFreedesktopPowerManagementInhibitInterface inhibitIface
Definition: powermanagement_p.h:59
Solid::PowerManagementPrivate::slotCanHibernateChanged
void slotCanHibernateChanged(bool newState)
Definition: powermanagement.cpp:207
Solid::PowerManagementPrivate::slotServiceRegistered
void slotServiceRegistered(const QString &serviceName)
Definition: powermanagement.cpp:243
Solid::PowerManagementPrivate::powerSaveStatus
bool powerSaveStatus
Definition: powermanagement_p.h:62
Solid::PowerManagementPrivate::RequiredPolicy
RequiredPolicy
Definition: powermanagement_p.h:38
Solid::PowerManagementPrivate::None
@ None
Definition: powermanagement_p.h:39
Solid::PowerManagementPrivate::ChangeScreenSettings
@ ChangeScreenSettings
Definition: powermanagement_p.h:42
Solid::PowerManagementPrivate::InterruptSession
@ InterruptSession
Definition: powermanagement_p.h:40
Solid::PowerManagementPrivate::ChangeProfile
@ ChangeProfile
Definition: powermanagement_p.h:41
Solid::PowerManagementPrivate::screensaverCookiesForPowerDevilCookies
QHash< uint, uint > screensaverCookiesForPowerDevilCookies
Definition: powermanagement_p.h:64
Solid::PowerManagementPrivate::managerIface
OrgFreedesktopPowerManagementInterface managerIface
Definition: powermanagement_p.h:57
Solid::PowerManagementPrivate::slotServiceUnregistered
void slotServiceUnregistered(const QString &serviceName)
Definition: powermanagement.cpp:283
Solid::PowerManagementPrivate::slotCanHybridSuspendChanged
void slotCanHybridSuspendChanged(bool newState)
Definition: powermanagement.cpp:220
Solid::PowerManagementPrivate::slotCanSuspendChanged
void slotCanSuspendChanged(bool newState)
Definition: powermanagement.cpp:194
Solid::PowerManagementPrivate::supportedSleepStates
QSet< Solid::PowerManagement::SleepState > supportedSleepStates
Definition: powermanagement_p.h:63
Solid::PowerManagementPrivate::policyAgentIface
OrgKdeSolidPowerManagementPolicyAgentInterface policyAgentIface
Definition: powermanagement_p.h:58
Solid::PowerManagementPrivate::slotPowerSaveStatusChanged
void slotPowerSaveStatusChanged(bool newState)
Definition: powermanagement.cpp:233
Solid::PowerManagementPrivate::PowerManagementPrivate
PowerManagementPrivate()
Definition: powermanagement.cpp:31
Solid::PowerManagementPrivate::~PowerManagementPrivate
~PowerManagementPrivate()
Definition: powermanagement.cpp:70
Solid::PowerManagement::Notifier
Definition: powermanagement.h:132
Solid
Definition: acadapter.h:29
powermanagement.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Solid

Skip menu "Solid"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal