4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<title>telepathy-glib API Reference Manual: TpStaticHandleRepo</title>
5
<title>TpStaticHandleRepo</title>
6
6
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
7
<link rel="home" href="index.html" title="telepathy-glib API Reference Manual">
8
8
<link rel="up" href="ch-service-handles.html" title="Service-side handle repositories">
9
9
<link rel="prev" href="telepathy-glib-handle-repo.html" title="TpHandleRepoIface">
10
10
<link rel="next" href="TpDynamicHandleRepo.html" title="TpDynamicHandleRepo">
11
<meta name="generator" content="GTK-Doc V1.20 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.19 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
14
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
16
<td width="100%" align="left" class="shortcuts">
17
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
18
<a href="#TpStaticHandleRepo.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
19
<a href="#TpStaticHandleRepo.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces"> <span class="dim">|</span>
20
<a href="#TpStaticHandleRepo.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span><span id="nav_properties"> <span class="dim">|</span>
21
<a href="#TpStaticHandleRepo.properties" class="shortcut">Properties</a></span>
23
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
24
<td><a accesskey="u" href="ch-service-handles.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
25
<td><a accesskey="p" href="telepathy-glib-handle-repo.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
26
<td><a accesskey="n" href="TpDynamicHandleRepo.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17
<td><a accesskey="p" href="telepathy-glib-handle-repo.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
<td><a accesskey="u" href="ch-service-handles.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
<th width="100%" align="center">telepathy-glib API Reference Manual</th>
21
<td><a accesskey="n" href="TpDynamicHandleRepo.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23
<tr><td colspan="5" class="shortcuts">
24
<a href="#TpStaticHandleRepo.synopsis" class="shortcut">Top</a>
26
<a href="#TpStaticHandleRepo.description" class="shortcut">Description</a>
28
<a href="#TpStaticHandleRepo.object-hierarchy" class="shortcut">Object Hierarchy</a>
30
<a href="#TpStaticHandleRepo.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
32
<a href="#TpStaticHandleRepo.properties" class="shortcut">Properties</a>
28
35
<div class="refentry">
29
36
<a name="TpStaticHandleRepo"></a><div class="titlepage"></div>
30
37
<div class="refnamediv"><table width="100%"><tr>
33
40
<p>TpStaticHandleRepo — handle repository implementation with a fixed, static
34
41
set of handle names</p>
36
<td class="gallery_image" valign="top" align="right"></td>
43
<td valign="top" align="right"></td>
37
44
</tr></table></div>
38
<div class="refsect1">
39
<a name="TpStaticHandleRepo.functions"></a><h2>Functions</h2>
40
<div class="informaltable"><table width="100%" border="0">
42
<col width="150px" class="functions_return">
43
<col class="functions_name">
46
<td class="function_type">
47
<a class="link" href="telepathy-glib-handle-repo.html#TpHandleRepoIface"><span class="returnvalue">TpHandleRepoIface</span></a> *
49
<td class="function_name">
50
<a class="link" href="TpStaticHandleRepo.html#tp-static-handle-repo-new" title="tp_static_handle_repo_new ()">tp_static_handle_repo_new</a> <span class="c_punctuation">()</span>
55
<div class="refsect1">
56
<a name="TpStaticHandleRepo.properties"></a><h2>Properties</h2>
57
<div class="informaltable"><table border="0">
59
<col width="150px" class="properties_type">
60
<col width="300px" class="properties_name">
61
<col width="200px" class="properties_flags">
64
<td class="property_type"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Boxed-Types.html#GStrv"><span class="type">GStrv</span></a></td>
65
<td class="property_name"><a class="link" href="TpStaticHandleRepo.html#TpStaticHandleRepo--handle-names" title="The “handle-names” property">handle-names</a></td>
66
<td class="property_flags">Read / Write / Construct Only</td>
70
<div class="refsect1">
71
<a name="TpStaticHandleRepo.other"></a><h2>Types and Values</h2>
72
<div class="informaltable"><table width="100%" border="0">
74
<col width="150px" class="name">
75
<col class="description">
79
<td class="datatype_keyword"> </td>
80
<td class="function_name"><a class="link" href="TpStaticHandleRepo.html#TpStaticHandleRepo-struct" title="TpStaticHandleRepo">TpStaticHandleRepo</a></td>
83
<td class="datatype_keyword"> </td>
84
<td class="function_name"><a class="link" href="TpStaticHandleRepo.html#TpStaticHandleRepoClass" title="TpStaticHandleRepoClass">TpStaticHandleRepoClass</a></td>
45
<div class="refsynopsisdiv">
46
<a name="TpStaticHandleRepo.synopsis"></a><h2>Synopsis</h2>
47
<pre class="synopsis">
48
#include <telepathy-glib/telepathy-glib.h>
50
<a class="link" href="telepathy-glib-handle-repo.html#TpHandleRepoIface"><span class="returnvalue">TpHandleRepoIface</span></a> * <a class="link" href="TpStaticHandleRepo.html#tp-static-handle-repo-new" title="tp_static_handle_repo_new ()">tp_static_handle_repo_new</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-enums.html#TpHandleType" title="enum TpHandleType"><span class="type">TpHandleType</span></a> handle_type</code></em>,
51
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **handle_names</code></em>);
52
<a class="link" href="TpStaticHandleRepo.html#TpStaticHandleRepo-struct" title="TpStaticHandleRepo">TpStaticHandleRepo</a>;
53
<a class="link" href="TpStaticHandleRepo.html#TpStaticHandleRepoClass" title="TpStaticHandleRepoClass">TpStaticHandleRepoClass</a>;
89
56
<div class="refsect1">
90
57
<a name="TpStaticHandleRepo.object-hierarchy"></a><h2>Object Hierarchy</h2>
91
<pre class="screen"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
92
<span class="lineart">╰──</span> TpStaticHandleRepo
58
<pre class="synopsis">
59
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
60
+----TpStaticHandleRepo
95
63
<div class="refsect1">
99
67
<a class="link" href="telepathy-glib-handle-repo.html#TpHandleRepoIface">TpHandleRepoIface</a>.</p>
101
69
<div class="refsect1">
102
<a name="TpStaticHandleRepo.includes"></a><h2>Includes</h2>
103
<pre class="synopsis">#include <telepathy-glib/telepathy-glib.h>
70
<a name="TpStaticHandleRepo.properties"></a><h2>Properties</h2>
71
<pre class="synopsis">
72
"<a class="link" href="TpStaticHandleRepo.html#TpStaticHandleRepo--handle-names" title='The "handle-names" property'>handle-names</a>" <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Boxed-Types.html#GStrv"><span class="type">GStrv</span></a> : Read / Write / Construct Only
106
75
<div class="refsect1">
107
76
<a name="TpStaticHandleRepo.description"></a><h2>Description</h2>
108
<p>A static handle repository has a fixed, static set of allowed names;
78
A static handle repository has a fixed, static set of allowed names;
109
79
these handles can never be destroyed, and no more can be created, so
110
no reference counting is performed.</p>
111
<p>The <a class="link" href="telepathy-glib-handle-repo.html#TpHandleRepoIface--handle-type" title="The “handle-type” property"><span class="type">“handle-type”</span></a> property must be set at construction
113
<p>Most connection managers will use this for handles of type
114
<a class="link" href="telepathy-glib-enums.html#TP-HANDLE-TYPE-LIST:CAPS"><code class="literal">TP_HANDLE_TYPE_LIST</code></a>.</p>
80
no reference counting is performed.
83
The <a class="link" href="telepathy-glib-handle-repo.html#TpHandleRepoIface--handle-type" title='The "handle-type" property'><span class="type">"handle-type"</span></a> property must be set at construction
87
Most connection managers will use this for handles of type
88
<a class="link" href="telepathy-glib-enums.html#TP-HANDLE-TYPE-LIST:CAPS"><code class="literal">TP_HANDLE_TYPE_LIST</code></a>.
116
91
<div class="refsect1">
117
<a name="TpStaticHandleRepo.functions_details"></a><h2>Functions</h2>
92
<a name="TpStaticHandleRepo.details"></a><h2>Details</h2>
118
93
<div class="refsect2">
119
<a name="tp-static-handle-repo-new"></a><h3>tp_static_handle_repo_new ()</h3>
120
<pre class="programlisting"><a class="link" href="telepathy-glib-handle-repo.html#TpHandleRepoIface"><span class="returnvalue">TpHandleRepoIface</span></a> *
121
tp_static_handle_repo_new (<em class="parameter"><code><a class="link" href="telepathy-glib-enums.html#TpHandleType" title="enum TpHandleType"><span class="type">TpHandleType</span></a> handle_type</code></em>,
122
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **handle_names</code></em>);</pre>
124
<div class="refsect3">
125
<a name="id-1.7.3.10.2.5"></a><h4>Parameters</h4>
126
<div class="informaltable"><table width="100%" border="0">
94
<a name="tp-static-handle-repo-new"></a><h3>tp_static_handle_repo_new ()</h3>
95
<pre class="programlisting"><a class="link" href="telepathy-glib-handle-repo.html#TpHandleRepoIface"><span class="returnvalue">TpHandleRepoIface</span></a> * tp_static_handle_repo_new (<em class="parameter"><code><a class="link" href="telepathy-glib-enums.html#TpHandleType" title="enum TpHandleType"><span class="type">TpHandleType</span></a> handle_type</code></em>,
96
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **handle_names</code></em>);</pre>
100
<div class="variablelist"><table border="0" class="variablelist">
128
<col width="150px" class="parameters_name">
129
<col class="parameters_description">
130
<col width="200px" class="parameters_annotations">
102
<col align="left" valign="top">
134
<td class="parameter_name"><p>handle_type</p></td>
135
<td class="parameter_description"><p>The type of handle to store in the
136
new repository</p></td>
137
<td class="parameter_annotations"> </td>
140
<td class="parameter_name"><p>handle_names</p></td>
141
<td class="parameter_description"><p>Same as <a class="link" href="TpStaticHandleRepo.html#TpStaticHandleRepo--handle-names" title="The “handle-names” property"><span class="type">“handle-names”</span></a></p></td>
142
<td class="parameter_annotations"> </td>
107
<td><p><span class="term"><em class="parameter"><code>handle_type</code></em> :</span></p></td>
108
<td>The type of handle to store in the
112
<td><p><span class="term"><em class="parameter"><code>handle_names</code></em> :</span></p></td>
113
<td>Same as <a class="link" href="TpStaticHandleRepo.html#TpStaticHandleRepo--handle-names" title='The "handle-names" property'><span class="type">"handle-names"</span></a>
117
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
118
<td>a new static handle repository</td>
147
<div class="refsect3">
148
<a name="id-1.7.3.10.2.6"></a><h4>Returns</h4>
149
<p> a new static handle repository</p>
154
<div class="refsect1">
155
<a name="TpStaticHandleRepo.other_details"></a><h2>Types and Values</h2>
156
124
<div class="refsect2">
157
125
<a name="TpStaticHandleRepo-struct"></a><h3>TpStaticHandleRepo</h3>
158
126
<pre class="programlisting">typedef struct _TpStaticHandleRepo TpStaticHandleRepo;</pre>
159
<p>A static handle repository contains a fixed set of handles.</p>
160
<p>As well as setting the <a class="link" href="telepathy-glib-handle-repo.html#TpHandleRepoIface--handle-type" title="The “handle-type” property"><span class="type">“handle-type”</span></a> property, code
128
A static handle repository contains a fixed set of handles.
131
As well as setting the <a class="link" href="telepathy-glib-handle-repo.html#TpHandleRepoIface--handle-type" title='The "handle-type" property'><span class="type">"handle-type"</span></a> property, code
161
132
which creates a static handle repository must set the
162
<a class="link" href="TpStaticHandleRepo.html#TpStaticHandleRepo--handle-names" title="The “handle-names” property"><span class="type">“handle-names”</span></a> construction property to a strv of
133
<a class="link" href="TpStaticHandleRepo.html#TpStaticHandleRepo--handle-names" title='The "handle-names" property'><span class="type">"handle-names"</span></a> construction property to a strv of
163
134
valid handle names. All of these are preallocated; no more may be
164
created, and attempts to do so will fail.</p>
165
<p>Handles in this repository are 1 more than the index in the string
135
created, and attempts to do so will fail.
138
Handles in this repository are 1 more than the index in the string
166
139
vector of the handle's name, so the first name in the vector has
167
140
handle 1 and so on. Connection managers which use a static repository
168
141
may assume this to be true, and use an enumeration starting at 1, in the
169
142
same order as the string vector, to avoid having to look up handles
171
<p>This is intended for handles of type <a class="link" href="telepathy-glib-enums.html#TP-HANDLE-TYPE-LIST:CAPS"><code class="literal">TP_HANDLE_TYPE_LIST</code></a>,
146
This is intended for handles of type <a class="link" href="telepathy-glib-enums.html#TP-HANDLE-TYPE-LIST:CAPS"><code class="literal">TP_HANDLE_TYPE_LIST</code></a>,
172
147
for which the connection manager should only accept a static list of
173
supported handle names.</p>
174
<p>All structure fields are private.</p>
148
supported handle names.
151
All structure fields are private.
177
155
<div class="refsect2">
178
156
<a name="TpStaticHandleRepoClass"></a><h3>TpStaticHandleRepoClass</h3>
179
157
<pre class="programlisting">typedef struct _TpStaticHandleRepoClass TpStaticHandleRepoClass;</pre>
180
<p>The class of a TpStaticHandleRepo. All fields are private.</p>
159
The class of a TpStaticHandleRepo. All fields are private.
183
163
<div class="refsect1">
184
164
<a name="TpStaticHandleRepo.property-details"></a><h2>Property Details</h2>
185
165
<div class="refsect2">
186
<a name="TpStaticHandleRepo--handle-names"></a><h3>The <code class="literal">“handle-names”</code> property</h3>
187
<pre class="programlisting"> “handle-names” <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Boxed-Types.html#GStrv"><span class="type">GStrv</span></a></pre>
166
<a name="TpStaticHandleRepo--handle-names"></a><h3>The <code class="literal">"handle-names"</code> property</h3>
167
<pre class="programlisting"> "handle-names" <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Boxed-Types.html#GStrv"><span class="type">GStrv</span></a> : Read / Write / Construct Only</pre>
188
168
<p>The static set of handle names supported by this repo.</p>
189
<p>Flags: Read / Write / Construct Only</p>
192
171
<div class="refsect1">
193
172
<a name="TpStaticHandleRepo.see-also"></a><h2>See Also</h2>
194
<p>TpHandleRepoIface, TpDynamicHandleRepo</p>
173
TpHandleRepoIface, TpDynamicHandleRepo
197
176
<div class="footer">
199
Generated by GTK-Doc V1.20</div>
178
Generated by GTK-Doc V1.19</div>
b'\\ No newline at end of file'