Interface
PhoshMprisDBusMediaPlayer2
Description [src]
interface Phosh.MprisDBusMediaPlayer2 : GObject.Object
Abstract interface type for the D-Bus interface org.mpris.MediaPlayer2.
Prerequisite
In order to implement MprisDBusMediaPlayer2, your type must inherit fromGObject
.
Functions
phosh_mpris_dbus_media_player2_interface_info
Gets a machine-readable description of the org.mpris.MediaPlayer2 D-Bus interface.
phosh_mpris_dbus_media_player2_override_properties
Overrides all GObject
properties in the PhoshMprisDBusMediaPlayer2
interface for a concrete class.
The properties are overridden in the order they are defined.
Instance methods
phosh_mpris_dbus_media_player2_call_raise
Asynchronously invokes the Raise() 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_call_raise_finish()
to get the result of the operation.
phosh_mpris_dbus_media_player2_call_raise_finish
Finishes an operation started with phosh_mpris_dbus_media_player2_call_raise().
phosh_mpris_dbus_media_player2_call_raise_sync
Synchronously invokes the Raise() D-Bus method on proxy
. The calling thread is blocked until a reply is received.
phosh_mpris_dbus_media_player2_complete_raise
Helper function used in service implementations to finish handling invocations of the Raise() 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_get_desktop_entry
Gets the value of the “DesktopEntry” D-Bus property.
Signals
Phosh.MprisDBusMediaPlayer2::handle-raise
Signal emitted when a remote caller is invoking the Raise() D-Bus method.
Interface structure
struct PhoshMprisDBusMediaPlayer2Iface {
GTypeInterface parent_iface;
gboolean (* handle_raise) (
PhoshMprisDBusMediaPlayer2* object,
GDBusMethodInvocation* invocation
);
gboolean (* get_can_raise) (
PhoshMprisDBusMediaPlayer2* object
);
const gchar* (* get_desktop_entry) (
PhoshMprisDBusMediaPlayer2* object
);
}
Virtual table for the D-Bus interface org.mpris.MediaPlayer2.
Interface members
parent_iface |
|
The parent interface. |
|
handle_raise |
|
Handler for the |
|
get_can_raise |
|
Getter for the |
|
get_desktop_entry |
|
Getter for the |
Virtual methods
Phosh.MprisDBusMediaPlayer2.handle_raise
Handler for the PhoshMprisDBusMediaPlayer2::handle-raise
signal.