Interface
PhoshMprisDBusMediaPlayer2Player
Description [src]
interface Phosh.MprisDBusMediaPlayer2Player : GObject.Object
Abstract interface type for the D-Bus interface org.mpris.MediaPlayer2.Player.
Prerequisite
In order to implement MprisDBusMediaPlayer2Player, your type must inherit fromGObject
.
Functions
phosh_mpris_dbus_media_player2_player_interface_info
Gets a machine-readable description of the org.mpris.MediaPlayer2.Player D-Bus interface.
phosh_mpris_dbus_media_player2_player_override_properties
Overrides all GObject
properties in the PhoshMprisDBusMediaPlayer2Player
interface for a concrete class.
The properties are overridden in the order they are defined.
Instance methods
phosh_mpris_dbus_media_player2_player_call_next
Asynchronously invokes the Next() D-Bus method on proxy
.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
You can then call phosh_mpris_dbus_media_player2_player_call_next_finish()
to get the result of the operation.
phosh_mpris_dbus_media_player2_player_call_next_finish
Finishes an operation started with phosh_mpris_dbus_media_player2_player_call_next().
phosh_mpris_dbus_media_player2_player_call_next_sync
Synchronously invokes the Next() D-Bus method on proxy
. The calling thread is blocked until a reply is received.
phosh_mpris_dbus_media_player2_player_call_play_pause
Asynchronously invokes the PlayPause() D-Bus method on proxy
.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
You can then call phosh_mpris_dbus_media_player2_player_call_play_pause_finish()
to get the result of the operation.
phosh_mpris_dbus_media_player2_player_call_play_pause_finish
Finishes an operation started with phosh_mpris_dbus_media_player2_player_call_play_pause().
phosh_mpris_dbus_media_player2_player_call_play_pause_sync
Synchronously invokes the PlayPause() D-Bus method on proxy
. The calling thread is blocked until a reply is received.
phosh_mpris_dbus_media_player2_player_call_previous
Asynchronously invokes the Previous() D-Bus method on proxy
.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
You can then call phosh_mpris_dbus_media_player2_player_call_previous_finish()
to get the result of the operation.
phosh_mpris_dbus_media_player2_player_call_previous_finish
Finishes an operation started with phosh_mpris_dbus_media_player2_player_call_previous().
phosh_mpris_dbus_media_player2_player_call_previous_sync
Synchronously invokes the Previous() D-Bus method on proxy
. The calling thread is blocked until a reply is received.
phosh_mpris_dbus_media_player2_player_call_seek
Asynchronously invokes the Seek() D-Bus method on proxy
.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
You can then call phosh_mpris_dbus_media_player2_player_call_seek_finish()
to get the result of the operation.
phosh_mpris_dbus_media_player2_player_call_seek_finish
Finishes an operation started with phosh_mpris_dbus_media_player2_player_call_seek().
phosh_mpris_dbus_media_player2_player_call_seek_sync
Synchronously invokes the Seek() D-Bus method on proxy
. The calling thread is blocked until a reply is received.
phosh_mpris_dbus_media_player2_player_complete_next
Helper function used in service implementations to finish handling invocations of the Next() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error()
or similar.
phosh_mpris_dbus_media_player2_player_complete_play_pause
Helper function used in service implementations to finish handling invocations of the PlayPause() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error()
or similar.
phosh_mpris_dbus_media_player2_player_complete_previous
Helper function used in service implementations to finish handling invocations of the Previous() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error()
or similar.
phosh_mpris_dbus_media_player2_player_complete_seek
Helper function used in service implementations to finish handling invocations of the Seek() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error()
or similar.
phosh_mpris_dbus_media_player2_player_dup_playback_status
Gets a copy of the “PlaybackStatus” D-Bus property.
phosh_mpris_dbus_media_player2_player_get_can_go_next
Gets the value of the “CanGoNext” D-Bus property.
phosh_mpris_dbus_media_player2_player_get_can_go_previous
Gets the value of the “CanGoPrevious” D-Bus property.
phosh_mpris_dbus_media_player2_player_get_playback_status
Gets the value of the “PlaybackStatus” D-Bus property.
phosh_mpris_dbus_media_player2_player_set_can_go_previous
Sets the “CanGoPrevious” D-Bus property to value
.
phosh_mpris_dbus_media_player2_player_set_playback_status
Sets the “PlaybackStatus” D-Bus property to value
.
Signals
Phosh.MprisDBusMediaPlayer2Player::handle-next
Signal emitted when a remote caller is invoking the Next() D-Bus method.
Phosh.MprisDBusMediaPlayer2Player::handle-play-pause
Signal emitted when a remote caller is invoking the PlayPause() D-Bus method.
Phosh.MprisDBusMediaPlayer2Player::handle-previous
Signal emitted when a remote caller is invoking the Previous() D-Bus method.
Phosh.MprisDBusMediaPlayer2Player::handle-seek
Signal emitted when a remote caller is invoking the Seek() D-Bus method.
Interface structure
struct PhoshMprisDBusMediaPlayer2PlayerIface {
GTypeInterface parent_iface;
gboolean (* handle_next) (
PhoshMprisDBusMediaPlayer2Player* object,
GDBusMethodInvocation* invocation
);
gboolean (* handle_play_pause) (
PhoshMprisDBusMediaPlayer2Player* object,
GDBusMethodInvocation* invocation
);
gboolean (* handle_previous) (
PhoshMprisDBusMediaPlayer2Player* object,
GDBusMethodInvocation* invocation
);
gboolean (* handle_seek) (
PhoshMprisDBusMediaPlayer2Player* object,
GDBusMethodInvocation* invocation,
gint64 arg_Offset
);
gboolean (* get_can_go_next) (
PhoshMprisDBusMediaPlayer2Player* object
);
gboolean (* get_can_go_previous) (
PhoshMprisDBusMediaPlayer2Player* object
);
gboolean (* get_can_play) (
PhoshMprisDBusMediaPlayer2Player* object
);
gboolean (* get_can_seek) (
PhoshMprisDBusMediaPlayer2Player* object
);
GVariant* (* get_metadata) (
PhoshMprisDBusMediaPlayer2Player* object
);
const gchar* (* get_playback_status) (
PhoshMprisDBusMediaPlayer2Player* object
);
}
Virtual table for the D-Bus interface org.mpris.MediaPlayer2.Player.
Interface members
parent_iface |
|
The parent interface. |
|
handle_next |
|
Handler for the |
|
handle_play_pause |
|
Handler for the |
|
handle_previous |
|
Handler for the |
|
handle_seek |
|
Handler for the |
|
get_can_go_next |
|
Getter for the |
|
get_can_go_previous |
|
Getter for the |
|
get_can_play |
|
Getter for the |
|
get_can_seek |
|
Getter for the |
|
get_metadata |
|
Getter for the |
|
get_playback_status |
|
Getter for the |
Virtual methods
Phosh.MprisDBusMediaPlayer2Player.get_can_go_previous
Gets the value of the “CanGoPrevious” D-Bus property.
Phosh.MprisDBusMediaPlayer2Player.get_playback_status
Gets the value of the “PlaybackStatus” D-Bus property.
Phosh.MprisDBusMediaPlayer2Player.handle_next
Handler for the PhoshMprisDBusMediaPlayer2Player::handle-next
signal.
Phosh.MprisDBusMediaPlayer2Player.handle_play_pause
Handler for the PhoshMprisDBusMediaPlayer2Player::handle-play-pause
signal.
Phosh.MprisDBusMediaPlayer2Player.handle_previous
Handler for the PhoshMprisDBusMediaPlayer2Player::handle-previous
signal.
Phosh.MprisDBusMediaPlayer2Player.handle_seek
Handler for the PhoshMprisDBusMediaPlayer2Player::handle-seek
signal.