TelepathyGLib.DBusPropertiesMixinClass¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
interfaces |
r/w |
An array of interface implementations, terminated by one with name equal to |
Methods¶
class |
|
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:
cls (
GObject.ObjectClass) – a subclass ofGObject.ObjectClassoffset (
int) – the offset within cls of aTelepathyGLib.DBusPropertiesMixinClassstructure
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.DBusPropertiesMixinClassstructure; if it would be empty, it may instead beNone.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::interfacesmay now beNone, 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.DBusPropertiesMixinClasscan be omitted from cls. It is treated as if it were present, but with all fields (includingTelepathyGLib.DBusPropertiesMixinClass::interfaces) beingNone, so only interfaces whose properties are set using tp_dbus_properties_mixin_implement_interface() will be used.New in version 0.7.3.