Remove redudant indenattion level in MPRIS XML
This commit is contained in:
parent
9a6e571154
commit
30c86523ff
|
@ -36,59 +36,59 @@ constexpr auto kPropertiesInterface = "org.freedesktop.DBus.Properties"_cs;
|
||||||
constexpr auto kSongType = AudioMsgId::Type::Song;
|
constexpr auto kSongType = AudioMsgId::Type::Song;
|
||||||
|
|
||||||
constexpr auto kIntrospectionXML = R"INTROSPECTION(<node>
|
constexpr auto kIntrospectionXML = R"INTROSPECTION(<node>
|
||||||
<interface name='org.mpris.MediaPlayer2'>
|
<interface name='org.mpris.MediaPlayer2'>
|
||||||
<method name='Raise'/>
|
<method name='Raise'/>
|
||||||
<method name='Quit'/>
|
<method name='Quit'/>
|
||||||
<property name='CanQuit' type='b' access='read'/>
|
<property name='CanQuit' type='b' access='read'/>
|
||||||
<property name='CanRaise' type='b' access='read'/>
|
<property name='CanRaise' type='b' access='read'/>
|
||||||
<property name='HasTrackList' type='b' access='read'/>
|
<property name='HasTrackList' type='b' access='read'/>
|
||||||
<property name='Identity' type='s' access='read'/>
|
<property name='Identity' type='s' access='read'/>
|
||||||
<property name='DesktopEntry' type='s' access='read'/>
|
<property name='DesktopEntry' type='s' access='read'/>
|
||||||
<property name='SupportedUriSchemes' type='as' access='read'/>
|
<property name='SupportedUriSchemes' type='as' access='read'/>
|
||||||
<property name='SupportedMimeTypes' type='as' access='read'/>
|
<property name='SupportedMimeTypes' type='as' access='read'/>
|
||||||
<property name='Fullscreen' type='b' access='readwrite'/>
|
<property name='Fullscreen' type='b' access='readwrite'/>
|
||||||
<property name='CanSetFullscreen' type='b' access='read'/>
|
<property name='CanSetFullscreen' type='b' access='read'/>
|
||||||
</interface>
|
</interface>
|
||||||
</node>)INTROSPECTION"_cs;
|
</node>)INTROSPECTION"_cs;
|
||||||
|
|
||||||
constexpr auto kPlayerIntrospectionXML = R"INTROSPECTION(<node>
|
constexpr auto kPlayerIntrospectionXML = R"INTROSPECTION(<node>
|
||||||
<interface name='org.mpris.MediaPlayer2.Player'>
|
<interface name='org.mpris.MediaPlayer2.Player'>
|
||||||
<method name='Next'/>
|
<method name='Next'/>
|
||||||
<method name='Previous'/>
|
<method name='Previous'/>
|
||||||
<method name='Pause'/>
|
<method name='Pause'/>
|
||||||
<method name='PlayPause'/>
|
<method name='PlayPause'/>
|
||||||
<method name='Stop'/>
|
<method name='Stop'/>
|
||||||
<method name='Play'/>
|
<method name='Play'/>
|
||||||
<method name='Seek'>
|
<method name='Seek'>
|
||||||
<arg direction='in' name='Offset' type='x'/>
|
<arg direction='in' name='Offset' type='x'/>
|
||||||
</method>
|
</method>
|
||||||
<method name='SetPosition'>
|
<method name='SetPosition'>
|
||||||
<arg direction='in' name='TrackId' type='o'/>
|
<arg direction='in' name='TrackId' type='o'/>
|
||||||
<arg direction='in' name='Position' type='x'/>
|
<arg direction='in' name='Position' type='x'/>
|
||||||
</method>
|
</method>
|
||||||
<method name='OpenUri'>
|
<method name='OpenUri'>
|
||||||
<arg direction='in' name='Uri' type='s'/>
|
<arg direction='in' name='Uri' type='s'/>
|
||||||
</method>
|
</method>
|
||||||
<signal name='Seeked'>
|
<signal name='Seeked'>
|
||||||
<arg name='Position' type='x'/>
|
<arg name='Position' type='x'/>
|
||||||
</signal>
|
</signal>
|
||||||
<property name='PlaybackStatus' type='s' access='read'/>
|
<property name='PlaybackStatus' type='s' access='read'/>
|
||||||
<property name='Rate' type='d' access='readwrite'/>
|
<property name='Rate' type='d' access='readwrite'/>
|
||||||
<property name='Metadata' type='a{sv}' access='read'>
|
<property name='Metadata' type='a{sv}' access='read'>
|
||||||
<annotation name="org.qtproject.QtDBus.QtTypeName" value="QVariantMap"/>
|
<annotation name="org.qtproject.QtDBus.QtTypeName" value="QVariantMap"/>
|
||||||
</property>
|
</property>
|
||||||
<property name='Volume' type='d' access='readwrite'/>
|
<property name='Volume' type='d' access='readwrite'/>
|
||||||
<property name='Position' type='x' access='read'/>
|
<property name='Position' type='x' access='read'/>
|
||||||
<property name='MinimumRate' type='d' access='read'/>
|
<property name='MinimumRate' type='d' access='read'/>
|
||||||
<property name='MaximumRate' type='d' access='read'/>
|
<property name='MaximumRate' type='d' access='read'/>
|
||||||
<property name='CanGoNext' type='b' access='read'/>
|
<property name='CanGoNext' type='b' access='read'/>
|
||||||
<property name='CanGoPrevious' type='b' access='read'/>
|
<property name='CanGoPrevious' type='b' access='read'/>
|
||||||
<property name='CanPlay' type='b' access='read'/>
|
<property name='CanPlay' type='b' access='read'/>
|
||||||
<property name='CanPause' type='b' access='read'/>
|
<property name='CanPause' type='b' access='read'/>
|
||||||
<property name='CanSeek' type='b' access='read'/>
|
<property name='CanSeek' type='b' access='read'/>
|
||||||
<property name='CanControl' type='b' access='read'/>
|
<property name='CanControl' type='b' access='read'/>
|
||||||
</interface>
|
</interface>
|
||||||
</node>)INTROSPECTION"_cs;
|
</node>)INTROSPECTION"_cs;
|
||||||
|
|
||||||
auto CreateMetadata(const Media::Player::TrackState &state) {
|
auto CreateMetadata(const Media::Player::TrackState &state) {
|
||||||
std::map<Glib::ustring, Glib::VariantBase> result;
|
std::map<Glib::ustring, Glib::VariantBase> result;
|
||||||
|
|
Loading…
Reference in New Issue