2 * Copyright (C) 2010-2011 David Edmundson.
3 * Copyright (C) 2010-2011 Robert Ancell
4 * Author: David Edmundson <kde@davidedmundson.co.uk>
6 * This library is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Lesser General Public License as published by the Free
8 * Software Foundation; either version 2 or version 3 of the License.
9 * See http://www.gnu.org/copyleft/lgpl.html the full text of the license.
12 #ifndef QLIGHTDM_POWER_H
13 #define QLIGHTDM_POWER_H
19 class PowerInterface : public QObject
23 Q_PROPERTY(bool canSuspend READ canSuspend() CONSTANT)
24 Q_PROPERTY(bool canHibernate READ canHibernate() CONSTANT)
25 Q_PROPERTY(bool canShutdown READ canShutdown() CONSTANT)
26 Q_PROPERTY(bool canRestart READ canRestart() CONSTANT)
28 PowerInterface(QObject *parent=0);
29 virtual ~PowerInterface();
43 class PowerInterfacePrivate;
44 PowerInterfacePrivate * const d;
49 #endif // QLIGHTDM_POWER_H