Changeset View
Changeset View
Standalone View
Standalone View
lib/mpris2/mpris2service.h
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | Gwenview: an image viewer | ||||
3 | Copyright 2018 Friedrich W. H. Kossebau <kossebau@kde.org> | ||||
4 | | ||||
5 | This program is free software; you can redistribute it and/or | ||||
6 | modify it under the terms of the GNU General Public License | ||||
7 | as published by the Free Software Foundation; either version 2 | ||||
8 | of the License, or (at your option) any later version. | ||||
9 | | ||||
10 | This program is distributed in the hope that it will be useful, | ||||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
13 | GNU General Public License for more details. | ||||
14 | | ||||
15 | You should have received a copy of the GNU General Public License | ||||
16 | along with this program; if not, write to the Free Software | ||||
17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
18 | */ | ||||
19 | | ||||
20 | #ifndef MPRIS2SERVICE_H | ||||
21 | #define MPRIS2SERVICE_H | ||||
22 | | ||||
23 | #include <gwenviewlib_export.h> | ||||
24 | // Qt | ||||
25 | #include <QObject> | ||||
26 | | ||||
27 | class QAction; | ||||
28 | | ||||
29 | namespace Gwenview | ||||
30 | { | ||||
31 | class SlideShow; | ||||
32 | class SortedDirModel; | ||||
33 | class ContextManager; | ||||
34 | | ||||
35 | class GWENVIEWLIB_EXPORT Mpris2Service : public QObject | ||||
36 | { | ||||
37 | Q_OBJECT | ||||
38 | | ||||
39 | public: | ||||
40 | Mpris2Service(SlideShow* slideShow, SortedDirModel* dirModel, ContextManager* contextManager, | ||||
41 | QAction* toggleSlideShowAction, | ||||
42 | QAction* previousAction, QAction* nextAction, QObject* parent); | ||||
43 | ~Mpris2Service() override; | ||||
44 | }; | ||||
45 | | ||||
46 | } | ||||
47 | | ||||
48 | #endif |