PresenceMixinSetOwnStatusFunc


Description:

[ CCode ( has_target = false ) ]
public delegate bool PresenceMixinSetOwnStatusFunc (Object obj, PresenceStatus status) throws Error

Signature of the callback used to commit changes to the user's own presence status in SetStatuses.

It is also used in ClearStatus and RemoveStatus to reset the user's own status back to the "default" one with a null status argument.

The optional_arguments hash table in status, if not NULL, will have been filtered so it only contains recognised parameters, so the callback need not (and cannot) check for unrecognised parameters. However, the types of the parameters are not currently checked, so the callback is responsible for doing so.

The callback is responsible for emitting PresenceUpdate, if appropriate, by calling tp_presence_mixin_emit_presence_update.

Parameters:

obj

An object with this mixin.

status

The status to set, or NULL for whatever the protocol defines as a "default" status

Returns:

true if the operation was successful, false if not.


Namespace: TelepathyGLib
Package: telepathy-glib