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 */
77
78#endif // LOMIRI_MEDIAHUB_DBUS_CONSTANTS_H