~ubuntu-branches/ubuntu/maverick/telepathy-glib/maverick

« back to all changes in this revision

Viewing changes to docs/reference/html/telepathy-glib-dbus-properties-mixin.html

  • Committer: Bazaar Package Importer
  • Author(s): Simon McVittie
  • Date: 2010-05-10 17:59:54 UTC
  • mfrom: (1.6.1 upstream) (27.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100510175954-bxvqq3xx0sy4itmp
Tags: 0.11.5-1
New upstream version with new API/ABI

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
<link rel="up" href="ch-service-base.html" title="Service-side implementation">
9
9
<link rel="prev" href="telepathy-glib-TpContactsMixin.html" title="TpContactsMixin">
10
10
<link rel="next" href="TpExportableChannel.html" title="TpExportableChannel">
11
 
<meta name="generator" content="GTK-Doc V1.13 (XML mode)">
 
11
<meta name="generator" content="GTK-Doc V1.14 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
 
<link rel="chapter" href="ch-dbus.html" title="General D-Bus support">
14
 
<link rel="chapter" href="ch-protocol.html" title="The Telepathy protocol">
15
 
<link rel="chapter" href="ch-client.html" title="Client-side proxies">
16
 
<link rel="chapter" href="ch-service-dbus.html" title="Service-side D-Bus interfaces">
17
 
<link rel="chapter" href="ch-service-base.html" title="Service-side implementation">
18
 
<link rel="chapter" href="ch-service-handles.html" title="Service-side handle repositories">
19
 
<link rel="chapter" href="ch-utilities.html" title="Utilities">
20
13
</head>
21
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
22
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
48
41
#include &lt;telepathy-glib/dbus-properties-mixin.h&gt;
49
42
 
50
43
enum                <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinFlags" title="enum TpDBusPropertiesMixinFlags">TpDBusPropertiesMixinFlags</a>;
 
44
#define             <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TP-TYPE-DBUS-PROPERTIES-MIXIN-FLAGS:CAPS" title="TP_TYPE_DBUS_PROPERTIES_MIXIN_FLAGS">TP_TYPE_DBUS_PROPERTIES_MIXIN_FLAGS</a>
51
45
                    <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinIfaceInfo" title="TpDBusPropertiesMixinIfaceInfo">TpDBusPropertiesMixinIfaceInfo</a>;
52
46
                    <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropInfo" title="TpDBusPropertiesMixinPropInfo">TpDBusPropertiesMixinPropInfo</a>;
53
47
<span class="returnvalue">void</span>                <a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-svc-interface-set-dbus-properties-info" title="tp_svc_interface_set_dbus_properties_info ()">tp_svc_interface_set_dbus_properties_info</a>
54
 
                                                        (<a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> g_interface,
55
 
                                                         <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinIfaceInfo" title="TpDBusPropertiesMixinIfaceInfo"><span class="returnvalue">TpDBusPropertiesMixinIfaceInfo</span></a> *info);
 
48
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> g_interface</code></em>,
 
49
                                                         <em class="parameter"><code><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinIfaceInfo" title="TpDBusPropertiesMixinIfaceInfo"><span class="type">TpDBusPropertiesMixinIfaceInfo</span></a> *info</code></em>);
56
50
 
57
51
                    <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinClass" title="TpDBusPropertiesMixinClass">TpDBusPropertiesMixinClass</a>;
58
52
                    <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinIfaceImpl" title="TpDBusPropertiesMixinIfaceImpl">TpDBusPropertiesMixinIfaceImpl</a>;
59
53
                    <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl">TpDBusPropertiesMixinPropImpl</a>;
60
 
<span class="returnvalue">void</span>                (<a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinGetter" title="TpDBusPropertiesMixinGetter ()">*TpDBusPropertiesMixinGetter</a>)      (<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> *object,
61
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> iface,
62
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> name,
63
 
                                                         <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="returnvalue">GValue</span></a> *value,
64
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> getter_data);
 
54
<span class="returnvalue">void</span>                (<a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinGetter" title="TpDBusPropertiesMixinGetter ()">*TpDBusPropertiesMixinGetter</a>)      (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *object</code></em>,
 
55
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> iface</code></em>,
 
56
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> name</code></em>,
 
57
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>,
 
58
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> getter_data</code></em>);
65
59
<span class="returnvalue">void</span>                <a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-getter-gobject-properties" title="tp_dbus_properties_mixin_getter_gobject_properties ()">tp_dbus_properties_mixin_getter_gobject_properties</a>
66
 
                                                        (<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> *object,
67
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> iface,
68
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> name,
69
 
                                                         <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="returnvalue">GValue</span></a> *value,
70
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> getter_data);
71
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            (<a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinSetter" title="TpDBusPropertiesMixinSetter ()">*TpDBusPropertiesMixinSetter</a>)      (<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> *object,
72
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> iface,
73
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> name,
74
 
                                                         const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="returnvalue">GValue</span></a> *value,
75
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> setter_data,
76
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> **error);
77
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-setter-gobject-properties" title="tp_dbus_properties_mixin_setter_gobject_properties ()">tp_dbus_properties_mixin_setter_gobject_properties</a>
78
 
                                                        (<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> *object,
79
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> iface,
80
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> name,
81
 
                                                         const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="returnvalue">GValue</span></a> *value,
82
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> setter_data,
83
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> **error);
84
 
<span class="returnvalue">void</span>                <a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-class-init" title="tp_dbus_properties_mixin_class_init ()">tp_dbus_properties_mixin_class_init</a> (<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="returnvalue">GObjectClass</span></a> *cls,
85
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a> offset);
 
60
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *object</code></em>,
 
61
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> iface</code></em>,
 
62
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> name</code></em>,
 
63
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>,
 
64
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> getter_data</code></em>);
 
