Sayonara Player
src
Components
DBus
DBusMediaKeysInterface.h
1
/* DBusMediaKeysInterface.h */
2
3
/* Copyright (C) 2011-2017 Lucio Carreras
4
*
5
* This file is part of sayonara player
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
#ifndef DBUSMEDIAKEYSINTERFACE_H
22
#define DBUSMEDIAKEYSINTERFACE_H
23
24
#include <QDBusPendingCallWatcher>
25
26
class
PlayManager
;
27
class
DBusMediaKeysInterface
:
28
public
QObject
29
{
30
Q_OBJECT
31
32
33
protected
:
34
QObject* _parent=
nullptr
;
35
PlayManager
* _play_manager=
nullptr
;
36
bool
_initialized;
37
38
39
public
:
40
explicit
DBusMediaKeysInterface
(QObject *parent=
nullptr
);
41
virtual
~
DBusMediaKeysInterface
();
42
43
44
protected
slots:
45
virtual
void
sl_media_key_pressed(
const
QString& app_name,
const
QString& key);
46
virtual
void
sl_register_finished(QDBusPendingCallWatcher*);
47
};
48
49
#endif // DBUSMEDIAKEYSINTERFACE_H
DBusMediaKeysInterface
Definition:
DBusMediaKeysInterface.h:27
PlayManager
Global handler for current playback state (Singleton)
Definition:
PlayManager.h:37
Generated on Fri May 5 2017 07:23:20 for Sayonara Player by
1.8.13