Music Hub  ..
A session-wide music playback service
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 {
67 };
68 
69 enum Backend
70 {
74 };
75 
76 } // namespace
77 
78 #endif // LOMIRI_MEDIAHUB_DBUS_CONSTANTS_H
DBusConstants::NetworkError
@ NetworkError
Definition: dbus_constants.h:64
DBusConstants::Backend
Backend
Definition: dbus_constants.h:69
DBusConstants::FormatError
@ FormatError
Definition: dbus_constants.h:63
pkg_check_modules
pkg_check_modules(PC_GSTREAMER_1_0 REQUIRED gstreamer-1.0) pkg_check_modules(PC_GSTREAMER_PBUTILS_1_0 REQUIRED gstreamer-pbutils-1.0) pkg_check_modules(PC_PULSE_AUDIO REQUIRED libpulse libpulse-mainloop-glib) pkg_check_modules(APPARMOR REQUIRED libapparmor) include_directories($
Definition: CMakeLists.txt:1
DBusConstants::AccessDeniedError
@ AccessDeniedError
Definition: dbus_constants.h:65
gstreamer
Definition: bus.h:34
project
project(MediaHubQt) set(CLIENT_LIB MediaHub) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_CXX_VISIBILITY_PRESET hidden) set(CMAKE_SHARED_LINKER_FLAGS "-Wl
DBusConstants::None
@ None
Definition: dbus_constants.h:71
set
no undefined set(PUBLIC_HEADERS Error error.h Player player.h Track track.h TrackList track_list.h VideoSink video_sink.h global.h) add_library($
Definition: CMakeLists.txt:10
DBusConstants
Definition: dbus_constants.h:57
DBusConstants::Hybris
@ Hybris
Definition: dbus_constants.h:72
DBusConstants::Mir
@ Mir
Definition: dbus_constants.h:73
DBusConstants::Error
Error
Definition: dbus_constants.h:59
DBusConstants::ServiceMissingError
@ ServiceMissingError
Definition: dbus_constants.h:66
DBusConstants::NoError
@ NoError
Definition: dbus_constants.h:61
DBusConstants::ResourceError
@ ResourceError
Definition: dbus_constants.h:62
mpris
Definition: media_player2.cpp:37