TelepathyGLib.PresenceMixinClass

Fields

Name

Type

Access

Description

get_contact_statuses

object

r/w

The get-contact-statuses function that was passed to tp_presence_mixin_class_init()

get_maximum_status_message_length

TelepathyGLib.PresenceMixinGetMaximumStatusMessageLengthFunc

r/w

The callback used to discover the the limit for status messages length, if any.

set_own_status

TelepathyGLib.PresenceMixinSetOwnStatusFunc

r/w

The set-own-status function that was passed to tp_presence_mixin_class_init()

status_available

TelepathyGLib.PresenceMixinStatusAvailableFunc

r/w

The status-available function that was passed to tp_presence_mixin_class_init()

statuses

TelepathyGLib.PresenceStatusSpec

r/w

The presence statuses array that was passed to tp_presence_mixin_class_init()

Methods

None

Details

class TelepathyGLib.PresenceMixinClass

Structure to be included in the class structure of objects that use this mixin. Initialize it with tp_presence_mixin_class_init().

If the protocol imposes a limit on the length of status messages, one should implement get_maximum_status_message_length. If this callback is not implemented, it is assumed that there is no limit. The callback function should be set after calling tp_presence_mixin_class_init(), like so:

TpPresenceMixinClass *mixin_class;

tp_presence_mixin_class_init ((GObjectClass *) klass,
    G_STRUCT_OFFSET (SomeObjectClass, presence_mixin));
mixin_class = TP_PRESENCE_MIXIN_CLASS (klass);
mixin_class->get_maximum_status_message_length =
    some_object_get_maximum_status_message_length;

All other fields should be considered read-only.