File: TpChannelIface.html

package info (click to toggle)
telepathy-glib 0.24.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 34,628 kB
  • ctags: 19,732
  • sloc: ansic: 124,643; xml: 34,410; sh: 11,299; python: 3,520; makefile: 1,727; cpp: 16
file content (228 lines) | stat: -rw-r--r-- 14,332 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TpChannelIface</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="telepathy-glib API Reference Manual">
<link rel="up" href="ch-protocol.html" title="The Telepathy protocol">
<link rel="prev" href="telepathy-glib-gtypes.html" title="GType factory functions">
<link rel="next" href="ch-client.html" title="Client-side proxies">
<meta name="generator" content="GTK-Doc V1.19 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="telepathy-glib-gtypes.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch-protocol.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">telepathy-glib API Reference Manual</th>
<td><a accesskey="n" href="ch-client.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#TpChannelIface.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#TpChannelIface.description" class="shortcut">Description</a>
                   | 
                  <a href="#TpChannelIface.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#TpChannelIface.implementations" class="shortcut">Known Implementations</a>
                   | 
                  <a href="#TpChannelIface.properties" class="shortcut">Properties</a>
</td></tr>
</table>
<div class="refentry">
<a name="TpChannelIface"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="TpChannelIface.top_of_page"></a>TpChannelIface</span></h2>
<p>TpChannelIface — interface representing basic channel properties</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="TpChannelIface.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;telepathy-glib/telepathy-glib.h&gt;

<span class="returnvalue">void</span>                (<a class="link" href="TpChannelIface.html#TpChannelFunc" title="TpChannelFunc ()">*TpChannelFunc</a>)                    (<em class="parameter"><code><a class="link" href="TpChannelIface.html" title="TpChannelIface"><span class="type">TpChannelIface</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> userdata</code></em>);
                    <a class="link" href="TpChannelIface.html#TpChannelIface-struct" title="TpChannelIface">TpChannelIface</a>;
struct              <a class="link" href="TpChannelIface.html#TpChannelIfaceClass" title="struct TpChannelIfaceClass">TpChannelIfaceClass</a>;
</pre>
</div>
<div class="refsect1">
<a name="TpChannelIface.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  GInterface
   +----TpChannelIface
</pre>
</div>
<div class="refsect1">
<a name="TpChannelIface.implementations"></a><h2>Known Implementations</h2>
<p>
TpChannelIface is implemented by
 <a class="link" href="TpBaseCallChannel.html" title="TpBaseCallChannel">TpBaseCallChannel</a>,  <a class="link" href="TpBaseChannel.html" title="TpBaseChannel">TpBaseChannel</a>,  <a class="link" href="TpBaseMediaCallChannel.html" title="TpBaseMediaCallChannel">TpBaseMediaCallChannel</a>,  <a class="link" href="telepathy-glib-base-password-channel.html#TpBasePasswordChannel">TpBasePasswordChannel</a>,  <a class="link" href="telepathy-glib-call-channel.html#TpCallChannel">TpCallChannel</a>,  <a class="link" href="telepathy-glib-channel.html#TpChannel">TpChannel</a>,  <a class="link" href="telepathy-glib-dbus-tube-channel.html#TpDBusTubeChannel">TpDBusTubeChannel</a>,  <a class="link" href="telepathy-glib-file-transfer-channel.html#TpFileTransferChannel">TpFileTransferChannel</a>,  <a class="link" href="telepathy-glib-stream-tube-channel.html#TpStreamTubeChannel">TpStreamTubeChannel</a> and  <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel">TpTextChannel</a>.</p>
</div>
<div class="refsect1">
<a name="TpChannelIface.properties"></a><h2>Properties</h2>
<pre class="synopsis">
  "<a class="link" href="TpChannelIface.html#TpChannelIface--channel-type" title='The "channel-type" property'>channel-type</a>"             <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write / Construct Only
  "<a class="link" href="TpChannelIface.html#TpChannelIface--handle" title='The "handle" property'>handle</a>"                   <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a>                 : Read / Write / Construct Only
  "<a class="link" href="TpChannelIface.html#TpChannelIface--handle-type" title='The "handle-type" property'>handle-type</a>"              <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a>                 : Read / Write / Construct Only
  "<a class="link" href="TpChannelIface.html#TpChannelIface--object-path" title='The "object-path" property'>object-path</a>"              <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write / Construct Only