65
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            (<a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinSetter" title="TpDBusPropertiesMixinSetter ()">*TpDBusPropertiesMixinSetter</a>)      (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *object</code></em>,
 
66
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> iface</code></em>,
 
67
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> name</code></em>,
 
68
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>,
 
69
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> setter_data</code></em>,
 
70
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
 
71
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-setter-gobject-properties" title="tp_dbus_properties_mixin_setter_gobject_properties ()">tp_dbus_properties_mixin_setter_gobject_properties</a>
 
72
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *object</code></em>,
 
73
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> iface</code></em>,
 
74
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> name</code></em>,
 
75
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>,
 
76
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> setter_data</code></em>,
 
77
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
 
78
<span class="returnvalue">void</span>                <a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-class-init" title="tp_dbus_properties_mixin_class_init ()">tp_dbus_properties_mixin_class_init</a> (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> *cls</code></em>,
 
79
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> offset</code></em>);
86
80
<span class="returnvalue">void</span>                <a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-implement-interface" title="tp_dbus_properties_mixin_implement_interface ()">tp_dbus_properties_mixin_implement_interface</a>
87
 
                                                        (<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="returnvalue">GObjectClass</span></a> *cls,
88
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> iface,
89
 
                                                         <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinGetter" title="TpDBusPropertiesMixinGetter ()"><span class="returnvalue">TpDBusPropertiesMixinGetter</span></a> getter,
90
 
                                                         <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinSetter" title="TpDBusPropertiesMixinSetter ()"><span class="returnvalue">TpDBusPropertiesMixinSetter</span></a> setter,
91
 
                                                         <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl"><span class="returnvalue">TpDBusPropertiesMixinPropImpl</span></a> *props);
92
 
<span class="returnvalue">void</span>                <a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-iface-init" title="tp_dbus_properties_mixin_iface_init ()">tp_dbus_properties_mixin_iface_init</a> (<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> g_iface,
93
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> iface_data);
94
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-get" title="tp_dbus_properties_mixin_get ()">tp_dbus_properties_mixin_get</a>        (<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> *self,
95
 
                                                         const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *interface_name,
96
 
                                                         const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *property_name,
97
 
                                                         <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="returnvalue">GValue</span></a> *value,
98
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> **error);
99
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="returnvalue">GHashTable</span></a> *        <a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-make-properties-hash" title="tp_dbus_properties_mixin_make_properties_hash ()">tp_dbus_properties_mixin_make_properties_hash</a>
100
 
                                                        (<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> *object,
101
 
                                                         const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *first_interface,
102
 
                                                         const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *first_property,
103
 
                                                         ...);
 
81
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> *cls</code></em>,
 
82
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> iface</code></em>,
 
83
                                                         <em class="parameter"><code><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinGetter" title="TpDBusPropertiesMixinGetter ()"><span class="type">TpDBusPropertiesMixinGetter</span></a> getter</code></em>,
 
84
                                                         <em class="parameter"><code><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinSetter" title="TpDBusPropertiesMixinSetter ()"><span class="type">TpDBusPropertiesMixinSetter</span></a> setter</code></em>,
 
85
                                                         <em class="parameter"><code><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl"><span class="type">TpDBusPropertiesMixinPropImpl</span></a> *props</code></em>);
 
86
<span class="returnvalue">void</span>                <a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-iface-init" title="tp_dbus_properties_mixin_iface_init ()">tp_dbus_properties_mixin_iface_init</a> (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_iface</code></em>,
 
87
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> iface_data</code></em>);
 
88
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-get" title="tp_dbus_properties_mixin_get ()">tp_dbus_properties_mixin_get</a>        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *self</code></em>,
 
89
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *interface_name</code></em>,
 
90
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property_name</code></em>,
 
91
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>,
 
92
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
 
93
<a href="/usr/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"><span class="returnvalue">GHashTable</span></a> *        <a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-make-properties-hash" title="tp_dbus_properties_mixin_make_properties_hash ()">tp_dbus_properties_mixin_make_properties_hash</a>
 
94
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *object</code></em>,
 
95
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *first_interface</code></em>,
 
96
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *first_property</code></em>,
 
97
                                                         <em class="parameter"><code>...</code></em>);
104
98
</pre>
105
99
</div>
106
100
<div class="refsect1" title="Description">
128
122
To use this mixin as the implementation of <a class="link" href="telepathy-glib-svc-generic.html#TpSvcDBusProperties"><span class="type">TpSvcDBusProperties</span></a>,
129
123
call <code class="literal">G_IMPLEMENT_INTERFACE (TP_TYPE_SVC_DBUS_PROPERTIES,
130
124
tp_dbus_properties_mixin_iface_init)</code> in the fourth argument to
131
 
<code class="literal">G_DEFINE_TYPE_WITH_CODE</code>.</p>
 
125
<code class="literal">G_DEFINE_TYPE_WITH_CODE</code>.
 
126
</p>
132
127
</div>
133
128
<div class="refsect1" title="Details">
134
129
<a name="telepathy-glib-dbus-properties-mixin.details"></a><h2>Details</h2>
135
130
<div class="refsect2" title="enum TpDBusPropertiesMixinFlags">
136
131
<a name="TpDBusPropertiesMixinFlags"></a><h3>enum TpDBusPropertiesMixinFlags</h3>
137
 
