19 #ifndef MPRIS_PLAYER_H_
20 #define MPRIS_PLAYER_H_
27 #include <core/dbus/types/any.h>
28 #include <core/dbus/types/object_path.h>
29 #include <core/dbus/types/variant.h>
31 #include <boost/utility/identity_type.hpp>
37 namespace dbus = core::dbus;
43 static const std::string&
name()
45 static const std::string s{
"core.ubuntu.media.Service.Player"};
51 METHOD(Pause, Player, std::chrono::seconds(1))
52 METHOD(PlayPause, Player, std::chrono::seconds(1))
53 METHOD(Stop, Player, std::chrono::seconds(1))
54 METHOD(Play, Player, std::chrono::seconds(1))
55 METHOD(Seek, Player, std::chrono::seconds(1))
56 METHOD(SetPosition, Player, std::chrono::seconds(1))
57 METHOD(CreateVideoSink, Player, std::chrono::seconds(1))
58 METHOD(Key, Player, std::chrono::seconds(1))
59 METHOD(OpenUri, Player, std::chrono::seconds(1))
63 SIGNAL(Seeked, Player, uint64_t)
64 SIGNAL(EndOfStream, Player,
void)
93 #endif // MPRIS_PLAYER_H_
static const std::string & name()
#define WRITABLE_PROPERTY(Name, Itf, Type)
#define READABLE_PROPERTY(Name, Itf, Type)
#define METHOD(Name, Itf, Timeout)
#define SIGNAL(Name, Itf, ArgType)