</pre>
</div>
<div class="refsect1">
<a name="TpChannelIface.description"></a><h2>Description</h2>
<p>
This interface defines a basic set of channel properties. It's mainly
used in <a class="link" href="TpChannelFactoryIface.html" title="TpChannelFactoryIface"><span class="type">TpChannelFactoryIface</span></a> to represent the returned channel objects.
</p>
</div>
<div class="refsect1">
<a name="TpChannelIface.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="TpChannelFunc"></a><h3>TpChannelFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                (*TpChannelFunc)                    (<em class="parameter"><code><a class="link" href="TpChannelIface.html" title="TpChannelIface"><span class="type">TpChannelIface</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> userdata</code></em>);</pre>
<p>
A callback for functions which act on channels.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>An object implementing the channel interface</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>userdata</code></em> :</span></p></td>
<td>Arbitrary user-supplied data</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="TpChannelIface-struct"></a><h3>TpChannelIface</h3>
<pre class="programlisting">typedef struct _TpChannelIface TpChannelIface;</pre>
<p>
Opaque typedef representing a channel.
</p>
</div>
<hr>
<div class="refsect2">
<a name="TpChannelIfaceClass"></a><h3>struct TpChannelIfaceClass</h3>
<pre class="programlisting">struct TpChannelIfaceClass {
  GTypeInterface parent_class;
};
</pre>
<p>
The class of the <a class="link" href="TpChannelIface.html" title="TpChannelIface"><span class="type">TpChannelIface</span></a> interface.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GTypeInterface"><span class="type">GTypeInterface</span></a> <em class="structfield"><code><a name="TpChannelIfaceClass.parent-class"></a>parent_class</code></em>;</span></p></td>
<td>The parent interface</td>
</tr></tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="TpChannelIface.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="TpChannelIface--channel-type"></a><h3>The <code class="literal">"channel-type"</code> property</h3>
<pre class="programlisting">  "channel-type"             <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write / Construct Only</pre>
<p>
The D-Bus interface representing the type of this channel. Read-only
except during construction.
</p>
<p>
In <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> this property is read-only except during construction;
if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> during construction (the default), we ask the remote D-Bus
object what its channel type is, and reading this property will yield
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> until a reply is received. This is not guaranteed to have happened
until <a class="link" href="telepathy-glib-proxy.html#tp-proxy-prepare-async" title="tp_proxy_prepare_async ()"><code class="function">tp_proxy_prepare_async()</code></a> has finished preparing
<a class="link" href="telepathy-glib-channel.html#TP-CHANNEL-FEATURE-CORE:CAPS" title="TP_CHANNEL_FEATURE_CORE"><code class="literal">TP_CHANNEL_FEATURE_CORE</code></a>.
</p>
<p>
In connection manager implementations, attempts to set this property
during construction will usually be ignored or treated as an
error.
</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="TpChannelIface--handle"></a><h3>The <code class="literal">"handle"</code> property</h3>
<pre class="programlisting">  "handle"                   <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a>                 : Read / Write / Construct Only</pre>
<p>
This channel's associated handle, or 0 if no handle or unknown.
Read-only except during construction.
</p>
<p>
In <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a>, if this is 0
during construction, and handle-type is not TP_HANDLE_TYPE_NONE (== 0),
we ask the remote D-Bus object what its handle type is; reading this
property will yield 0 until we get the reply, or if <code class="function">GetHandle()</code>
fails. This is not guaranteed to be set until <a class="link" href="telepathy-glib-proxy.html#tp-proxy-prepare-async" title="tp_proxy_prepare_async ()"><code class="function">tp_proxy_prepare_async()</code></a>
has finished preparing <a class="link" href="telepathy-glib-channel.html#TP-CHANNEL-FEATURE-CORE:CAPS" title="TP_CHANNEL_FEATURE_CORE"><code class="literal">TP_CHANNEL_FEATURE_CORE</code></a>.
</p>
<p>
In connection manager implementations, attempts to set this during
construction might be ignored, depending on the channel type.
</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="TpChannelIface--handle-type"></a><h3>The <code class="literal">"handle-type"</code> property</h3>
<pre class="programlisting">  "handle-type"              <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a>                 : Read / Write / Construct Only</pre>
<p>
The <a class="link" href="telepathy-glib-enums.html#TpHandleType" title="enum TpHandleType"><span class="type">TpHandleType</span></a> of this channel's associated handle, or
<a class="link" href="telepathy-glib-enums.html#TP-HANDLE-TYPE-NONE:CAPS"><code class="literal">TP_HANDLE_TYPE_NONE</code></a> (which is numerically 0) if no handle.
</p>
<p>
In <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a>, if this is TP_UNKNOWN_HANDLE_TYPE
during construction, we ask the remote D-Bus object what its
handle type is; reading this property will yield TP_UNKNOWN_HANDLE_TYPE
until we get the reply. This is not guaranteed to be have happened
until <a class="link" href="telepathy-glib-proxy.html#tp-proxy-prepare-async" title="tp_proxy_prepare_async ()"><code class="function">tp_proxy_prepare_async()</code></a> has finished preparing
<a class="link" href="telepathy-glib-channel.html#TP-CHANNEL-FEATURE-CORE:CAPS" title="TP_CHANNEL_FEATURE_CORE"><code class="literal">TP_CHANNEL_FEATURE_CORE</code></a>.
</p>
<p>
In connection manager implementations, attempts to set this during
construction might also be ignored.
</p>
<p>Default value: 4294967295</p>
</div>
<hr>
<div class="refsect2">
<a name="TpChannelIface--object-path"></a><h3>The <code class="literal">"object-path"</code> property</h3>
<pre class="programlisting">  "object-path"              <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write / Construct Only</pre>
<p>
The D-Bus object path used for this object on the bus. Read-only
except during construction.
</p>
<p>Default value: NULL</p>
</div>
</div>
<div class="refsect1">
<a name="TpChannelIface.see-also"></a><h2>See Also</h2>
<a class="link" href="telepathy-glib-svc-channel.html#TpSvcChannel"><span class="type">TpSvcChannel</span></a>, <a class="link" href="TpChannelFactoryIface.html" title="TpChannelFactoryIface"><span class="type">TpChannelFactoryIface</span></a>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.19</div>
</body>
</html>