<pre class="programlisting">typedef enum {
 
132
<pre class="programlisting">typedef enum { /*&lt; flags &gt;*/
138
133
    TP_DBUS_PROPERTIES_MIXIN_FLAG_READ = 1,
139
134
    TP_DBUS_PROPERTIES_MIXIN_FLAG_WRITE = 2
140
135
} TpDBusPropertiesMixinFlags;
141
136
</pre>
142
137
<p>
143
 
Bitfield representing allowed access to a property.</p>
 
138
Bitfield representing allowed access to a property.
 
139
</p>
 
140
<p>
 
141
Since 0.11.UNRELEASED, there is a corresponding <a href="/usr/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html#GFlagsClass"><span class="type">GFlagsClass</span></a> type,
 
142
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#TP-TYPE-DBUS-PROPERTIES-MIXIN-FLAGS:CAPS" title="TP_TYPE_DBUS_PROPERTIES_MIXIN_FLAGS"><code class="literal">TP_TYPE_DBUS_PROPERTIES_MIXIN_FLAGS</code></a>.
 
143
</p>
144
144
<div class="variablelist"><table border="0">
145
145
<col align="left" valign="top">
146
146
<tbody>
147
147
<tr>
148
148
<td><p><a name="TP-DBUS-PROPERTIES-MIXIN-FLAG-READ:CAPS"></a><span class="term"><code class="literal">TP_DBUS_PROPERTIES_MIXIN_FLAG_READ</code></span></p></td>
149
 
<td> The property can be read using Get and
 
149
<td>The property can be read using Get and
150
150
 GetAll
151
151
</td>
152
152
</tr>
153
153
<tr>
154
154
<td><p><a name="TP-DBUS-PROPERTIES-MIXIN-FLAG-WRITE:CAPS"></a><span class="term"><code class="literal">TP_DBUS_PROPERTIES_MIXIN_FLAG_WRITE</code></span></p></td>
155
 
<td> The property can be written using Set
 
155
<td>The property can be written using Set
156
156
</td>
157
157
</tr>
158
158
</tbody>
160
160
<p class="since">Since 0.7.3</p>
161
161
</div>
162
162
<hr>
 
163
<div class="refsect2" title="TP_TYPE_DBUS_PROPERTIES_MIXIN_FLAGS">
 
164
<a name="TP-TYPE-DBUS-PROPERTIES-MIXIN-FLAGS:CAPS"></a><h3>TP_TYPE_DBUS_PROPERTIES_MIXIN_FLAGS</h3>
 
165
<pre class="programlisting">#define TP_TYPE_DBUS_PROPERTIES_MIXIN_FLAGS (tp_dbus_properties_mixin_flags_get_type ())
 
166
</pre>
 
167
<p>
 
168
The <a href="/usr/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html#GFlagsClass"><span class="type">GFlagsClass</span></a> type of <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinFlags" title="enum TpDBusPropertiesMixinFlags"><span class="type">TpDBusPropertiesMixinFlags</span></a>.
 
169
</p>
 
170
<p class="since">Since 0.11.UNRELEASED</p>
 
171
</div>
 
172
<hr>
163
173
<div class="refsect2" title="TpDBusPropertiesMixinIfaceInfo">
164
174
<a name="TpDBusPropertiesMixinIfaceInfo"></a><h3>TpDBusPropertiesMixinIfaceInfo</h3>
165
175
<pre class="programlisting">typedef struct {
180
190
</p>
181
191
<p>
182
192
In addition to the documented members, there are two private pointers
183
 
for future expansion, which must always be initialized to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p>
 
193
for future expansion, which must always be initialized to <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
 
194
</p>
184
195
<div class="variablelist"><table border="0">
185
196
<col align="left" valign="top">
186
197
<tbody>
187
198
<tr>
188
 
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> <em class="structfield"><code><a name="TpDBusPropertiesMixinIfaceInfo.dbus-interface"></a>dbus_interface</code></em>;</span></p></td>
189
 
<td> Quark representing the interface's name
 
199
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> <em class="structfield"><code><a name="TpDBusPropertiesMixinIfaceInfo.dbus-interface"></a>dbus_interface</code></em>;</span></p></td>
 
200
<td>Quark representing the interface's name
190
201
</td>
191
202
</tr>
192
203
<tr>
193
204
<td><p><span class="term"><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropInfo" title="TpDBusPropertiesMixinPropInfo"><span class="type">TpDBusPropertiesMixinPropInfo</span></a> *<em class="structfield"><code><a name="TpDBusPropertiesMixinIfaceInfo.props"></a>props</code></em>;</span></p></td>
194
 
<td> Array of property descriptions, terminated by one with
195
 
 <em class="parameter"><code>name</code></em> == <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
 
205
<td>Array of property descriptions, terminated by one with
 
206
 <em class="parameter"><code>name</code></em> == <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
196
207
</td>
197
208
</tr>
198
209
</tbody>
216
227
</p>
217
228
<p>
218
229
In addition to the documented members, there are two private pointers
219
 
for future expansion, which must always be initialized to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p>
 
230
for future expansion, which must always be initialized to <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
 
231
</p>
220
232
<div class="variablelist"><table border="0">
221
233
<col align="left" valign="top">
222
234
<tbody>
223
235
<tr>
224
 
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> <em class="structfield"><code><a name="TpDBusPropertiesMixinPropInfo.name"></a>name</code></em>;</span></p></td>
225
 
<td> Quark representing the property's name
 
236
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> <em class="structfield"><code><a name="TpDBusPropertiesMixinPropInfo.name"></a>name</code></em>;</span></p></td>
 
237
<td>Quark representing the property's name
226
238
</td>
227
239
</tr>
228
240
<tr>
229
241
<td><p><span class="term"><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinFlags" title="enum TpDBusPropertiesMixinFlags"><span class="type">TpDBusPropertiesMixinFlags</span></a> <em class="structfield"><code><a name="TpDBusPropertiesMixinPropInfo.flags"></a>flags</code></em>;</span></p></td>
230
 
<td> Flags representing read/write access to the property
231
 
</td>
232
 
</tr>
233
 
<tr>
234
 
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="TpDBusPropertiesMixinPropInfo.dbus-signature"></a>dbus_signature</code></em>;</span></p></td>
235
 
<td> The D-Bus signature of the property
236
 
</td>
237
 
</tr>
238
 
<tr>
239
 
<td><p><span class="term"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> <em class="structfield"><code><a name="TpDBusPropertiesMixinPropInfo.type"></a>type</code></em>;</span></p></td>
240
 
<td> The GType used in a GValue to implement the property
 
242
<td>Flags representing read/write access to the property
 
243
</td>
 
244
</tr>
 
245
<tr>
 
246
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="TpDBusPropertiesMixinPropInfo.dbus-signature"></a>dbus_signature</code></em>;</span></p></td>
 
247
<td>The D-Bus signature of the property
 
248
</td>
 
249
</tr>
 
250
<tr>
 
251
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> <em class="structfield"><code><a name="TpDBusPropertiesMixinPropInfo.type"></a>type</code></em>;</span></p></td>
 
252
<td>The GType used in a GValue to implement the property
241
253
</td>
242
254
</tr>
243
255
</tbody>
248
260
<div class="refsect2" title="tp_svc_interface_set_dbus_properties_info ()">
249
261
<a name="tp-svc-interface-set-dbus-properties-info"></a><h3>tp_svc_interface_set_dbus_properties_info ()</h3>
250
262
<pre class="programlisting"><span class="returnvalue">void</span>                tp_svc_interface_set_dbus_properties_info
251
 
                                                        (<a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> g_interface,
252
 
                                                         <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinIfaceInfo" title="TpDBusPropertiesMixinIfaceInfo"><span class="returnvalue">TpDBusPropertiesMixinIfaceInfo</span></a> *info);</pre>
 
263
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> g_interface</code></em>,
 
264
                                                         <em class="parameter"><code><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinIfaceInfo" title="TpDBusPropertiesMixinIfaceInfo"><span class="type">TpDBusPropertiesMixinIfaceInfo</span></a> *info</code></em>);</pre>
253
265
<p>
254
266
Declare that <em class="parameter"><code>g_interface</code></em> implements the given D-Bus interface, with the
255
267
given properties. This may only be called once per GInterface, usually from
256
 
a section of its base_init function that only runs once.</p>
 
268
a section of its base_init function that only runs once.
 
269
</p>
257
270
<div class="variablelist"><table border="0">
258
271
<col align="left" valign="top">
259
272
<tbody>
260
273
<tr>
261
274
<td><p><span class="term"><em class="parameter"><code>g_interface</code></em> :</span></p></td>
262
 
<td> The <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> of a service interface
 
275
<td>The <a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> of a service interface
263
276
</td>
264
277
</tr>
265
278
<tr>
266
279
<td><p><span class="term"><em class="parameter"><code>info</code></em> :</span></p></td>
267
 
<td> an interface description
 
280
<td>an interface description
268
281
</td>
269
282
</tr>
270
283
</tbody>
284
297
</p>
285
298
<p>
286
299
In addition to the documented fields, there are 7 pointers reserved for
287
 
future use, which must be initialized to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p>
 
300
future use, which must be initialized to <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
 
301
</p>
288
302
<div class="variablelist"><table border="0">
289
303
<col align="left" valign="top">
290
304
<tbody><tr>
291
305
<td><p><span class="term"><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinIfaceImpl" title="TpDBusPropertiesMixinIfaceImpl"><span class="type">TpDBusPropertiesMixinIfaceImpl</span></a> *<em class="structfield"><code><a name="TpDBusPropertiesMixinClass.interfaces"></a>interfaces</code></em>;</span></p></td>
292
 
<td> An array of interface implementations, terminated by one with
293
 
 <em class="parameter"><code>name</code></em> equal to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
 
306
<td>An array of interface implementations, terminated by one with
 
307
 <em class="parameter"><code>name</code></em> equal to <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
294
308
</td>
295
309
</tr></tbody>
296
310
</table></div>
311
325
</p>
312
326
<p>
313
327
In addition to the documented fields, there are four pointers which must
314
 
be initialized to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
 
328
be initialized to <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
315
329
</p>
316
330
<p>
317
331
This structure must either be statically allocated, or duplicated and never
318
 
freed, so it always remains valid.</p>
 
332
freed, so it always remains valid.
 
333
</p>
319
334
<div class="variablelist"><table border="0">
320
335
<col align="left" valign="top">
321
336
<tbody>
322
337
<tr>
323
 
<td><p><span class="term">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="TpDBusPropertiesMixinIfaceImpl.name"></a>name</code></em>;</span></p></td>
324
 
<td> The name of the interface
 
338
<td><p><span class="term">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="TpDBusPropertiesMixinIfaceImpl.name"></a>name</code></em>;</span></p></td>
 
339
<td>The name of the interface
325
340
</td>
326
341
</tr>
327
342
<tr>
328
343
<td><p><span class="term"><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinGetter" title="TpDBusPropertiesMixinGetter ()"><span class="type">TpDBusPropertiesMixinGetter</span></a> <em class="structfield"><code><a name="TpDBusPropertiesMixinIfaceImpl.getter"></a>getter</code></em>;</span></p></td>
329
 
<td> A callback to get the current value of the property, to which
 
344
<td>A callback to get the current value of the property, to which
330
345
 the <em class="parameter"><code>getter_data</code></em> from each property implementation will be passed
331
346
</td>
332
347
</tr>
333
348
<tr>
334
349
<td><p><span class="term"><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinSetter" title="TpDBusPropertiesMixinSetter ()"><span class="type">TpDBusPropertiesMixinSetter</span></a> <em class="structfield"><code><a name="TpDBusPropertiesMixinIfaceImpl.setter"></a>setter</code></em>;</span></p></td>
335
 
<td> A callback to set a new value for the property, to which
 
350
<td>A callback to set a new value for the property, to which
336
351
 the <em class="parameter"><code>setter_data</code></em> from each property implementation will be passed
337
352
</td>
338
353
</tr>
339
354
<tr>
340
355
<td><p><span class="term"><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl"><span class="type">TpDBusPropertiesMixinPropImpl</span></a> *<em class="structfield"><code><a name="TpDBusPropertiesMixinIfaceImpl.props"></a>props</code></em>;</span></p></td>
341
 
<td> An array of property implementations, terminated by one with
342
 
 <em class="parameter"><code>name</code></em> equal to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
 
356
<td>An array of property implementations, terminated by one with
 
357
 <em class="parameter"><code>name</code></em> equal to <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
343
358
</td>
344
359
</tr>
345
360
</tbody>
360
375
</p>
361
376
<p>
362
377
In addition to the documented fields, there are three pointers which must
363
 
be initialized to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
 
378
be initialized to <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
364
379
</p>
365
380
<p>
366
381
This structure must either be statically allocated, or duplicated and never
367
 
freed, so it always remains valid.</p>
 
382
freed, so it always remains valid.
 
383
</p>
368
384
<div class="variablelist"><table border="0">
369
385
<col align="left" valign="top">
370
386
<tbody>
371
387
<tr>
372
 
<td><p><span class="term">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="TpDBusPropertiesMixinPropImpl.name"></a>name</code></em>;</span></p></td>
373
 
<td> The name of the property as it appears on D-Bus
374
 
</td>
375
 
</tr>
376
 
<tr>
377
 
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> <em class="structfield"><code><a name="TpDBusPropertiesMixinPropImpl.getter-data"></a>getter_data</code></em>;</span></p></td>
378
 
<td> Arbitrary user-supplied data for the getter function
379
 
</td>
380
 
</tr>
381
 
<tr>
382
 
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> <em class="structfield"><code><a name="TpDBusPropertiesMixinPropImpl.setter-data"></a>setter_data</code></em>;</span></p></td>
383
 
<td> Arbitrary user-supplied data for the setter function
 
388
<td><p><span class="term">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="TpDBusPropertiesMixinPropImpl.name"></a>name</code></em>;</span></p></td>
 
389
<td>The name of the property as it appears on D-Bus
 
390
</td>
 
391
</tr>
 
392
<tr>
 
393
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> <em class="structfield"><code><a name="TpDBusPropertiesMixinPropImpl.getter-data"></a>getter_data</code></em>;</span></p></td>
 
394
<td>Arbitrary user-supplied data for the getter function
 
395
</td>
 
396
</tr>
 
397
<tr>
 
398
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> <em class="structfield"><code><a name="TpDBusPropertiesMixinPropImpl.setter-data"></a>setter_data</code></em>;</span></p></td>
 
399
<td>Arbitrary user-supplied data for the setter function
384
400
</td>
385
401
</tr>
386
402
</tbody>
390
406
<hr>
391
407
<div class="refsect2" title="TpDBusPropertiesMixinGetter ()">
392
408
<a name="TpDBusPropertiesMixinGetter"></a><h3>TpDBusPropertiesMixinGetter ()</h3>
393
 
<pre class="programlisting"><span class="returnvalue">void</span>                (*TpDBusPropertiesMixinGetter)      (<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> *object,
394
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> iface,
395
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> name,
396
 
                                                         <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="returnvalue">GValue</span></a> *value,
397
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> getter_data);</pre>
 
409
<pre class="programlisting"><span class="returnvalue">void</span>                (*TpDBusPropertiesMixinGetter)      (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *object</code></em>,
 
410
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> iface</code></em>,
 
411
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> name</code></em>,
 
412
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>,
 
413
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> getter_data</code></em>);</pre>
398
414
<p>
399
415
Signature of a callback used to get the value of a property.
400
416
</p>
401
417
<p>
402
418
For simplicity, in this mixin we don't allow getting a property to fail;
403
 
implementations must always be prepared to return *something*.</p>
 
419
implementations must always be prepared to return *something*.
 
420
</p>
404
421
<div class="variablelist"><table border="0">
405
422
<col align="left" valign="top">
406
423
<tbody>
407
424
<tr>
408
425
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
409
 
<td> The exported object with the properties
 
426
<td>The exported object with the properties
410
427
</td>
411
428
</tr>
412
429
<tr>
413
430
<td><p><span class="term"><em class="parameter"><code>iface</code></em> :</span></p></td>
414
 
<td> A quark representing the D-Bus interface name
 
431
<td>A quark representing the D-Bus interface name
415
432
</td>
416
433
</tr>
417
434
<tr>
418
435
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
419
 
<td> A quark representing the D-Bus property name
 
436
<td>A quark representing the D-Bus property name
420
437
</td>
421
438
</tr>
422
439
<tr>
423
440
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
424
 
<td> A GValue pre-initialized to the right type, into which to put
 
441
<td>A GValue pre-initialized to the right type, into which to put
425
442
 the value
426
443
</td>
427
444
</tr>
428
445
<tr>
429
446
<td><p><span class="term"><em class="parameter"><code>getter_data</code></em> :</span></p></td>
430
 
<td> The getter_data from the <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl"><span class="type">TpDBusPropertiesMixinPropImpl</span></a>
 
447
<td>The getter_data from the <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl"><span class="type">TpDBusPropertiesMixinPropImpl</span></a>
431
448
</td>
432
449
</tr>
433
450
</tbody>
437
454
<div class="refsect2" title="tp_dbus_properties_mixin_getter_gobject_properties ()">
438
455
<a name="tp-dbus-properties-mixin-getter-gobject-properties"></a><h3>tp_dbus_properties_mixin_getter_gobject_properties ()</h3>
439
456
<pre class="programlisting"><span class="returnvalue">void</span>                tp_dbus_properties_mixin_getter_gobject_properties
440
 
                                                        (<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> *object,
441
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> iface,
442
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> name,
443
 
                                                         <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="returnvalue">GValue</span></a> *value,
444
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> getter_data);</pre>
 
457
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *object</code></em>,
 
458
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> iface</code></em>,
 
459
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> name</code></em>,
 
460
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>,
 
461
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> getter_data</code></em>);</pre>
445
462
<p>
446
463
An implementation of <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinGetter" title="TpDBusPropertiesMixinGetter ()"><span class="type">TpDBusPropertiesMixinGetter</span></a> which assumes that
447
 
the <em class="parameter"><code>getter_data</code></em> is the name of a readable <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> property of an
448
 
appropriate type, and uses it for the value of the D-Bus property.</p>
 
464
the <em class="parameter"><code>getter_data</code></em> is the name of a readable <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> property of an
 
465
appropriate type, and uses it for the value of the D-Bus property.
 
466
</p>
449
467
<div class="variablelist"><table border="0">
450
468
<col align="left" valign="top">
451
469
<tbody>
452
470
<tr>
453
471
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
454
 
<td> The exported object with the properties
 
472
<td>The exported object with the properties
455
473
</td>
456
474
</tr>
457
475
<tr>
458
476
<td><p><span class="term"><em class="parameter"><code>iface</code></em> :</span></p></td>
459
 
<td> A quark representing the D-Bus interface name
 
477
<td>A quark representing the D-Bus interface name
460
478
</td>
461
479
</tr>
462
480
<tr>
463
481
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
464
 
<td> A quark representing the D-Bus property name
 
482
<td>A quark representing the D-Bus property name
465
483
</td>
466
484
</tr>
467
485
<tr>
468
486
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
469
 
<td> A GValue pre-initialized to the right type, into which to put
 
487
<td>A GValue pre-initialized to the right type, into which to put
470
488
 the value
471
489
</td>
472
490
</tr>
473
491
<tr>
474
492
<td><p><span class="term"><em class="parameter"><code>getter_data</code></em> :</span></p></td>
475
 
<td> The getter_data from the <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl"><span class="type">TpDBusPropertiesMixinPropImpl</span></a>,
 
493
<td>The getter_data from the <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl"><span class="type">TpDBusPropertiesMixinPropImpl</span></a>,
476
494
 which must be a string containing the GObject property's name
477
495
</td>
478
496
</tr>
482
500
<hr>
483
501
<div class="refsect2" title="TpDBusPropertiesMixinSetter ()">
484
502
<a name="TpDBusPropertiesMixinSetter"></a><h3>TpDBusPropertiesMixinSetter ()</h3>
485
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            (*TpDBusPropertiesMixinSetter)      (<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> *object,
486
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> iface,
487
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> name,
488
 
                                                         const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="returnvalue">GValue</span></a> *value,
489
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> setter_data,
490
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> **error);</pre>
 
503
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            (*TpDBusPropertiesMixinSetter)      (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *object</code></em>,
 
504
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> iface</code></em>,
 
505
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> name</code></em>,
 
506
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>,
 
507
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> setter_data</code></em>,
 
508
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
491
509
<p>
492
 
Signature of a callback used to get the value of a property.</p>
 
510
Signature of a callback used to get the value of a property.
 
511
</p>
493
512
<div class="variablelist"><table border="0">
494
513
<col align="left" valign="top">
495
514
<tbody>
496
515
<tr>
497
516
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
498
 
<td> The exported object with the properties
 
517
<td>The exported object with the properties
499
518
</td>
500
519
</tr>
501
520
<tr>
502
521
<td><p><span class="term"><em class="parameter"><code>iface</code></em> :</span></p></td>
503
 
<td> A quark representing the D-Bus interface name
 
522
<td>A quark representing the D-Bus interface name
504
523
</td>
505
524
</tr>
506
525
<tr>
507
526
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
508
 
<td> A quark representing the D-Bus property name
 
527
<td>A quark representing the D-Bus property name
509
528
</td>
510
529
</tr>
511
530
<tr>
512
531
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
513
 
<td> The new value for the property
 
532
<td>The new value for the property
514
533
</td>
515
534
</tr>
516
535
<tr>
517
536
<td><p><span class="term"><em class="parameter"><code>setter_data</code></em> :</span></p></td>
518
 
<td> The setter_data from the <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl"><span class="type">TpDBusPropertiesMixinPropImpl</span></a>
 
537
<td>The setter_data from the <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl"><span class="type">TpDBusPropertiesMixinPropImpl</span></a>
519
538
</td>
520
539
</tr>
521
540
<tr>
522
541
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
523
 
<td> Used to return an error on failure
 
542
<td>Used to return an error on failure
524
543
</td>
525
544
</tr>
526
545
<tr>
527
546
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
528
 
<td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> (setting <em class="parameter"><code>error</code></em>) on failure
 
547
<td> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> (setting <em class="parameter"><code>error</code></em>) on failure
529
548
</td>
530
549
</tr>
531
550
</tbody>
534
553
<hr>
535
554
<div class="refsect2" title="tp_dbus_properties_mixin_setter_gobject_properties ()">
536
555
<a name="tp-dbus-properties-mixin-setter-gobject-properties"></a><h3>tp_dbus_properties_mixin_setter_gobject_properties ()</h3>
537
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            tp_dbus_properties_mixin_setter_gobject_properties
538
 
                                                        (<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> *object,
539
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> iface,
540
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> name,
541
 
                                                         const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="returnvalue">GValue</span></a> *value,
542
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> setter_data,
543
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> **error);</pre>
 
556
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            tp_dbus_properties_mixin_setter_gobject_properties
 
557
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *object</code></em>,
 
558
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> iface</code></em>,
 
559
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> name</code></em>,
 
560
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>,
 
561
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> setter_data</code></em>,
 
562
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
544
563
<p>
545
564
An implementation of <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinSetter" title="TpDBusPropertiesMixinSetter ()"><span class="type">TpDBusPropertiesMixinSetter</span></a> which assumes that the
546
 
<em class="parameter"><code>setter_data</code></em> is the name of a writable <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> property of an appropriate
547
 
type, and sets that property to the given value.</p>
 
565
<em class="parameter"><code>setter_data</code></em> is the name of a writable <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> property of an appropriate
 
566
type, and sets that property to the given value.
 
567
</p>
548
568
<div class="variablelist"><table border="0">
549
569
<col align="left" valign="top">
550
570
<tbody>
551
571
<tr>
552
572
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
553
 
<td> The exported object with the properties
 
573
<td>The exported object with the properties
554
574
</td>
555
575
</tr>
556
576
<tr>
557
577
<td><p><span class="term"><em class="parameter"><code>iface</code></em> :</span></p></td>
558
 
<td> A quark representing the D-Bus interface name
 
578
<td>A quark representing the D-Bus interface name
559
579
</td>
560
580
</tr>
561
581
<tr>
562
582
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
563
 
<td> A quark representing the D-Bus property name
 
583
<td>A quark representing the D-Bus property name
564
584
</td>
565
585
</tr>
566
586
<tr>
567
587
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
568
 
<td> The new value for the property
 
588
<td>The new value for the property
569
589
</td>
570
590
</tr>
571
591
<tr>
572
592
<td><p><span class="term"><em class="parameter"><code>setter_data</code></em> :</span></p></td>
573
 
<td> The setter_data from the <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl"><span class="type">TpDBusPropertiesMixinPropImpl</span></a>,
 
593
<td>The setter_data from the <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl"><span class="type">TpDBusPropertiesMixinPropImpl</span></a>,
574
594
 which must be a string containing the GObject property's name
575
595
</td>
576
596
</tr>
577
597
<tr>
578
598
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
579
 
<td> Not used
 
599
<td>Not used
580
600
</td>
581
601
</tr>
582
602
<tr>
583
603
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
584
 
<td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>
 
604
<td> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>
585
605
</td>
586
606
</tr>
587
607
</tbody>
590
610
<hr>
591
611
<div class="refsect2" title="tp_dbus_properties_mixin_class_init ()">
592
612
<a name="tp-dbus-properties-mixin-class-init"></a><h3>tp_dbus_properties_mixin_class_init ()</h3>
593
 
<pre class="programlisting"><span class="returnvalue">void</span>                tp_dbus_properties_mixin_class_init (<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="returnvalue">GObjectClass</span></a> *cls,
594
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a> offset);</pre>
 
613
<pre class="programlisting"><span class="returnvalue">void</span>                tp_dbus_properties_mixin_class_init (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> *cls</code></em>,
 
614
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> offset</code></em>);</pre>
595
615
<p>
596
616
Initialize the class <em class="parameter"><code>cls</code></em> to use the D-Bus Properties mixin.
597
617
The given struct member, of size sizeof(TpDBusPropertiesMixinClass),
605
625
<p>
606
626
Before calling this function, the array <em class="parameter"><code>interfaces</code></em> must have been
607
627
placed in the <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinClass" title="TpDBusPropertiesMixinClass"><span class="type">TpDBusPropertiesMixinClass</span></a> structure; if it would be empty,
608
 
it may instead be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
 
628
it may instead be <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
609
629
</p>
610
630
<p>
611
631
This function should be called from the class_init callback in such a way
612
632
that it will only be called once, even if the class is subclassed.
613
633
</p>
614
634
<p>
615
 
Changed in 0.7.9: TpDBusPropertiesMixinClass::interfaces may now be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>,
 
635
Changed in 0.7.9: TpDBusPropertiesMixinClass::interfaces may now be <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>,
616
636
which means that only interfaces whose properties are set up using
617
637
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-implement-interface" title="tp_dbus_properties_mixin_implement_interface ()"><code class="function">tp_dbus_properties_mixin_implement_interface()</code></a> will be used.
618
638
</p>
620
640
Changed in 0.7.15: <em class="parameter"><code>offset</code></em> may now be 0, in which case the
621
641
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinClass" title="TpDBusPropertiesMixinClass"><span class="type">TpDBusPropertiesMixinClass</span></a> can be omitted from <em class="parameter"><code>cls</code></em>.  It is treated as if
622
642
it were present, but with all fields (including
623
 
TpDBusPropertiesMixinClass::interfaces) being <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, so only interfaces
 
643
TpDBusPropertiesMixinClass::interfaces) being <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, so only interfaces
624
644
whose properties are set using
625
 
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-implement-interface" title="tp_dbus_properties_mixin_implement_interface ()"><code class="function">tp_dbus_properties_mixin_implement_interface()</code></a> will be used.</p>
 
645
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-implement-interface" title="tp_dbus_properties_mixin_implement_interface ()"><code class="function">tp_dbus_properties_mixin_implement_interface()</code></a> will be used.
 
646
</p>
626
647
<div class="variablelist"><table border="0">
627
648
<col align="left" valign="top">
628
649
<tbody>
629
650
<tr>
630
651
<td><p><span class="term"><em class="parameter"><code>cls</code></em> :</span></p></td>
631
 
<td> a subclass of <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a>
 
652
<td>a subclass of <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a>
632
653
</td>
633
654
</tr>
634
655
<tr>
635
656
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
636
 
<td> the offset within <em class="parameter"><code>cls</code></em> of a TpDBusPropertiesMixinClass structure
 
657
<td>the offset within <em class="parameter"><code>cls</code></em> of a TpDBusPropertiesMixinClass structure
637
658
</td>
638
659
</tr>
639
660
</tbody>
644
665
<div class="refsect2" title="tp_dbus_properties_mixin_implement_interface ()">
645
666
<a name="tp-dbus-properties-mixin-implement-interface"></a><h3>tp_dbus_properties_mixin_implement_interface ()</h3>
646
667
<pre class="programlisting"><span class="returnvalue">void</span>                tp_dbus_properties_mixin_implement_interface
647
 
                                                        (<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="returnvalue">GObjectClass</span></a> *cls,
648
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> iface,
649
 
                                                         <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinGetter" title="TpDBusPropertiesMixinGetter ()"><span class="returnvalue">TpDBusPropertiesMixinGetter</span></a> getter,
650
 
                                                         <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinSetter" title="TpDBusPropertiesMixinSetter ()"><span class="returnvalue">TpDBusPropertiesMixinSetter</span></a> setter,
651
 
                                                         <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl"><span class="returnvalue">TpDBusPropertiesMixinPropImpl</span></a> *props);</pre>
 
668
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> *cls</code></em>,
 
669
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> iface</code></em>,
 
670
                                                         <em class="parameter"><code><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinGetter" title="TpDBusPropertiesMixinGetter ()"><span class="type">TpDBusPropertiesMixinGetter</span></a> getter</code></em>,
 
671
                                                         <em class="parameter"><code><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinSetter" title="TpDBusPropertiesMixinSetter ()"><span class="type">TpDBusPropertiesMixinSetter</span></a> setter</code></em>,
 
672
                                                         <em class="parameter"><code><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl"><span class="type">TpDBusPropertiesMixinPropImpl</span></a> *props</code></em>);</pre>
652
673
<p>
653
674
Declare that, in addition to any interfaces set in
654
675
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-class-init" title="tp_dbus_properties_mixin_class_init ()"><code class="function">tp_dbus_properties_mixin_class_init()</code></a>, the given class (and its subclasses)
674
695
interface, only the implementations from the subclass S will be used,
675
696
regardless of whether the implementations in C and/or S were set up by
676
697
this function or via the array <em class="parameter"><code>interfaces</code></em> in the
677
 
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinClass" title="TpDBusPropertiesMixinClass"><span class="type">TpDBusPropertiesMixinClass</span></a>.</p>
 
698
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinClass" title="TpDBusPropertiesMixinClass"><span class="type">TpDBusPropertiesMixinClass</span></a>.
 
699
</p>
678
700
<div class="variablelist"><table border="0">
679
701
<col align="left" valign="top">
680
702
<tbody>
681
703
<tr>
682
704
<td><p><span class="term"><em class="parameter"><code>cls</code></em> :</span></p></td>
683
 
<td> a subclass of <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a>
 
705
<td>a subclass of <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a>
684
706
</td>
685
707
</tr>
686
708
<tr>
687
709
<td><p><span class="term"><em class="parameter"><code>iface</code></em> :</span></p></td>
688
 
<td> a quark representing the the name of the interface to implement
 
710
<td>a quark representing the the name of the interface to implement
689
711
</td>
690
712
</tr>
691
713
<tr>
692
714
<td><p><span class="term"><em class="parameter"><code>getter</code></em> :</span></p></td>
693
 
<td> a callback to get properties on this interface, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if they
 
715
<td>a callback to get properties on this interface, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if they
694
716
 are all write-only
695
717
</td>
696
718
</tr>
697
719
<tr>
698
720
<td><p><span class="term"><em class="parameter"><code>setter</code></em> :</span></p></td>
699
 
<td> a callback to set properties on this interface, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if they
 
721
<td>a callback to set properties on this interface, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if they
700
722
 are all read-only
701
723
</td>
702
724
</tr>
703
725
<tr>
704
726
<td><p><span class="term"><em class="parameter"><code>props</code></em> :</span></p></td>
705
 
<td> an array of <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl"><span class="type">TpDBusPropertiesMixinPropImpl</span></a> representing individual
706
 
 properties, terminated by one with <em class="parameter"><code>name</code></em> == <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
 
727
<td>an array of <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl"><span class="type">TpDBusPropertiesMixinPropImpl</span></a> representing individual
 
728
 properties, terminated by one with <em class="parameter"><code>name</code></em> == <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
707
729
</td>
708
730
</tr>
709
731
</tbody>
712
734
<hr>
713
735
<div class="refsect2" title="tp_dbus_properties_mixin_iface_init ()">
714
736
<a name="tp-dbus-properties-mixin-iface-init"></a><h3>tp_dbus_properties_mixin_iface_init ()</h3>
715
 
<pre class="programlisting"><span class="returnvalue">void</span>                tp_dbus_properties_mixin_iface_init (<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> g_iface,
716
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> iface_data);</pre>
 
737
<pre class="programlisting"><span class="returnvalue">void</span>                tp_dbus_properties_mixin_iface_init (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_iface</code></em>,
 
738
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> iface_data</code></em>);</pre>
717
739
<p>
718
740
Declare that the DBus.Properties interface represented by <em class="parameter"><code>g_iface</code></em>
719
 
is implemented using this mixin.</p>
 
741
is implemented using this mixin.
 
742
</p>
720
743
<div class="variablelist"><table border="0">
721
744
<col align="left" valign="top">
722
745
<tbody>
723
746
<tr>
724
747
<td><p><span class="term"><em class="parameter"><code>g_iface</code></em> :</span></p></td>
725
 
<td> a pointer to a <a class="link" href="telepathy-glib-svc-generic.html#TpSvcDBusPropertiesClass" title="TpSvcDBusPropertiesClass"><span class="type">TpSvcDBusPropertiesClass</span></a> structure
 
748
<td>a pointer to a <a class="link" href="telepathy-glib-svc-generic.html#TpSvcDBusPropertiesClass" title="TpSvcDBusPropertiesClass"><span class="type">TpSvcDBusPropertiesClass</span></a> structure
726
749
</td>
727
750
</tr>
728
751
<tr>
729
752
<td><p><span class="term"><em class="parameter"><code>iface_data</code></em> :</span></p></td>
730
 
<td> ignored
 
753
<td>ignored
731
754
</td>
732
755
</tr>
733
756
</tbody>
736
759
<hr>
737
760
<div class="refsect2" title="tp_dbus_properties_mixin_get ()">
738
761
<a name="tp-dbus-properties-mixin-get"></a><h3>tp_dbus_properties_mixin_get ()</h3>
739
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            tp_dbus_properties_mixin_get        (<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> *self,
740
 
                                                         const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *interface_name,
741
 
                                                         const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *property_name,
742
 
                                                         <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="returnvalue">GValue</span></a> *value,
743
 
                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> **error);</pre>
 
762
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            tp_dbus_properties_mixin_get        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *self</code></em>,
 
763
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *interface_name</code></em>,
 
764
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property_name</code></em>,
 
765
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>,
 
766
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
744
767
<p>
745
768
Initialize <em class="parameter"><code>value</code></em> with the type of the property <em class="parameter"><code>property_name</code></em> on
746
769
<em class="parameter"><code>interface_name</code></em>, and write the value of that property into it as if
748
771
</p>
749
772
<p>
750
773
If Get would return a D-Bus error, <em class="parameter"><code>value</code></em> remains unset and <em class="parameter"><code>error</code></em>
751
 
is filled in instead.</p>
 
774
is filled in instead.
 
775
</p>
752
776
<div class="variablelist"><table border="0">
753
777
<col align="left" valign="top">
754
778
<tbody>
755
779
<tr>
756
780
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
757
 
<td> an object with this mixin
 
781
<td>an object with this mixin
758
782
</td>
759
783
</tr>
760
784
<tr>
761
785
<td><p><span class="term"><em class="parameter"><code>interface_name</code></em> :</span></p></td>
762
 
<td> a D-Bus interface name
 
786
<td>a D-Bus interface name
763
787
</td>
764
788
</tr>
765
789
<tr>
766
790
<td><p><span class="term"><em class="parameter"><code>property_name</code></em> :</span></p></td>
767
 
<td> a D-Bus property name
 
791
<td>a D-Bus property name
768
792
</td>
769
793
</tr>
770
794
<tr>
771
795
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
772
 
<td> an unset GValue (initialized to all zeroes)
 
796
<td>an unset GValue (initialized to all zeroes)
773
797
</td>
774
798
</tr>
775
799
<tr>
776
800
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
777
 
<td> used to return an error on failure
 
801
<td>used to return an error on failure
778
802
</td>
779
803
</tr>
780
804
<tr>
781
805
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
782
 
<td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> (filling <em class="parameter"><code>value</code></em>) on success, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> (setting <em class="parameter"><code>error</code></em>)
 
806
<td> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> (filling <em class="parameter"><code>value</code></em>) on success, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> (setting <em class="parameter"><code>error</code></em>)
783
807
 on failure
784
808
</td>
785
809
</tr>
790
814
<hr>
791
815
<div class="refsect2" title="tp_dbus_properties_mixin_make_properties_hash ()">
792
816
<a name="tp-dbus-properties-mixin-make-properties-hash"></a><h3>tp_dbus_properties_mixin_make_properties_hash ()</h3>
793
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="returnvalue">GHashTable</span></a> *        tp_dbus_properties_mixin_make_properties_hash
794
 
                                                        (<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> *object,
795
 
                                                         const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *first_interface,
796
 
                                                         const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *first_property,
797
 
                                                         ...);</pre>
 
817
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"><span class="returnvalue">GHashTable</span></a> *        tp_dbus_properties_mixin_make_properties_hash
 
818
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *object</code></em>,
 
819
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *first_interface</code></em>,
 
820
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *first_property</code></em>,
 
821
                                                         <em class="parameter"><code>...</code></em>);</pre>
798
822
<p>
799
823
Retrieves the values of several D-Bus properties from an object, and builds
800
824
a hash mapping the fully-qualified name of the property to its value.  This
801
825
is equivalent to calling <a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-get" title="tp_dbus_properties_mixin_get ()"><code class="function">tp_dbus_properties_mixin_get()</code></a> for each property
802
826
and building the table yourself, with the proviso that this function will
803
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Testing.html#g-assert"><code class="function">g_assert()</code></a> if retrieving a property fails (for instance, because it does not
 
827
<a href="/usr/share/gtk-doc/html/glib/glib-Testing.html#g-assert"><code class="function">g_assert()</code></a> if retrieving a property fails (for instance, because it does not
804
828
exist).
805
829
</p>
806
830
<p>
807
831
Additional keys and values can be inserted into the returned hash table;
808
832
if this is done, the inserted keys and values will be freed when the
809
 
hash table is destroyed. The keys must be allocated with <a href="http://library.gnome.org/devel/glib/unstable/glib-String-Utility-Functions.html#g-strdup"><code class="function">g_strdup()</code></a> or
 
833
hash table is destroyed. The keys must be allocated with <a href="/usr/share/gtk-doc/html/glib/glib-String-Utility-Functions.html#g-strdup"><code class="function">g_strdup()</code></a> or
810
834
equivalent, and the values must be slice-allocated (for instance with
811
835
<a class="link" href="telepathy-glib-util.html#tp-g-value-slice-new-string" title="tp_g_value_slice_new_string ()"><code class="function">tp_g_value_slice_new_string()</code></a> or a similar function).
812
836
</p>
813
837
<p>
814
838
Note that in particular, <a class="link" href="telepathy-glib-asv.html#tp-asv-set-string" title="tp_asv_set_string ()"><code class="function">tp_asv_set_string()</code></a> and similar functions should
815
 
not be used with this hash table.</p>
 
839
not be used with this hash table.
 
840
</p>
816
841
<div class="variablelist"><table border="0">
817
842
<col align="left" valign="top">
818
843
<tbody>
819
844
<tr>
820
845
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
821
 
<td> an object which uses the D-Bus properties mixin
 
846
<td>an object which uses the D-Bus properties mixin
822
847
</td>
823
848
</tr>
824
849
<tr>
825
850
<td><p><span class="term"><em class="parameter"><code>first_interface</code></em> :</span></p></td>
826
 
<td> the interface of the first property to be retrieved
 
851
<td>the interface of the first property to be retrieved
827
852
</td>
828
853
</tr>
829
854
<tr>
830
855
<td><p><span class="term"><em class="parameter"><code>first_property</code></em> :</span></p></td>
831
 
<td> the name of the first property to be retrieved
 
856
<td>the name of the first property to be retrieved
832
857
</td>
833
858
</tr>
834
859
<tr>
835
860
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
836
 
<td> more (interface name, property name) pairs, terminated by <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
 
861
<td>more (interface name, property name) pairs, terminated by <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
837
862
</td>
838
863
</tr>
839
864
<tr>
854
879
</div>
855
880
<div class="footer">
856
881
<hr>
857
 
          Generated by GTK-Doc V1.13</div>
 
882
          Generated by GTK-Doc V1.14</div>
858
883
</body>
859
884
</html>
 
 
b'\\ No newline at end of file'