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