19 #ifndef MPRIS_TRACK_LIST_H_
20 #define MPRIS_TRACK_LIST_H_
22 #include <core/dbus/macros.h>
24 #include <core/dbus/types/any.h>
25 #include <core/dbus/types/object_path.h>
26 #include <core/dbus/types/variant.h>
28 #include <boost/utility/identity_type.hpp>
40 static const std::string&
name()
42 static const std::string s{
"core.ubuntu.media.Service.Player.TrackList"};
46 DBUS_CPP_METHOD_WITH_TIMEOUT_DEF(GetTracksMetadata,
TrackList, 1000)
47 DBUS_CPP_METHOD_WITH_TIMEOUT_DEF(AddTrack,
TrackList, 1000)
48 DBUS_CPP_METHOD_WITH_TIMEOUT_DEF(RemoveTrack, TrackList, 1000)
49 DBUS_CPP_METHOD_WITH_TIMEOUT_DEF(GoTo, TrackList, 1000)
57 BOOST_IDENTITY_TYPE((std::tuple<std::vector<dbus::types::ObjectPath>, dbus::types::ObjectPath>))
64 BOOST_IDENTITY_TYPE((std::tuple<std::map<std::string, dbus::types::Variant>, dbus::types::ObjectPath>))
71 dbus::types::ObjectPath
78 BOOST_IDENTITY_TYPE((
std::tuple<
std::map<
std::
string,
dbus::types::Variant>,
dbus::types::ObjectPath>))
84 DBUS_CPP_READABLE_PROPERTY_DEF(Tracks, TrackList, std::vector<std::string>)
85 DBUS_CPP_READABLE_PROPERTY_DEF(CanEditTracks, TrackList,
bool)
90 #endif // MPRIS_TRACK_LIST_H_
static const std::string & name()