TelepathyGLib.DBusPropertiesMixinClass

Fields

Name

Type

Access

Description

interfaces

TelepathyGLib.DBusPropertiesMixinIfaceImpl

r/w

An array of interface implementations, terminated by one with name equal to None

Methods

class

init (cls, offset)

Details

class TelepathyGLib.DBusPropertiesMixinClass

Structure representing all of a class’s property implementations. One of these structures may be placed in the layout of an object class structure.

In addition to the documented fields, there are 7 pointers reserved for future use, which must be initialized to None.

New in version 0.7.3.

classmethod init(cls, offset)
Parameters:

Initialize the class cls to use the D-Bus Properties mixin. The given struct member, of size sizeof(TelepathyGLib.DBusPropertiesMixinClass), will be used to store property implementation information.

Each property and each interface must have been declared as a member of a GInterface implemented by cls, using TelepathyGLib.svc_interface_set_dbus_properties_info().

Before calling this function, the array interfaces must have been placed in the TelepathyGLib.DBusPropertiesMixinClass structure; if it would be empty, it may instead be None.

This function should be called from the class_init callback in such a way that it will only be called once, even if the class is subclassed.

Changed in 0.7.9: TelepathyGLib.DBusPropertiesMixinClass ::interfaces may now be None, which means that only interfaces whose properties are set up using tp_dbus_properties_mixin_implement_interface() will be used.

Changed in 0.7.15: offset may now be 0, in which case the TelepathyGLib.DBusPropertiesMixinClass can be omitted from cls. It is treated as if it were present, but with all fields (including TelepathyGLib.DBusPropertiesMixinClass ::interfaces) being None, so only interfaces whose properties are set using tp_dbus_properties_mixin_implement_interface() will be used.

New in version 0.7.3.