Top | ![]() |
![]() |
![]() |
![]() |
gboolean | can-raise | Read / Write |
char * | desktop-entry | Read / Write |
gboolean | can-go-next | Read / Write |
gboolean | can-go-previous | Read / Write |
gboolean | can-play | Read / Write |
gboolean | can-seek | Read / Write |
GVariant * | metadata | Read / Write |
char * | playback-status | Read / Write |
GInterface ├── PhoshMprisDBusMediaPlayer2 ╰── PhoshMprisDBusMediaPlayer2Player GObject ├── GDBusInterfaceSkeleton │ ├── PhoshMprisDBusMediaPlayer2PlayerSkeleton │ ╰── PhoshMprisDBusMediaPlayer2Skeleton ╰── GDBusProxy ├── PhoshMprisDBusMediaPlayer2PlayerProxy ╰── PhoshMprisDBusMediaPlayer2Proxy
PhoshMprisDBusMediaPlayer2 requires GObject.
PhoshMprisDBusMediaPlayer2Player requires GObject.
PhoshMprisDBusMediaPlayer2Proxy implements GDBusInterface, GInitable, GAsyncInitable and PhoshMprisDBusMediaPlayer2.
PhoshMprisDBusMediaPlayer2Skeleton implements GDBusInterface and PhoshMprisDBusMediaPlayer2.
PhoshMprisDBusMediaPlayer2PlayerProxy implements GDBusInterface, GInitable, GAsyncInitable and PhoshMprisDBusMediaPlayer2Player.
PhoshMprisDBusMediaPlayer2PlayerSkeleton implements GDBusInterface and PhoshMprisDBusMediaPlayer2Player.
PhoshMprisDBusMediaPlayer2 is implemented by PhoshMprisDBusMediaPlayer2Proxy and PhoshMprisDBusMediaPlayer2Skeleton.
PhoshMprisDBusMediaPlayer2Player is implemented by PhoshMprisDBusMediaPlayer2PlayerProxy and PhoshMprisDBusMediaPlayer2PlayerSkeleton.
GDBusInterfaceInfo *
phosh_mpris_dbus_media_player2_interface_info
(void
);
Gets a machine-readable description of the org.mpris.MediaPlayer2 D-Bus interface.
guint phosh_mpris_dbus_media_player2_override_properties (GObjectClass *klass
,guint property_id_begin
);
Overrides all GObject properties in the PhoshMprisDBusMediaPlayer2 interface for a concrete class. The properties are overridden in the order they are defined.
klass |
The class structure for a GObject derived class. |
|
property_id_begin |
The property id to assign to the first overridden property. |
void phosh_mpris_dbus_media_player2_complete_raise (PhoshMprisDBusMediaPlayer2 *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the Raise()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void phosh_mpris_dbus_media_player2_call_raise (PhoshMprisDBusMediaPlayer2 *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the Raise()
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.
See phosh_mpris_dbus_media_player2_call_raise_sync()
for the synchronous, blocking version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean phosh_mpris_dbus_media_player2_call_raise_finish (PhoshMprisDBusMediaPlayer2 *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_mpris_dbus_media_player2_call_raise()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_mpris_dbus_media_player2_call_raise_sync (PhoshMprisDBusMediaPlayer2 *proxy
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the Raise()
proxy
. The calling thread is blocked until a reply is received.
See phosh_mpris_dbus_media_player2_call_raise()
for the asynchronous version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
gboolean
phosh_mpris_dbus_media_player2_get_can_raise
(PhoshMprisDBusMediaPlayer2 *object
);
Gets the value of the "CanRaise" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_mpris_dbus_media_player2_set_can_raise (PhoshMprisDBusMediaPlayer2 *object
,gboolean value
);
Sets the "CanRaise" D-Bus property to value
.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
[skip]
const gchar *
phosh_mpris_dbus_media_player2_get_desktop_entry
(PhoshMprisDBusMediaPlayer2 *object
);
Gets the value of the "DesktopEntry" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object
was constructed. Use phosh_mpris_dbus_media_player2_dup_desktop_entry()
if on another thread.
[skip]
The property value or NULL
if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none][nullable]
gchar *
phosh_mpris_dbus_media_player2_dup_desktop_entry
(PhoshMprisDBusMediaPlayer2 *object
);
Gets a copy of the "DesktopEntry" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_mpris_dbus_media_player2_set_desktop_entry (PhoshMprisDBusMediaPlayer2 *object
,const gchar *value
);
Sets the "DesktopEntry" D-Bus property to value
.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
[skip]
void phosh_mpris_dbus_media_player2_proxy_new (GDBusConnection *connection
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously creates a proxy for the D-Bus interface org.mpris.MediaPlayer2. See g_dbus_proxy_new()
for more details.
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_proxy_new_finish()
to get the result of the operation.
See phosh_mpris_dbus_media_player2_proxy_new_sync()
for the synchronous, blocking version of this constructor.
connection |
||
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
PhoshMprisDBusMediaPlayer2 * phosh_mpris_dbus_media_player2_proxy_new_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_mpris_dbus_media_player2_proxy_new()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshMprisDBusMediaPlayer2Proxy]
PhoshMprisDBusMediaPlayer2 * phosh_mpris_dbus_media_player2_proxy_new_sync (GDBusConnection *connection
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Synchronously creates a proxy for the D-Bus interface org.mpris.MediaPlayer2. See g_dbus_proxy_new_sync()
for more details.
The calling thread is blocked until a reply is received.
See phosh_mpris_dbus_media_player2_proxy_new()
for the asynchronous version of this constructor.
connection |
||
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshMprisDBusMediaPlayer2Proxy]
void phosh_mpris_dbus_media_player2_proxy_new_for_bus (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Like phosh_mpris_dbus_media_player2_proxy_new()
but takes a GBusType instead of a GDBusConnection.
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_proxy_new_for_bus_finish()
to get the result of the operation.
See phosh_mpris_dbus_media_player2_proxy_new_for_bus_sync()
for the synchronous, blocking version of this constructor.
bus_type |
A GBusType. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique). |
|
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
PhoshMprisDBusMediaPlayer2 * phosh_mpris_dbus_media_player2_proxy_new_for_bus_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_mpris_dbus_media_player2_proxy_new_for_bus()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshMprisDBusMediaPlayer2Proxy]
PhoshMprisDBusMediaPlayer2 * phosh_mpris_dbus_media_player2_proxy_new_for_bus_sync (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Like phosh_mpris_dbus_media_player2_proxy_new_sync()
but takes a GBusType instead of a GDBusConnection.
The calling thread is blocked until a reply is received.
See phosh_mpris_dbus_media_player2_proxy_new_for_bus()
for the asynchronous version of this constructor.
bus_type |
A GBusType. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique). |
|
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshMprisDBusMediaPlayer2Proxy]
PhoshMprisDBusMediaPlayer2 *
phosh_mpris_dbus_media_player2_skeleton_new
(void
);
Creates a skeleton object for the D-Bus interface org.mpris.MediaPlayer2.
GDBusInterfaceInfo *
phosh_mpris_dbus_media_player2_player_interface_info
(void
);
Gets a machine-readable description of the org.mpris.MediaPlayer2.Player D-Bus interface.
guint phosh_mpris_dbus_media_player2_player_override_properties (GObjectClass *klass
,guint property_id_begin
);
Overrides all GObject properties in the PhoshMprisDBusMediaPlayer2Player interface for a concrete class. The properties are overridden in the order they are defined.
klass |
The class structure for a GObject derived class. |
|
property_id_begin |
The property id to assign to the first overridden property. |
void phosh_mpris_dbus_media_player2_player_complete_play_pause (PhoshMprisDBusMediaPlayer2Player *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the PlayPause()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void phosh_mpris_dbus_media_player2_player_complete_next (PhoshMprisDBusMediaPlayer2Player *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the Next()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void phosh_mpris_dbus_media_player2_player_complete_previous (PhoshMprisDBusMediaPlayer2Player *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the Previous()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void phosh_mpris_dbus_media_player2_player_complete_seek (PhoshMprisDBusMediaPlayer2Player *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the Seek()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void phosh_mpris_dbus_media_player2_player_call_play_pause (PhoshMprisDBusMediaPlayer2Player *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the PlayPause()
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.
See phosh_mpris_dbus_media_player2_player_call_play_pause_sync()
for the synchronous, blocking version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean phosh_mpris_dbus_media_player2_player_call_play_pause_finish (PhoshMprisDBusMediaPlayer2Player *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_mpris_dbus_media_player2_player_call_play_pause()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_mpris_dbus_media_player2_player_call_play_pause_sync (PhoshMprisDBusMediaPlayer2Player *proxy
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the PlayPause()
proxy
. The calling thread is blocked until a reply is received.
See phosh_mpris_dbus_media_player2_player_call_play_pause()
for the asynchronous version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void phosh_mpris_dbus_media_player2_player_call_next (PhoshMprisDBusMediaPlayer2Player *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the Next()
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.
See phosh_mpris_dbus_media_player2_player_call_next_sync()
for the synchronous, blocking version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean phosh_mpris_dbus_media_player2_player_call_next_finish (PhoshMprisDBusMediaPlayer2Player *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_mpris_dbus_media_player2_player_call_next()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_mpris_dbus_media_player2_player_call_next_sync (PhoshMprisDBusMediaPlayer2Player *proxy
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the Next()
proxy
. The calling thread is blocked until a reply is received.
See phosh_mpris_dbus_media_player2_player_call_next()
for the asynchronous version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void phosh_mpris_dbus_media_player2_player_call_previous (PhoshMprisDBusMediaPlayer2Player *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the Previous()
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.
See phosh_mpris_dbus_media_player2_player_call_previous_sync()
for the synchronous, blocking version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean phosh_mpris_dbus_media_player2_player_call_previous_finish (PhoshMprisDBusMediaPlayer2Player *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_mpris_dbus_media_player2_player_call_previous()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_mpris_dbus_media_player2_player_call_previous_sync (PhoshMprisDBusMediaPlayer2Player *proxy
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the Previous()
proxy
. The calling thread is blocked until a reply is received.
See phosh_mpris_dbus_media_player2_player_call_previous()
for the asynchronous version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void phosh_mpris_dbus_media_player2_player_call_seek (PhoshMprisDBusMediaPlayer2Player *proxy
,gint64 arg_Offset
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the Seek()
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.
See phosh_mpris_dbus_media_player2_player_call_seek_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_Offset |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean phosh_mpris_dbus_media_player2_player_call_seek_finish (PhoshMprisDBusMediaPlayer2Player *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_mpris_dbus_media_player2_player_call_seek()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_mpris_dbus_media_player2_player_call_seek_sync (PhoshMprisDBusMediaPlayer2Player *proxy
,gint64 arg_Offset
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the Seek()
proxy
. The calling thread is blocked until a reply is received.
See phosh_mpris_dbus_media_player2_player_call_seek()
for the asynchronous version of this method.
proxy |
||
arg_Offset |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
gboolean
phosh_mpris_dbus_media_player2_player_get_can_go_next
(PhoshMprisDBusMediaPlayer2Player *object
);
Gets the value of the "CanGoNext" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_mpris_dbus_media_player2_player_set_can_go_next (PhoshMprisDBusMediaPlayer2Player *object
,gboolean value
);
Sets the "CanGoNext" D-Bus property to value
.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
[skip]
gboolean
phosh_mpris_dbus_media_player2_player_get_can_go_previous
(PhoshMprisDBusMediaPlayer2Player *object
);
Gets the value of the "CanGoPrevious" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_mpris_dbus_media_player2_player_set_can_go_previous (PhoshMprisDBusMediaPlayer2Player *object
,gboolean value
);
Sets the "CanGoPrevious" D-Bus property to value
.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
[skip]
gboolean
phosh_mpris_dbus_media_player2_player_get_can_play
(PhoshMprisDBusMediaPlayer2Player *object
);
Gets the value of the "CanPlay" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_mpris_dbus_media_player2_player_set_can_play (PhoshMprisDBusMediaPlayer2Player *object
,gboolean value
);
Sets the "CanPlay" D-Bus property to value
.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
[skip]
gboolean
phosh_mpris_dbus_media_player2_player_get_can_seek
(PhoshMprisDBusMediaPlayer2Player *object
);
Gets the value of the "CanSeek" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_mpris_dbus_media_player2_player_set_can_seek (PhoshMprisDBusMediaPlayer2Player *object
,gboolean value
);
Sets the "CanSeek" D-Bus property to value
.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
[skip]
GVariant *
phosh_mpris_dbus_media_player2_player_get_metadata
(PhoshMprisDBusMediaPlayer2Player *object
);
Gets the value of the "Metadata" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object
was constructed. Use phosh_mpris_dbus_media_player2_player_dup_metadata()
if on another thread.
[skip]
The property value or NULL
if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none][nullable]
GVariant *
phosh_mpris_dbus_media_player2_player_dup_metadata
(PhoshMprisDBusMediaPlayer2Player *object
);
Gets a copy of the "Metadata" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
The property value or NULL
if the property is not set. The returned value should be freed with g_variant_unref()
.
[transfer full][nullable]
void phosh_mpris_dbus_media_player2_player_set_metadata (PhoshMprisDBusMediaPlayer2Player *object
,GVariant *value
);
Sets the "Metadata" D-Bus property to value
.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
[skip]
const gchar *
phosh_mpris_dbus_media_player2_player_get_playback_status
(PhoshMprisDBusMediaPlayer2Player *object
);
Gets the value of the "PlaybackStatus" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object
was constructed. Use phosh_mpris_dbus_media_player2_player_dup_playback_status()
if on another thread.
[skip]
The property value or NULL
if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none][nullable]
gchar *
phosh_mpris_dbus_media_player2_player_dup_playback_status
(PhoshMprisDBusMediaPlayer2Player *object
);
Gets a copy of the "PlaybackStatus" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_mpris_dbus_media_player2_player_set_playback_status (PhoshMprisDBusMediaPlayer2Player *object
,const gchar *value
);
Sets the "PlaybackStatus" D-Bus property to value
.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
[skip]
void phosh_mpris_dbus_media_player2_player_proxy_new (GDBusConnection *connection
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously creates a proxy for the D-Bus interface org.mpris.MediaPlayer2.Player. See g_dbus_proxy_new()
for more details.
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_proxy_new_finish()
to get the result of the operation.
See phosh_mpris_dbus_media_player2_player_proxy_new_sync()
for the synchronous, blocking version of this constructor.
connection |
||
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
PhoshMprisDBusMediaPlayer2Player * phosh_mpris_dbus_media_player2_player_proxy_new_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_mpris_dbus_media_player2_player_proxy_new()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshMprisDBusMediaPlayer2PlayerProxy]
PhoshMprisDBusMediaPlayer2Player * phosh_mpris_dbus_media_player2_player_proxy_new_sync (GDBusConnection *connection
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Synchronously creates a proxy for the D-Bus interface org.mpris.MediaPlayer2.Player. See g_dbus_proxy_new_sync()
for more details.
The calling thread is blocked until a reply is received.
See phosh_mpris_dbus_media_player2_player_proxy_new()
for the asynchronous version of this constructor.
connection |
||
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshMprisDBusMediaPlayer2PlayerProxy]
void phosh_mpris_dbus_media_player2_player_proxy_new_for_bus (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Like phosh_mpris_dbus_media_player2_player_proxy_new()
but takes a GBusType instead of a GDBusConnection.
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_proxy_new_for_bus_finish()
to get the result of the operation.
See phosh_mpris_dbus_media_player2_player_proxy_new_for_bus_sync()
for the synchronous, blocking version of this constructor.
bus_type |
A GBusType. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique). |
|
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
PhoshMprisDBusMediaPlayer2Player * phosh_mpris_dbus_media_player2_player_proxy_new_for_bus_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_mpris_dbus_media_player2_player_proxy_new_for_bus()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshMprisDBusMediaPlayer2PlayerProxy]
PhoshMprisDBusMediaPlayer2Player * phosh_mpris_dbus_media_player2_player_proxy_new_for_bus_sync (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Like phosh_mpris_dbus_media_player2_player_proxy_new_sync()
but takes a GBusType instead of a GDBusConnection.
The calling thread is blocked until a reply is received.
See phosh_mpris_dbus_media_player2_player_proxy_new_for_bus()
for the asynchronous version of this constructor.
bus_type |
A GBusType. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique). |
|
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshMprisDBusMediaPlayer2PlayerProxy]
PhoshMprisDBusMediaPlayer2Player *
phosh_mpris_dbus_media_player2_player_skeleton_new
(void
);
Creates a skeleton object for the D-Bus interface org.mpris.MediaPlayer2.Player.
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.
GTypeInterface |
The parent interface. |
|
Handler for the “handle-raise” signal. |
||
Getter for the “can-raise” property. |
||
Getter for the “desktop-entry” property. |
struct PhoshMprisDBusMediaPlayer2Proxy;
The PhoshMprisDBusMediaPlayer2Proxy structure contains only private data and should only be accessed using the provided API.
struct PhoshMprisDBusMediaPlayer2ProxyClass { GDBusProxyClass parent_class; };
Class structure for PhoshMprisDBusMediaPlayer2Proxy.
struct PhoshMprisDBusMediaPlayer2Skeleton;
The PhoshMprisDBusMediaPlayer2Skeleton structure contains only private data and should only be accessed using the provided API.
struct PhoshMprisDBusMediaPlayer2SkeletonClass { GDBusInterfaceSkeletonClass parent_class; };
Class structure for PhoshMprisDBusMediaPlayer2Skeleton.
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.
GTypeInterface |
The parent interface. |
|
Handler for the “handle-next” signal. |
||
Handler for the “handle-play-pause” signal. |
||
Handler for the “handle-previous” signal. |
||
Handler for the “handle-seek” signal. |
||
Getter for the “can-go-next” property. |
||
Getter for the “can-go-previous” property. |
||
Getter for the “can-play” property. |
||
Getter for the “can-seek” property. |
||
Getter for the “metadata” property. |
||
Getter for the “playback-status” property. |
struct PhoshMprisDBusMediaPlayer2PlayerProxy;
The PhoshMprisDBusMediaPlayer2PlayerProxy structure contains only private data and should only be accessed using the provided API.
struct PhoshMprisDBusMediaPlayer2PlayerProxyClass { GDBusProxyClass parent_class; };
Class structure for PhoshMprisDBusMediaPlayer2PlayerProxy.
struct PhoshMprisDBusMediaPlayer2PlayerSkeleton;
The PhoshMprisDBusMediaPlayer2PlayerSkeleton structure contains only private data and should only be accessed using the provided API.
struct PhoshMprisDBusMediaPlayer2PlayerSkeletonClass { GDBusInterfaceSkeletonClass parent_class; };
Class structure for PhoshMprisDBusMediaPlayer2PlayerSkeleton.
typedef struct _PhoshMprisDBusMediaPlayer2 PhoshMprisDBusMediaPlayer2;
Abstract interface type for the D-Bus interface org.mpris.MediaPlayer2.
typedef struct _PhoshMprisDBusMediaPlayer2Player PhoshMprisDBusMediaPlayer2Player;
Abstract interface type for the D-Bus interface org.mpris.MediaPlayer2.Player.
typedef struct _PhoshMprisDBusMediaPlayer2PlayerProxyPrivate PhoshMprisDBusMediaPlayer2PlayerProxyPrivate;
typedef struct _PhoshMprisDBusMediaPlayer2PlayerSkeletonPrivate PhoshMprisDBusMediaPlayer2PlayerSkeletonPrivate;
typedef struct _PhoshMprisDBusMediaPlayer2ProxyPrivate PhoshMprisDBusMediaPlayer2ProxyPrivate;
“can-raise”
property“can-raise” gboolean
Represents the D-Bus property "CanRaise".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Owner: PhoshMprisDBusMediaPlayer2
Flags: Read / Write
Default value: FALSE
“desktop-entry”
property “desktop-entry” char *
Represents the D-Bus property "DesktopEntry".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Owner: PhoshMprisDBusMediaPlayer2
Flags: Read / Write
Default value: NULL
“can-go-next”
property“can-go-next” gboolean
Represents the D-Bus property "CanGoNext".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Owner: PhoshMprisDBusMediaPlayer2Player
Flags: Read / Write
Default value: FALSE
“can-go-previous”
property“can-go-previous” gboolean
Represents the D-Bus property "CanGoPrevious".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Owner: PhoshMprisDBusMediaPlayer2Player
Flags: Read / Write
Default value: FALSE
“can-play”
property“can-play” gboolean
Represents the D-Bus property "CanPlay".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Owner: PhoshMprisDBusMediaPlayer2Player
Flags: Read / Write
Default value: FALSE
“can-seek”
property“can-seek” gboolean
Represents the D-Bus property "CanSeek".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Owner: PhoshMprisDBusMediaPlayer2Player
Flags: Read / Write
Default value: FALSE
“metadata”
property“metadata” GVariant *
Represents the D-Bus property "Metadata".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Owner: PhoshMprisDBusMediaPlayer2Player
Flags: Read / Write
Allowed values: GVariant<a{sv}>
Default value: NULL
“playback-status”
property “playback-status” char *
Represents the D-Bus property "PlaybackStatus".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Owner: PhoshMprisDBusMediaPlayer2Player
Flags: Read / Write
Default value: NULL
“handle-raise”
signalgboolean user_function (PhoshMprisDBusMediaPlayer2 *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the Raise()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call phosh_mpris_dbus_media_player2_complete_raise()
or e.g. g_dbus_method_invocation_return_error()
on it) and no other signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
G_DBUS_METHOD_INVOCATION_HANDLED
or TRUE
if the invocation was handled, G_DBUS_METHOD_INVOCATION_UNHANDLED
or FALSE
to let other signal handlers run.
Flags: Run Last
“handle-next”
signalgboolean user_function (PhoshMprisDBusMediaPlayer2Player *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the Next()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call phosh_mpris_dbus_media_player2_player_complete_next()
or e.g. g_dbus_method_invocation_return_error()
on it) and no other signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
G_DBUS_METHOD_INVOCATION_HANDLED
or TRUE
if the invocation was handled, G_DBUS_METHOD_INVOCATION_UNHANDLED
or FALSE
to let other signal handlers run.
Flags: Run Last
“handle-play-pause”
signalgboolean user_function (PhoshMprisDBusMediaPlayer2Player *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the PlayPause()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call phosh_mpris_dbus_media_player2_player_complete_play_pause()
or e.g. g_dbus_method_invocation_return_error()
on it) and no other signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
G_DBUS_METHOD_INVOCATION_HANDLED
or TRUE
if the invocation was handled, G_DBUS_METHOD_INVOCATION_UNHANDLED
or FALSE
to let other signal handlers run.
Flags: Run Last
“handle-previous”
signalgboolean user_function (PhoshMprisDBusMediaPlayer2Player *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the Previous()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call phosh_mpris_dbus_media_player2_player_complete_previous()
or e.g. g_dbus_method_invocation_return_error()
on it) and no other signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
G_DBUS_METHOD_INVOCATION_HANDLED
or TRUE
if the invocation was handled, G_DBUS_METHOD_INVOCATION_UNHANDLED
or FALSE
to let other signal handlers run.
Flags: Run Last
“handle-seek”
signalgboolean user_function (PhoshMprisDBusMediaPlayer2Player *object, GDBusMethodInvocation *invocation, gint64 arg_Offset, gpointer user_data)
Signal emitted when a remote caller is invoking the Seek()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call phosh_mpris_dbus_media_player2_player_complete_seek()
or e.g. g_dbus_method_invocation_return_error()
on it) and no other signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
object |
||
invocation |
||
arg_Offset |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
G_DBUS_METHOD_INVOCATION_HANDLED
or TRUE
if the invocation was handled, G_DBUS_METHOD_INVOCATION_UNHANDLED
or FALSE
to let other signal handlers run.
Flags: Run Last