Music Hub
..
A session-wide music playback service
Loading...
Searching...
No Matches
dbus_constants.h
Go to the documentation of this file.
1
/*
2
* Copyright © 2021-2022 UBports Foundation.
3
*
4
* Contact: Alberto Mardegan <mardy@users.sourceforge.net>
5
*
6
* This program is free software: you can redistribute it and/or modify it
7
* under the terms of the GNU Lesser General Public License version 3,
8
* as published by the Free Software Foundation.
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 Lesser General Public License for more details.
14
*
15
* You should have received a copy of the GNU Lesser General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#ifndef LOMIRI_MEDIAHUB_DBUS_CONSTANTS_H
20
#define LOMIRI_MEDIAHUB_DBUS_CONSTANTS_H
21
22
#define MEDIAHUB_SERVICE_NAME "com.lomiri.MediaHub.Service"
23
#define MEDIAHUB_SERVICE_PATH "/com/lomiri/MediaHub/Service"
24
#define MEDIAHUB_SERVICE_INTERFACE "com.lomiri.MediaHub.Service"
25
26
#define MPRIS_SERVICE_NAME "org.mpris.MediaPlayer2.MediaHub"
27
#define MPRIS_SERVICE_PATH "/org/mpris/MediaPlayer2"
28
#define MPRIS_PLAYER_PATH "/org/mpris/MediaPlayer2"
29
#define MPRIS_PLAYER_INTERFACE "org.mpris.MediaPlayer2.Player"
30
#define MPRIS_TRACKLIST_INTERFACE "org.mpris.MediaPlayer2.TrackList"
31
32
#define MPRIS_ERROR_PREFIX "mpris.Player.Error."
33
#define MPRIS_ERROR_CREATING_SESSION "CreatingSession"
34
#define MPRIS_ERROR_DESTROYING_SESSION "DestroyingSession"
35
#define MPRIS_ERROR_INSUFFICIENT_APPARMOR_PERMISSIONS \
36
"InsufficientAppArmorPermissions"
37
#define MPRIS_ERROR_OOP_STREAMING_NOT_SUPPORTED \
38
"OutOfProcessBufferStreamingNotSupported"
39
#define MPRIS_ERROR_URI_NOT_FOUND "UriNotFound"
40
41
#define FDO_PROPERTIES_INTERFACE "org.freedesktop.DBus.Properties"
42
43
#define FDO_ERROR_PREFIX "org.freedesktop.DBus.Error."
44
#define FDO_ERROR_ACCESS_DENIED "AccessDenied"
45
#define FDO_ERROR_DISCONNECTED "Disconnected"
46
#define FDO_ERROR_NAME_HAS_NO_OWNER "NameHasNoOwner"
47
#define FDO_ERROR_SERVICE_UNKNOWN "ServiceUnknown"
48
#define FDO_ERROR_TIMEOUT "Timeout"
49
#define FDO_ERROR_UNKNOWN_OBJECT "UnknownObject"
50
51
/*
52
* Error codes for the Player::Error() D-Bus signal (quint16)
53
*
54
* Keep in sync with core::lomiri::media::Player::Error defined in
55
* src/core/media/player.h
56
*/
57
namespace
DBusConstants
{
58
59
enum
Error
60
{
61
NoError
,
62
ResourceError
,
63
FormatError
,
64
NetworkError
,
65
AccessDeniedError
,
66
ServiceMissingError
,
67
};
68
69
enum
Backend
70
{
71
None
,
72
Hybris
,
73
Mir
74
};
75
76
}
// namespace
77
78
#endif
// LOMIRI_MEDIAHUB_DBUS_CONSTANTS_H
DBusConstants
Definition
dbus_constants.h:57
DBusConstants::Error
Error
Definition
dbus_constants.h:60
DBusConstants::NoError
@ NoError
Definition
dbus_constants.h:61
DBusConstants::FormatError
@ FormatError
Definition
dbus_constants.h:63
DBusConstants::AccessDeniedError
@ AccessDeniedError
Definition
dbus_constants.h:65
DBusConstants::NetworkError
@ NetworkError
Definition
dbus_constants.h:64
DBusConstants::ServiceMissingError
@ ServiceMissingError
Definition
dbus_constants.h:66
DBusConstants::ResourceError
@ ResourceError
Definition
dbus_constants.h:62
DBusConstants::Backend
Backend
Definition
dbus_constants.h:70
DBusConstants::Mir
@ Mir
Definition
dbus_constants.h:73
DBusConstants::Hybris
@ Hybris
Definition
dbus_constants.h:72
DBusConstants::None
@ None
Definition
dbus_constants.h:71
src
lib
MediaHub
dbus_constants.h
Generated on Mon Mar 16 2026 03:11:33 for Music Hub by
1.9.8