Revert 34232018eb. Fixes #430.
[lxde/liblxqt.git] / lxqtscreensaver.h
CommitLineData
4ef6cee9 1/* BEGIN_COMMON_COPYRIGHT_HEADER
c4af778e 2 * (c)LGPL2+
4ef6cee9 3 *
b9223fe7 4 * LXQt - a lightweight, Qt based, desktop toolset
4ef6cee9 5 * http://razor-qt.org
6 *
7 * Copyright: 2010-2011 Razor team
8 * Authors:
9 * Petr Vanek <petr@scribus.info>
10 *
11 * This program or library is free software; you can redistribute it
12 * and/or modify it under the terms of the GNU Lesser General Public
13 * License as published by the Free Software Foundation; either
c4af778e 14 * version 2.1 of the License, or (at your option) any later version.
4ef6cee9 15 *
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
20
21 * You should have received a copy of the GNU Lesser General
22 * Public License along with this library; if not, write to the
23 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 * Boston, MA 02110-1301 USA
25 *
26 * END_COMMON_COPYRIGHT_HEADER */
27
28#ifndef SCREENSAVER_H
29#define SCREENSAVER_H
30
e6389bfc
HJYP
31#include <QProcess>
32#include <QObject>
f9cba1ba 33#include "lxqtglobals.h"
e6389bfc 34#include <QAction>
afd3b116 35
4ef6cee9 36class QProcess;
37
d9dcfbad
AS
38namespace LxQt
39{
4ef6cee9 40
f9cba1ba 41class LXQT_API ScreenSaver : public QObject
4ef6cee9 42{
43 Q_OBJECT
44
45public:
46 ScreenSaver(QObject * parent=0);
47
48 QList<QAction*> availableActions();
49
50signals:
51 void activated();
52
53public slots:
54 void lockScreen();
55
56private:
57 QProcess * m_xdgProcess;
58
59private slots:
60 void xdgProcess_finished(int err, QProcess::ExitStatus status);
61
62};
63
d9dcfbad 64} // namespace LxQt
4ef6cee9 65#endif
66