Settings: unify duplicated code
[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 *
cd10d270
LP
11 * Copyright (c) 2016 Luís Pereira <luis.artur.pereira@gmail.com>
12 *
4ef6cee9 13 * This program or library is free software; you can redistribute it
14 * and/or modify it under the terms of the GNU Lesser General Public
15 * License as published by the Free Software Foundation; either
c4af778e 16 * version 2.1 of the License, or (at your option) any later version.
4ef6cee9 17 *
18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Lesser General Public License for more details.
22
23 * You should have received a copy of the GNU Lesser General
24 * Public License along with this library; if not, write to the
25 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
26 * Boston, MA 02110-1301 USA
27 *
28 * END_COMMON_COPYRIGHT_HEADER */
29
30#ifndef SCREENSAVER_H
31#define SCREENSAVER_H
32
f9cba1ba 33#include "lxqtglobals.h"
fe846f1b 34#include <QObject>
e6389bfc 35#include <QAction>
afd3b116 36
f05ba5af 37namespace LXQt
d9dcfbad 38{
4ef6cee9 39
fc185531
LP
40class ScreenSaverPrivate;
41
f9cba1ba 42class LXQT_API ScreenSaver : public QObject
4ef6cee9 43{
44 Q_OBJECT
fc185531
LP
45 Q_DECLARE_PRIVATE(ScreenSaver)
46 Q_DISABLE_COPY(ScreenSaver)
4ef6cee9 47
48public:
49 ScreenSaver(QObject * parent=0);
fc185531 50 ~ScreenSaver();
4ef6cee9 51
52 QList<QAction*> availableActions();
53
54signals:
55 void activated();
63cf48aa 56 void done();
4ef6cee9 57public slots:
58 void lockScreen();
59
60private:
fc185531 61 ScreenSaverPrivate* const d_ptr;
4ef6cee9 62
fc185531 63 Q_PRIVATE_SLOT(d_func(), void _l_xdgProcess_finished(int, QProcess::ExitStatus))
4ef6cee9 64};
65
f05ba5af 66} // namespace LXQt
4ef6cee9 67#endif
68