29
<!-- Generated by Doxygen 1.7.6.1 -->
30
<div id="nav-path" class="navpath">
32
<li class="navelem"><a class="el" href="a00724.html">Tp</a> </li>
33
<li class="navelem"><a class="el" href="a00401.html">StreamTubeChannel</a> </li>
29
<!-- Generated by Doxygen 1.8.5 -->
30
<div id="nav-path" class="navpath">
32
<li class="navelem"><a class="el" href="a00860.html">Tp</a></li><li class="navelem"><a class="el" href="a00401.html">MemberFunctor5</a></li> </ul>
37
35
<div class="header">
38
36
<div class="summary">
39
<a href="#signals">Signals</a> |
37
<a href="#pub-types">Public Types</a> |
40
38
<a href="#pub-methods">Public Member Functions</a> |
41
<a href="#pub-static-methods">Static Public Member Functions</a> |
42
<a href="#pub-static-attribs">Static Public Attributes</a> |
43
<a href="#pro-methods">Protected Member Functions</a> </div>
39
<a href="#pub-attribs">Public Attributes</a> |
40
<a href="a01039.html">List of all members</a> </div>
44
41
<div class="headertitle">
45
<div class="title">Tp::StreamTubeChannel Class Reference<div class="ingroups"><a class="el" href="a00739.html">Channel proxies</a></div></div> </div>
42
<div class="title">Tp::MemberFunctor5< R, T, Arg1, Arg2, Arg3, Arg4, Arg5 > Struct Template Reference</div> </div>
46
43
</div><!--header-->
47
44
<div class="contents">
48
<!-- doxytag: class="Tp::StreamTubeChannel" --><!-- doxytag: inherits="Tp::TubeChannel" -->
49
<p>The <a class="el" href="a00401.html" title="The StreamTubeChannel class represents a Telepathy channel of type StreamTube.">StreamTubeChannel</a> class represents a Telepathy channel of type StreamTube.
50
<a href="a00401.html#details">More...</a></p>
52
<p><code>#include <<a class="el" href="a00702_source.html">TelepathyQt/StreamTubeChannel</a>></code></p>
54
<p>Inherits <a class="el" href="a00412.html">Tp::TubeChannel</a>.</p>
56
<p>Inherited by <a class="el" href="a00253.html">Tp::IncomingStreamTubeChannel</a>, and <a class="el" href="a00300.html">Tp::OutgoingStreamTubeChannel</a>.</p>
58
<p><a href="a00941.html">List of all members.</a></p>
59
<h2><a name="signals"></a>
62
<li>void <a class="el" href="a00401.html#a5f85450588e2d896e6de3bacdbdeb3cc">newConnection</a> (uint connectionId)
63
<li>void <a class="el" href="a00401.html#a82d6927b2594f38f7e456385f4012012">connectionClosed</a> (uint connectionId, const QString &errorName, const QString &errorMessage)
65
<h2><a name="pub-methods"></a>
66
Public Member Functions</h2>
68
<li>virtual <a class="el" href="a00401.html#a670a7edc78854d28f5939fc56b255256">~StreamTubeChannel</a> ()
69
<li>QString <a class="el" href="a00401.html#ad25d53d8887f62bdc60c49c0f212a09b">service</a> () const
70
<li>bool <a class="el" href="a00401.html#a57a39b41239275e56c6e9dabdfe6ddb9">supportsIPv4SocketsOnLocalhost</a> () const
71
<li>bool <a class="el" href="a00401.html#a0af05f4159e124f86ac049b59df9a7a2">supportsIPv4SocketsWithSpecifiedAddress</a> () const
72
<li>bool <a class="el" href="a00401.html#a3e27bd9f2044d3c426ecde0d6833215d">supportsIPv6SocketsOnLocalhost</a> () const
73
<li>bool <a class="el" href="a00401.html#a9b32c022174410548d38b79eb8d2c8b9">supportsIPv6SocketsWithSpecifiedAddress</a> () const
74
<li>bool <a class="el" href="a00401.html#a76fa470eabdffcac7f7c05bd21d5c1cc">supportsUnixSocketsOnLocalhost</a> () const
75
<li>bool <a class="el" href="a00401.html#ac02fa715c03e8cd95fea129bd53027d2">supportsUnixSocketsWithCredentials</a> () const
76
<li>bool <a class="el" href="a00401.html#ac384eef8c7e96aff0dcb321488ee55f4">supportsAbstractUnixSocketsOnLocalhost</a> () const
77
<li>bool <a class="el" href="a00401.html#a1361c871ccb7a315cb133cc74e708337">supportsAbstractUnixSocketsWithCredentials</a> () const
78
<li>QSet< uint > <a class="el" href="a00401.html#aed3e952bc172ccd365aa885e0547945b">connections</a> () const
79
<li><a class="el" href="a00757.html#ga7c4136f60d444e2c62c9b6568cf96824">SocketAddressType</a> <a class="el" href="a00401.html#ad573db7778832e72613013c74c8a3fee">addressType</a> () const
80
<li>QPair< QHostAddress, quint16 > <a class="el" href="a00401.html#ab3e29d999bdf9a3c2b72c478c252892e">ipAddress</a> () const
81
<li>QString <a class="el" href="a00401.html#af626269a9b076f4b6bff0ad0551b39ef">localAddress</a> () const
83
<h2><a name="pub-static-methods"></a>
84
Static Public Member Functions</h2>
86
<li>static StreamTubeChannelPtr <a class="el" href="a00401.html#a7fcf100a3e44372bca8339f9360e5d88">create</a> (const ConnectionPtr &<a class="el" href="a00106.html#aa30315c7f2480e346ee8943df982c212">connection</a>, const QString &<a class="el" href="a00216.html#af95b104d2da1bb0c2ec5bc9cae224ecb">objectPath</a>, const QVariantMap &<a class="el" href="a00106.html#a0446ca8a0fe4251d5c0e9065304b0d94">immutableProperties</a>)
88
<h2><a name="pub-static-attribs"></a>
89
Static Public Attributes</h2>
91
<li>static const <a class="el" href="a00227.html">Feature</a> <a class="el" href="a00401.html#a1e74072fe858a01ce407559613df814c">FeatureCore</a>
92
<li>static const <a class="el" href="a00227.html">Feature</a> <a class="el" href="a00401.html#ac39339717d06a96b23cbfb7cbfc3540c">FeatureConnectionMonitoring</a>
94
<h2><a name="pro-methods"></a>
95
Protected Member Functions</h2>
97
<li><a class="el" href="a00401.html#a47929ec1d83df485725563e562c1656f">StreamTubeChannel</a> (const ConnectionPtr &<a class="el" href="a00106.html#aa30315c7f2480e346ee8943df982c212">connection</a>, const QString &<a class="el" href="a00216.html#af95b104d2da1bb0c2ec5bc9cae224ecb">objectPath</a>, const QVariantMap &<a class="el" href="a00106.html#a0446ca8a0fe4251d5c0e9065304b0d94">immutableProperties</a>, const <a class="el" href="a00227.html">Feature</a> &coreFeature=<a class="el" href="a00401.html#a1e74072fe858a01ce407559613df814c">StreamTubeChannel::FeatureCore</a>)
98
<li>void <a class="el" href="a00401.html#a0565694a41a26961abf4e1f239920dc0">addConnection</a> (uint <a class="el" href="a00106.html#aa30315c7f2480e346ee8943df982c212">connection</a>)
99
<li>void <a class="el" href="a00401.html#ae3f116cfe5b3a843f23eb1d98c46a786">removeConnection</a> (uint <a class="el" href="a00106.html#aa30315c7f2480e346ee8943df982c212">connection</a>, const QString &error, const QString &message)
100
<li>void <a class="el" href="a00401.html#a6529f1e57db95892102e77efa48d2b56">setAddressType</a> (<a class="el" href="a00757.html#ga7c4136f60d444e2c62c9b6568cf96824">SocketAddressType</a> type)
101
<li><a class="el" href="a00757.html#ga59816b3c275bf13857e694c6ecec5fc9">SocketAccessControl</a> <a class="el" href="a00401.html#aa5a1e3ccd70234bf1545e16f4202e74c">accessControl</a> () const
102
<li>void <a class="el" href="a00401.html#a11422822baae08b270baf238b107db4a">setAccessControl</a> (<a class="el" href="a00757.html#ga59816b3c275bf13857e694c6ecec5fc9">SocketAccessControl</a> <a class="el" href="a00401.html#aa5a1e3ccd70234bf1545e16f4202e74c">accessControl</a>)
103
<li>void <a class="el" href="a00401.html#a6af133554c88a3511945ea97852a6ba5">setIpAddress</a> (const QPair< QHostAddress, quint16 > &address)
104
<li>void <a class="el" href="a00401.html#a3793c2237941df78ed307350ce10421e">setLocalAddress</a> (const QString &address)
105
<li>bool <a class="el" href="a00401.html#a3449070e8220a8e12b029aea4b0b6fe9">isDroppingConnections</a> () const
107
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
108
<div class="textblock"><p>The <a class="el" href="a00401.html" title="The StreamTubeChannel class represents a Telepathy channel of type StreamTube.">StreamTubeChannel</a> class represents a Telepathy channel of type StreamTube. </p>
109
<p>It provides a transport for reliable and ordered data transfer, similar to SOCK_STREAM sockets.</p>
110
<p><a class="el" href="a00401.html" title="The StreamTubeChannel class represents a Telepathy channel of type StreamTube.">StreamTubeChannel</a> is an intermediate base class; <a class="el" href="a00300.html" title="The OutgoingStreamTubeChannel class represents an outgoing Telepathy channel of type StreamTube...">OutgoingStreamTubeChannel</a> and <a class="el" href="a00253.html" title="The IncomingStreamTubeChannel class represents an incoming Telepathy channel of type StreamTube...">IncomingStreamTubeChannel</a> are the specialized classes used for locally and remotely initiated tubes respectively.</p>
111
<p>For more details, please refer to <a href="http://telepathy.freedesktop.org/spec/">Telepathy specification</a>.</p>
112
<p>See <a class="el" href="a00001.html">Asynchronous Object Model</a>, <a class="el" href="a00029.html">Shared Pointer Usage</a> </p>
113
</div><hr/><h2>Constructor & Destructor Documentation</h2>
114
<a class="anchor" id="a670a7edc78854d28f5939fc56b255256"></a><!-- doxytag: member="Tp::StreamTubeChannel::~StreamTubeChannel" ref="a670a7edc78854d28f5939fc56b255256" args="()" -->
115
<div class="memitem">
116
<div class="memproto">
117
<table class="memname">
119
<td class="memname"><a class="el" href="a00401.html#a670a7edc78854d28f5939fc56b255256">Tp::StreamTubeChannel::~StreamTubeChannel</a> </td>
121
<td class="paramname"></td><td>)</td>
122
<td><code> [virtual]</code></td>
127
<p>Class destructor. </p>
131
<a class="anchor" id="a47929ec1d83df485725563e562c1656f"></a><!-- doxytag: member="Tp::StreamTubeChannel::StreamTubeChannel" ref="a47929ec1d83df485725563e562c1656f" args="(const ConnectionPtr &connection, const QString &objectPath, const QVariantMap &immutableProperties, const Feature &coreFeature=StreamTubeChannel::FeatureCore)" -->
132
<div class="memitem">
133
<div class="memproto">
134
<table class="memname">
136
<td class="memname"><a class="el" href="a00401.html#a47929ec1d83df485725563e562c1656f">Tp::StreamTubeChannel::StreamTubeChannel</a> </td>
138
<td class="paramtype">const ConnectionPtr & </td>
139
<td class="paramname"><em>connection</em>, </td>
142
<td class="paramkey"></td>
144
<td class="paramtype">const QString & </td>
145
<td class="paramname"><em>objectPath</em>, </td>
148
<td class="paramkey"></td>
150
<td class="paramtype">const QVariantMap & </td>
151
<td class="paramname"><em>immutableProperties</em>, </td>
154
<td class="paramkey"></td>
156
<td class="paramtype">const <a class="el" href="a00227.html">Feature</a> & </td>
157
<td class="paramname"><em>coreFeature</em> = <code><a class="el" href="a00401.html#a1e74072fe858a01ce407559613df814c">StreamTubeChannel::FeatureCore</a></code> </td>
162
<td></td><td><code> [protected]</code></td>
167
<p>Construct a new <a class="el" href="a00401.html" title="The StreamTubeChannel class represents a Telepathy channel of type StreamTube.">StreamTubeChannel</a> object.</p>
168
<dl class="params"><dt><b>Parameters:</b></dt><dd>
169
<table class="params">
170
<tr><td class="paramname">connection</td><td><a class="el" href="a00161.html" title="The Connection class represents a Telepathy connection.">Connection</a> owning this channel, and specifying the service. </td></tr>
171
<tr><td class="paramname">objectPath</td><td>The channel object path. </td></tr>
172
<tr><td class="paramname">immutableProperties</td><td>The channel immutable properties. </td></tr>
173
<tr><td class="paramname">coreFeature</td><td>The core feature of the channel type, if any. The corresponding introspectable should depend on <a class="el" href="a00401.html#a1e74072fe858a01ce407559613df814c">StreamTubeChannel::FeatureCore</a>. </td></tr>
180
<hr/><h2>Member Function Documentation</h2>
181
<a class="anchor" id="a7fcf100a3e44372bca8339f9360e5d88"></a><!-- doxytag: member="Tp::StreamTubeChannel::create" ref="a7fcf100a3e44372bca8339f9360e5d88" args="(const ConnectionPtr &connection, const QString &objectPath, const QVariantMap &immutableProperties)" -->
182
<div class="memitem">
183
<div class="memproto">
184
<table class="memname">
186
<td class="memname">StreamTubeChannelPtr <a class="el" href="a00401.html#a7fcf100a3e44372bca8339f9360e5d88">Tp::StreamTubeChannel::create</a> </td>
188
<td class="paramtype">const ConnectionPtr & </td>
189
<td class="paramname"><em>connection</em>, </td>
192
<td class="paramkey"></td>
194
<td class="paramtype">const QString & </td>
195
<td class="paramname"><em>objectPath</em>, </td>
198
<td class="paramkey"></td>
200
<td class="paramtype">const QVariantMap & </td>
201
<td class="paramname"><em>immutableProperties</em> </td>
206
<td></td><td><code> [static]</code></td>
211
<p>Create a new <a class="el" href="a00401.html" title="The StreamTubeChannel class represents a Telepathy channel of type StreamTube.">StreamTubeChannel</a> channel.</p>
212
<dl class="params"><dt><b>Parameters:</b></dt><dd>
213
<table class="params">
214
<tr><td class="paramname">connection</td><td><a class="el" href="a00161.html" title="The Connection class represents a Telepathy connection.">Connection</a> owning this channel, and specifying the service. </td></tr>
215
<tr><td class="paramname">objectPath</td><td>The channel object path. </td></tr>
216
<tr><td class="paramname">immutableProperties</td><td>The channel immutable properties. </td></tr>
220
<dl class="return"><dt><b>Returns:</b></dt><dd>A StreamTubeChannelPtr object pointing to the newly created <a class="el" href="a00401.html" title="The StreamTubeChannel class represents a Telepathy channel of type StreamTube.">StreamTubeChannel</a> object. </dd></dl>
222
<p>Reimplemented from <a class="el" href="a00412.html#afbb45e75124522c4895889ed41445306">Tp::TubeChannel</a>.</p>
224
<p>Reimplemented in <a class="el" href="a00253.html#a89b4f36f0440a9e270c1401c663ada3f">Tp::IncomingStreamTubeChannel</a>, and <a class="el" href="a00300.html#a4a375cccbb5d552527a777fd9180c344">Tp::OutgoingStreamTubeChannel</a>.</p>
228
<a class="anchor" id="ad25d53d8887f62bdc60c49c0f212a09b"></a><!-- doxytag: member="Tp::StreamTubeChannel::service" ref="ad25d53d8887f62bdc60c49c0f212a09b" args="() const " -->
229
<div class="memitem">
230
<div class="memproto">
231
<table class="memname">
233
<td class="memname">QString <a class="el" href="a00401.html#ad25d53d8887f62bdc60c49c0f212a09b">Tp::StreamTubeChannel::service</a> </td>
235
<td class="paramname"></td><td>)</td>
241
<p>Return the service name which will be used over this stream tube. This should be a well-known TCP service name, for instance "rsync" or "daap".</p>
242
<p>This method requires <a class="el" href="a00401.html#a1e74072fe858a01ce407559613df814c">StreamTubeChannel::FeatureCore</a> to be ready.</p>
243
<dl class="return"><dt><b>Returns:</b></dt><dd>The service name. </dd></dl>
247
<a class="anchor" id="a57a39b41239275e56c6e9dabdfe6ddb9"></a><!-- doxytag: member="Tp::StreamTubeChannel::supportsIPv4SocketsOnLocalhost" ref="a57a39b41239275e56c6e9dabdfe6ddb9" args="() const " -->
248
<div class="memitem">
249
<div class="memproto">
250
<table class="memname">
252
<td class="memname">bool <a class="el" href="a00401.html#a57a39b41239275e56c6e9dabdfe6ddb9">Tp::StreamTubeChannel::supportsIPv4SocketsOnLocalhost</a> </td>
254
<td class="paramname"></td><td>)</td>
260
<p>Return whether this stream tube is capable to accept or offer an IPv4 socket accepting all incoming connections coming from localhost.</p>
261
<p>Note that the <a href="http://telepathy.freedesktop.org/spec/">Telepathy specification</a> implies that any connection manager, if capable of providing stream tubes, must at least support IPv4 sockets with localhost access control. For this reason, this method should always return <code>true</code>.</p>
262
<p>This method requires <a class="el" href="a00401.html#a1e74072fe858a01ce407559613df814c">StreamTubeChannel::FeatureCore</a> to be ready.</p>
263
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the stream tube is capable to accept or offer an IPv4 socket accepting all incoming connections coming from localhost, <code>false</code> otherwise. </dd></dl>
264
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00253.html#a81e4fdcff28b00da56f0f77b7d68eeec">IncomingStreamTubeChannel::acceptTubeAsTcpSocket()</a>, <a class="el" href="a00300.html#a143e2df36036e3f7c9f86a5f696e5bcf">OutgoingStreamTubeChannel::offerTcpSocket()</a>, <a class="el" href="a00401.html#a0af05f4159e124f86ac049b59df9a7a2">supportsIPv4SocketsWithSpecifiedAddress()</a> </dd></dl>
268
<a class="anchor" id="a0af05f4159e124f86ac049b59df9a7a2"></a><!-- doxytag: member="Tp::StreamTubeChannel::supportsIPv4SocketsWithSpecifiedAddress" ref="a0af05f4159e124f86ac049b59df9a7a2" args="() const " -->
269
<div class="memitem">
270
<div class="memproto">
271
<table class="memname">
273
<td class="memname">bool <a class="el" href="a00401.html#a0af05f4159e124f86ac049b59df9a7a2">Tp::StreamTubeChannel::supportsIPv4SocketsWithSpecifiedAddress</a> </td>
275
<td class="paramname"></td><td>)</td>
281
<p>Return whether this stream tube is capable to accept an IPv4 socket accepting all incoming connections coming from a specific address for incoming tubes or whether this stream tube is capable of mapping connections to the socket's source address for outgoing tubes.</p>
282
<p>For incoming tubes, when this capability is available, the stream tube can be accepted specifying an IPv4 address. Every connection coming from any other address than the specified one will be rejected.</p>
283
<p>For outgoing tubes, when this capability is available, one can keep track of incoming connections by enabling <a class="el" href="a00401.html#ac39339717d06a96b23cbfb7cbfc3540c">StreamTubeChannel::FeatureConnectionMonitoring</a> (possibly before opening the stream tube itself), and checking <a class="el" href="a00300.html#abbbc29e5d3f18a86b1fac19fe7e71f17">OutgoingStreamTubeChannel::contactsForConnections()</a> or <a class="el" href="a00300.html#ab98c4b3e65fa2cc70fe079e8ac72fb30">OutgoingStreamTubeChannel::connectionsForSourceAddresses()</a>.</p>
284
<p>Note that it is strongly advised to call this method before attempting to call <a class="el" href="a00253.html#a81e4fdcff28b00da56f0f77b7d68eeec">IncomingStreamTubeChannel::acceptTubeAsTcpSocket()</a> or <a class="el" href="a00300.html#a143e2df36036e3f7c9f86a5f696e5bcf">OutgoingStreamTubeChannel::offerTcpSocket()</a> with a specified address to prevent failures, as the spec implies this feature is not compulsory for connection managers.</p>
285
<p>This method requires <a class="el" href="a00401.html#a1e74072fe858a01ce407559613df814c">StreamTubeChannel::FeatureCore</a> to be ready.</p>
286
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the stream tube is capable to accept an IPv4 socket accepting all incoming connections coming from a specific address for incoming tubes or the stream tube is capable of mapping connections to the socket's source address for outgoing tubes, <code>false</code> otherwise. </dd></dl>
287
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00253.html#a81e4fdcff28b00da56f0f77b7d68eeec">IncomingStreamTubeChannel::acceptTubeAsTcpSocket()</a>, <a class="el" href="a00300.html#a143e2df36036e3f7c9f86a5f696e5bcf">OutgoingStreamTubeChannel::offerTcpSocket()</a>, <a class="el" href="a00300.html#ab98c4b3e65fa2cc70fe079e8ac72fb30">OutgoingStreamTubeChannel::connectionsForSourceAddresses()</a>, <a class="el" href="a00300.html#abbbc29e5d3f18a86b1fac19fe7e71f17">OutgoingStreamTubeChannel::contactsForConnections()</a>, <a class="el" href="a00401.html#a57a39b41239275e56c6e9dabdfe6ddb9">supportsIPv4SocketsOnLocalhost()</a> </dd></dl>
291
<a class="anchor" id="a3e27bd9f2044d3c426ecde0d6833215d"></a><!-- doxytag: member="Tp::StreamTubeChannel::supportsIPv6SocketsOnLocalhost" ref="a3e27bd9f2044d3c426ecde0d6833215d" args="() const " -->
292
<div class="memitem">
293
<div class="memproto">
294
<table class="memname">
296
<td class="memname">bool <a class="el" href="a00401.html#a3e27bd9f2044d3c426ecde0d6833215d">Tp::StreamTubeChannel::supportsIPv6SocketsOnLocalhost</a> </td>
298
<td class="paramname"></td><td>)</td>
304
<p>Return whether this stream tube is capable to accept or offer an IPv6 socket accepting all incoming connections coming from localhost.</p>
305
<p>Note that it is strongly advised to call this method before attempting to call <a class="el" href="a00253.html#a81e4fdcff28b00da56f0f77b7d68eeec">IncomingStreamTubeChannel::acceptTubeAsTcpSocket()</a> or <a class="el" href="a00300.html#a143e2df36036e3f7c9f86a5f696e5bcf">OutgoingStreamTubeChannel::offerTcpSocket()</a> with a specified address to prevent failures, as the spec implies this feature is not compulsory for connection managers.</p>
306
<p>This method requires <a class="el" href="a00401.html#a1e74072fe858a01ce407559613df814c">StreamTubeChannel::FeatureCore</a> to be ready.</p>
307
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the stream tube is capable to accept or offer an IPv6 socket accepting all incoming connections coming from localhost, <code>false</code> otherwise. </dd></dl>
308
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00253.html#a81e4fdcff28b00da56f0f77b7d68eeec">IncomingStreamTubeChannel::acceptTubeAsTcpSocket()</a>, <a class="el" href="a00300.html#a143e2df36036e3f7c9f86a5f696e5bcf">OutgoingStreamTubeChannel::offerTcpSocket()</a>, <a class="el" href="a00401.html#a9b32c022174410548d38b79eb8d2c8b9">supportsIPv6SocketsWithSpecifiedAddress()</a> </dd></dl>
312
<a class="anchor" id="a9b32c022174410548d38b79eb8d2c8b9"></a><!-- doxytag: member="Tp::StreamTubeChannel::supportsIPv6SocketsWithSpecifiedAddress" ref="a9b32c022174410548d38b79eb8d2c8b9" args="() const " -->
313
<div class="memitem">
314
<div class="memproto">
315
<table class="memname">
317
<td class="memname">bool <a class="el" href="a00401.html#a9b32c022174410548d38b79eb8d2c8b9">Tp::StreamTubeChannel::supportsIPv6SocketsWithSpecifiedAddress</a> </td>
319
<td class="paramname"></td><td>)</td>
325
<p>Return whether this stream tube is capable to accept an IPv6 socket accepting all incoming connections coming from a specific address for incoming tubes or whether this stream tube is capable of mapping connections to the socket's source address for outgoing tubes.</p>
326
<p>For incoming tubes, when this capability is available, the stream tube can be accepted specifying an IPv6 address. Every connection coming from any other address than the specified one will be rejected.</p>
327
<p>For outgoing tubes, when this capability is available, one can keep track of incoming connections by enabling <a class="el" href="a00401.html#ac39339717d06a96b23cbfb7cbfc3540c">StreamTubeChannel::FeatureConnectionMonitoring</a> (possibly before opening the stream tube itself), and checking <a class="el" href="a00300.html#abbbc29e5d3f18a86b1fac19fe7e71f17">OutgoingStreamTubeChannel::contactsForConnections()</a> or <a class="el" href="a00300.html#ab98c4b3e65fa2cc70fe079e8ac72fb30">OutgoingStreamTubeChannel::connectionsForSourceAddresses()</a>.</p>
328
<p>Note that it is strongly advised to call this method before attempting to call <a class="el" href="a00253.html#a81e4fdcff28b00da56f0f77b7d68eeec">IncomingStreamTubeChannel::acceptTubeAsTcpSocket()</a> or <a class="el" href="a00300.html#a143e2df36036e3f7c9f86a5f696e5bcf">OutgoingStreamTubeChannel::offerTcpSocket()</a> with a specified address to prevent failures, as the spec implies this feature is not compulsory for connection managers.</p>
329
<p>This method requires <a class="el" href="a00401.html#a1e74072fe858a01ce407559613df814c">StreamTubeChannel::FeatureCore</a> to be ready.</p>
330
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the stream tube is capable to accept an IPv6 socket accepting all incoming connections coming from a specific address for incoming tubes or the stream tube is capable of mapping connections to the socket's source address for outgoing tubes, <code>false</code> otherwise. </dd></dl>
331
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00253.html#a81e4fdcff28b00da56f0f77b7d68eeec">IncomingStreamTubeChannel::acceptTubeAsTcpSocket()</a>, <a class="el" href="a00300.html#a143e2df36036e3f7c9f86a5f696e5bcf">OutgoingStreamTubeChannel::offerTcpSocket()</a>, <a class="el" href="a00300.html#ab98c4b3e65fa2cc70fe079e8ac72fb30">OutgoingStreamTubeChannel::connectionsForSourceAddresses()</a>, <a class="el" href="a00300.html#abbbc29e5d3f18a86b1fac19fe7e71f17">OutgoingStreamTubeChannel::contactsForConnections()</a>, <a class="el" href="a00401.html#a3e27bd9f2044d3c426ecde0d6833215d">supportsIPv6SocketsOnLocalhost()</a> </dd></dl>
335
<a class="anchor" id="a76fa470eabdffcac7f7c05bd21d5c1cc"></a><!-- doxytag: member="Tp::StreamTubeChannel::supportsUnixSocketsOnLocalhost" ref="a76fa470eabdffcac7f7c05bd21d5c1cc" args="() const " -->
336
<div class="memitem">
337
<div class="memproto">
338
<table class="memname">
340
<td class="memname">bool <a class="el" href="a00401.html#a76fa470eabdffcac7f7c05bd21d5c1cc">Tp::StreamTubeChannel::supportsUnixSocketsOnLocalhost</a> </td>
342
<td class="paramname"></td><td>)</td>
348
<p>Return whether this stream tube is capable to accept or offer an Unix socket accepting all incoming connections coming from localhost.</p>
349
<p>Note that it is strongly advised to call this method before attempting to call <a class="el" href="a00253.html#a85b4649b59e5ff5b1e501dad211e6ec1">IncomingStreamTubeChannel::acceptTubeAsUnixSocket()</a> or <a class="el" href="a00300.html#ac04f5fb54e80dd25c3d3da89d4d574a2">OutgoingStreamTubeChannel::offerUnixSocket()</a> without credentials enabled, as the spec implies this feature is not compulsory for connection managers.</p>
350
<p>This method requires <a class="el" href="a00401.html#a1e74072fe858a01ce407559613df814c">StreamTubeChannel::FeatureCore</a> to be ready.</p>
351
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the stream tube is capable to accept or offer an Unix socket accepting all incoming connections coming from localhost, <code>false</code> otherwise. </dd></dl>
352
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00253.html#a85b4649b59e5ff5b1e501dad211e6ec1">IncomingStreamTubeChannel::acceptTubeAsUnixSocket()</a>, <a class="el" href="a00300.html#ac04f5fb54e80dd25c3d3da89d4d574a2">OutgoingStreamTubeChannel::offerUnixSocket()</a>, <a class="el" href="a00401.html#ac02fa715c03e8cd95fea129bd53027d2">supportsUnixSocketsWithCredentials()</a> <a class="el" href="a00401.html#ac384eef8c7e96aff0dcb321488ee55f4">supportsAbstractUnixSocketsOnLocalhost()</a>, <a class="el" href="a00401.html#a1361c871ccb7a315cb133cc74e708337">supportsAbstractUnixSocketsWithCredentials()</a>, </dd></dl>
356
<a class="anchor" id="ac02fa715c03e8cd95fea129bd53027d2"></a><!-- doxytag: member="Tp::StreamTubeChannel::supportsUnixSocketsWithCredentials" ref="ac02fa715c03e8cd95fea129bd53027d2" args="() const " -->
357
<div class="memitem">
358
<div class="memproto">
359
<table class="memname">
361
<td class="memname">bool <a class="el" href="a00401.html#ac02fa715c03e8cd95fea129bd53027d2">Tp::StreamTubeChannel::supportsUnixSocketsWithCredentials</a> </td>
363
<td class="paramname"></td><td>)</td>
369
<p>Return whether this stream tube is capable to accept or offer an Unix socket which will require credentials upon connection.</p>
370
<p>When this capability is available and enabled, the connecting process must send a byte when it first connects, which is not considered to be part of the data stream. If the operating system uses sendmsg() with SCM_CREDS or SCM_CREDENTIALS to pass credentials over sockets, the connecting process must do so if possible; if not, it must still send the byte.</p>
371
<p>The listening process will disconnect the connection unless it can determine by OS-specific means that the connecting process has the same user ID as the listening process.</p>
372
<p>Note that it is strongly advised to call this method before attempting to call <a class="el" href="a00253.html#a85b4649b59e5ff5b1e501dad211e6ec1">IncomingStreamTubeChannel::acceptTubeAsUnixSocket()</a> or <a class="el" href="a00300.html#ac04f5fb54e80dd25c3d3da89d4d574a2">OutgoingStreamTubeChannel::offerUnixSocket()</a> with credentials enabled, as the spec implies this feature is not compulsory for connection managers.</p>
373
<p>This method requires <a class="el" href="a00401.html#a1e74072fe858a01ce407559613df814c">StreamTubeChannel::FeatureCore</a> to be ready.</p>
374
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the stream tube is capable to accept or offer an Unix socket which will require credentials upon connection, <code>false</code> otherwise. </dd></dl>
375
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00253.html#a85b4649b59e5ff5b1e501dad211e6ec1">IncomingStreamTubeChannel::acceptTubeAsUnixSocket()</a>, <a class="el" href="a00300.html#ac04f5fb54e80dd25c3d3da89d4d574a2">OutgoingStreamTubeChannel::offerUnixSocket()</a>, <a class="el" href="a00401.html#a76fa470eabdffcac7f7c05bd21d5c1cc">supportsUnixSocketsOnLocalhost()</a>, <a class="el" href="a00401.html#ac384eef8c7e96aff0dcb321488ee55f4">supportsAbstractUnixSocketsOnLocalhost()</a>, <a class="el" href="a00401.html#a1361c871ccb7a315cb133cc74e708337">supportsAbstractUnixSocketsWithCredentials()</a>, </dd></dl>
379
<a class="anchor" id="ac384eef8c7e96aff0dcb321488ee55f4"></a><!-- doxytag: member="Tp::StreamTubeChannel::supportsAbstractUnixSocketsOnLocalhost" ref="ac384eef8c7e96aff0dcb321488ee55f4" args="() const " -->
380
<div class="memitem">
381
<div class="memproto">
382
<table class="memname">
384
<td class="memname">bool <a class="el" href="a00401.html#ac384eef8c7e96aff0dcb321488ee55f4">Tp::StreamTubeChannel::supportsAbstractUnixSocketsOnLocalhost</a> </td>
386
<td class="paramname"></td><td>)</td>
392
<p>Return whether this stream tube is capable to accept or offer an abstract Unix socket accepting all incoming connections coming from localhost.</p>
393
<p>Note that it is strongly advised to call this method before attempting to call <a class="el" href="a00253.html#a85b4649b59e5ff5b1e501dad211e6ec1">IncomingStreamTubeChannel::acceptTubeAsUnixSocket()</a> or <a class="el" href="a00300.html#ac04f5fb54e80dd25c3d3da89d4d574a2">OutgoingStreamTubeChannel::offerUnixSocket()</a> without credentials enabled, as the spec implies this feature is not compulsory for connection managers.</p>
394
<p>This method requires <a class="el" href="a00401.html#a1e74072fe858a01ce407559613df814c">StreamTubeChannel::FeatureCore</a> to be ready.</p>
395
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the stream tube is capable to accept or offer an abstract Unix socket accepting all incoming connections coming from localhost, <code>false</code> otherwise. </dd></dl>
396
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00253.html#a85b4649b59e5ff5b1e501dad211e6ec1">IncomingStreamTubeChannel::acceptTubeAsUnixSocket()</a>, <a class="el" href="a00300.html#ac04f5fb54e80dd25c3d3da89d4d574a2">OutgoingStreamTubeChannel::offerUnixSocket()</a>, <a class="el" href="a00401.html#a76fa470eabdffcac7f7c05bd21d5c1cc">supportsUnixSocketsOnLocalhost()</a>, <a class="el" href="a00401.html#ac02fa715c03e8cd95fea129bd53027d2">supportsUnixSocketsWithCredentials()</a>, <a class="el" href="a00401.html#a1361c871ccb7a315cb133cc74e708337">supportsAbstractUnixSocketsWithCredentials()</a> </dd></dl>
400
<a class="anchor" id="a1361c871ccb7a315cb133cc74e708337"></a><!-- doxytag: member="Tp::StreamTubeChannel::supportsAbstractUnixSocketsWithCredentials" ref="a1361c871ccb7a315cb133cc74e708337" args="() const " -->
401
<div class="memitem">
402
<div class="memproto">
403
<table class="memname">
405
<td class="memname">bool <a class="el" href="a00401.html#a1361c871ccb7a315cb133cc74e708337">Tp::StreamTubeChannel::supportsAbstractUnixSocketsWithCredentials</a> </td>
407
<td class="paramname"></td><td>)</td>
413
<p>Return whether this stream tube is capable to accept or offer an abstract Unix socket which will require credentials upon connection.</p>
414
<p>When this capability is available and enabled, the connecting process must send a byte when it first connects, which is not considered to be part of the data stream. If the operating system uses sendmsg() with SCM_CREDS or SCM_CREDENTIALS to pass credentials over sockets, the connecting process must do so if possible; if not, it must still send the byte.</p>
415
<p>The listening process will disconnect the connection unless it can determine by OS-specific means that the connecting process has the same user ID as the listening process.</p>
416
<p>Note that it is strongly advised to call this method before attempting to call <a class="el" href="a00253.html#a85b4649b59e5ff5b1e501dad211e6ec1">IncomingStreamTubeChannel::acceptTubeAsUnixSocket()</a> or <a class="el" href="a00300.html#ac04f5fb54e80dd25c3d3da89d4d574a2">OutgoingStreamTubeChannel::offerUnixSocket()</a> with credentials enabled, as the spec implies this feature is not compulsory for connection managers.</p>
417
<p>This method requires <a class="el" href="a00401.html#a1e74072fe858a01ce407559613df814c">StreamTubeChannel::FeatureCore</a> to be ready.</p>
418
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the stream tube is capable to accept or offer an abstract Unix socket which will require credentials upon connection, <code>false</code> otherwise. </dd></dl>
419
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00253.html#a85b4649b59e5ff5b1e501dad211e6ec1">IncomingStreamTubeChannel::acceptTubeAsUnixSocket()</a>, <a class="el" href="a00300.html#ac04f5fb54e80dd25c3d3da89d4d574a2">OutgoingStreamTubeChannel::offerUnixSocket()</a>, <a class="el" href="a00401.html#a76fa470eabdffcac7f7c05bd21d5c1cc">supportsUnixSocketsOnLocalhost()</a>, <a class="el" href="a00401.html#ac02fa715c03e8cd95fea129bd53027d2">supportsUnixSocketsWithCredentials()</a>, <a class="el" href="a00401.html#ac384eef8c7e96aff0dcb321488ee55f4">supportsAbstractUnixSocketsOnLocalhost()</a> </dd></dl>
423
<a class="anchor" id="aed3e952bc172ccd365aa885e0547945b"></a><!-- doxytag: member="Tp::StreamTubeChannel::connections" ref="aed3e952bc172ccd365aa885e0547945b" args="() const " -->
424
<div class="memitem">
425
<div class="memproto">
426
<table class="memname">
428
<td class="memname">QSet< uint > <a class="el" href="a00401.html#aed3e952bc172ccd365aa885e0547945b">Tp::StreamTubeChannel::connections</a> </td>
430
<td class="paramname"></td><td>)</td>
436
<p>Return all the known active connections since <a class="el" href="a00401.html#ac39339717d06a96b23cbfb7cbfc3540c">StreamTubeChannel::FeatureConnectionMonitoring</a> has been enabled.</p>
437
<p>For this method to return all known connections, you need to make <a class="el" href="a00401.html#ac39339717d06a96b23cbfb7cbfc3540c">StreamTubeChannel::FeatureConnectionMonitoring</a> ready before accepting or offering the stream tube.</p>
438
<p>This method requires <a class="el" href="a00401.html#ac39339717d06a96b23cbfb7cbfc3540c">StreamTubeChannel::FeatureConnectionMonitoring</a> to be ready.</p>
439
<dl class="return"><dt><b>Returns:</b></dt><dd>The list of active connection ids. </dd></dl>
440
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00401.html#a5f85450588e2d896e6de3bacdbdeb3cc">newConnection()</a>, <a class="el" href="a00401.html#a82d6927b2594f38f7e456385f4012012">connectionClosed()</a> </dd></dl>
444
<a class="anchor" id="ad573db7778832e72613013c74c8a3fee"></a><!-- doxytag: member="Tp::StreamTubeChannel::addressType" ref="ad573db7778832e72613013c74c8a3fee" args="() const " -->
445
<div class="memitem">
446
<div class="memproto">
447
<table class="memname">
449
<td class="memname"><a class="el" href="a00757.html#ga7c4136f60d444e2c62c9b6568cf96824">SocketAddressType</a> <a class="el" href="a00401.html#ad573db7778832e72613013c74c8a3fee">Tp::StreamTubeChannel::addressType</a> </td>
451
<td class="paramname"></td><td>)</td>
457
<p>Return the type of the tube's local endpoint socket.</p>
458
<p>Note that this function will return a valid value only after <a class="el" href="a00412.html#a9e5cd49ad6bfde378a79cdf69b8265dc">state()</a> has gone <a class="el" href="a00724.html#ga53f50d894433ea4833ff1e751afa14a0ad6c6b4da4bb3b838bf5b77f59b060e1c">TubeStateOpen</a>.</p>
459
<dl class="return"><dt><b>Returns:</b></dt><dd>The socket type as <a class="el" href="a00757.html#ga7c4136f60d444e2c62c9b6568cf96824">SocketAddressType</a>. </dd></dl>
460
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00401.html#af626269a9b076f4b6bff0ad0551b39ef">localAddress()</a>, <a class="el" href="a00401.html#ab3e29d999bdf9a3c2b72c478c252892e">ipAddress()</a> </dd></dl>
464
<a class="anchor" id="ab3e29d999bdf9a3c2b72c478c252892e"></a><!-- doxytag: member="Tp::StreamTubeChannel::ipAddress" ref="ab3e29d999bdf9a3c2b72c478c252892e" args="() const " -->
465
<div class="memitem">
466
<div class="memproto">
467
<table class="memname">
469
<td class="memname">QPair< QHostAddress, quint16 > <a class="el" href="a00401.html#ab3e29d999bdf9a3c2b72c478c252892e">Tp::StreamTubeChannel::ipAddress</a> </td>
471
<td class="paramname"></td><td>)</td>
477
<p>Return the IP address/port combination used by this stream tube.</p>
478
<p>This method will return a meaningful value only if the local endpoint socket for the tube is a TCP socket, i.e. <a class="el" href="a00401.html#ad573db7778832e72613013c74c8a3fee">addressType()</a> is <a class="el" href="a00724.html#ga7c4136f60d444e2c62c9b6568cf96824ac3d350676a2a8f1a0024e8a22de2a752">SocketAddressTypeIPv4</a> or <a class="el" href="a00724.html#ga7c4136f60d444e2c62c9b6568cf96824a58293e917107b6c17bc6997bdbbdbdb3">SocketAddressTypeIPv6</a>.</p>
479
<p>Note that this function will return a valid value only after <a class="el" href="a00412.html#a9e5cd49ad6bfde378a79cdf69b8265dc">state()</a> has gone <a class="el" href="a00724.html#ga53f50d894433ea4833ff1e751afa14a0ad6c6b4da4bb3b838bf5b77f59b060e1c">TubeStateOpen</a>.</p>
480
<dl class="return"><dt><b>Returns:</b></dt><dd>Pair of IP address as QHostAddress and port if using a TCP socket, or an undefined value otherwise. </dd></dl>
481
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00401.html#af626269a9b076f4b6bff0ad0551b39ef">localAddress()</a> </dd></dl>
485
<a class="anchor" id="af626269a9b076f4b6bff0ad0551b39ef"></a><!-- doxytag: member="Tp::StreamTubeChannel::localAddress" ref="af626269a9b076f4b6bff0ad0551b39ef" args="() const " -->
486
<div class="memitem">
487
<div class="memproto">
488
<table class="memname">
490
<td class="memname">QString <a class="el" href="a00401.html#af626269a9b076f4b6bff0ad0551b39ef">Tp::StreamTubeChannel::localAddress</a> </td>
492
<td class="paramname"></td><td>)</td>
498
<p>Return the local address used by this stream tube.</p>
499
<p>This method will return a meaningful value only if the local endpoint socket for the tube is an UNIX socket, i.e. <a class="el" href="a00401.html#ad573db7778832e72613013c74c8a3fee">addressType()</a> is <a class="el" href="a00724.html#ga7c4136f60d444e2c62c9b6568cf96824af3e31ed96405c22c9c255ab087aa0202">SocketAddressTypeUnix</a> or <a class="el" href="a00724.html#ga7c4136f60d444e2c62c9b6568cf96824a205dd31f0952d22fd896541321646d91">SocketAddressTypeAbstractUnix</a>.</p>
500
<p>Note that this function will return a valid value only after <a class="el" href="a00412.html#a9e5cd49ad6bfde378a79cdf69b8265dc">state()</a> has gone <a class="el" href="a00724.html#ga53f50d894433ea4833ff1e751afa14a0ad6c6b4da4bb3b838bf5b77f59b060e1c">TubeStateOpen</a>.</p>
501
<dl class="return"><dt><b>Returns:</b></dt><dd>Unix socket address if using an Unix socket, or an undefined value otherwise. </dd></dl>
502
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00401.html#ab3e29d999bdf9a3c2b72c478c252892e">ipAddress()</a> </dd></dl>
506
<a class="anchor" id="a5f85450588e2d896e6de3bacdbdeb3cc"></a><!-- doxytag: member="Tp::StreamTubeChannel::newConnection" ref="a5f85450588e2d896e6de3bacdbdeb3cc" args="(uint connectionId)" -->
507
<div class="memitem">
508
<div class="memproto">
509
<table class="memname">
511
<td class="memname">void <a class="el" href="a00401.html#a5f85450588e2d896e6de3bacdbdeb3cc">Tp::StreamTubeChannel::newConnection</a> </td>
513
<td class="paramtype">uint </td>
514
<td class="paramname"><em>connectionId</em></td><td>)</td>
515
<td><code> [signal]</code></td>
523
<a class="anchor" id="a82d6927b2594f38f7e456385f4012012"></a><!-- doxytag: member="Tp::StreamTubeChannel::connectionClosed" ref="a82d6927b2594f38f7e456385f4012012" args="(uint connectionId, const QString &errorName, const QString &errorMessage)" -->
524
<div class="memitem">
525
<div class="memproto">
526
<table class="memname">
528
<td class="memname">void <a class="el" href="a00401.html#a82d6927b2594f38f7e456385f4012012">Tp::StreamTubeChannel::connectionClosed</a> </td>
530
<td class="paramtype">uint </td>
531
<td class="paramname"><em>connectionId</em>, </td>
534
<td class="paramkey"></td>
536
<td class="paramtype">const QString & </td>
537
<td class="paramname"><em>errorName</em>, </td>
540
<td class="paramkey"></td>
542
<td class="paramtype">const QString & </td>
543
<td class="paramname"><em>errorMessage</em> </td>
548
<td></td><td><code> [signal]</code></td>
553
<p>Emitted when a connection on this stream tube has been closed.</p>
554
<dl class="params"><dt><b>Parameters:</b></dt><dd>
555
<table class="params">
556
<tr><td class="paramname">connectionId</td><td>The unique ID associated with the connection that was closed. </td></tr>
557
<tr><td class="paramname">errorName</td><td>The name of a D-Bus error describing the error that occurred. </td></tr>
558
<tr><td class="paramname">errorMessage</td><td>A debugging message associated with the error. </td></tr>
562
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00401.html#a5f85450588e2d896e6de3bacdbdeb3cc">newConnection()</a>, <a class="el" href="a00401.html#aed3e952bc172ccd365aa885e0547945b">connections()</a> </dd></dl>
566
<a class="anchor" id="a0565694a41a26961abf4e1f239920dc0"></a><!-- doxytag: member="Tp::StreamTubeChannel::addConnection" ref="a0565694a41a26961abf4e1f239920dc0" args="(uint connection)" -->
567
<div class="memitem">
568
<div class="memproto">
569
<table class="memname">
571
<td class="memname">void <a class="el" href="a00401.html#a0565694a41a26961abf4e1f239920dc0">Tp::StreamTubeChannel::addConnection</a> </td>
573
<td class="paramtype">uint </td>
574
<td class="paramname"><em>connection</em></td><td>)</td>
575
<td><code> [protected]</code></td>
583
<a class="anchor" id="ae3f116cfe5b3a843f23eb1d98c46a786"></a><!-- doxytag: member="Tp::StreamTubeChannel::removeConnection" ref="ae3f116cfe5b3a843f23eb1d98c46a786" args="(uint connection, const QString &error, const QString &message)" -->
584
<div class="memitem">
585
<div class="memproto">
586
<table class="memname">
588
<td class="memname">void <a class="el" href="a00401.html#ae3f116cfe5b3a843f23eb1d98c46a786">Tp::StreamTubeChannel::removeConnection</a> </td>
590
<td class="paramtype">uint </td>
591
<td class="paramname"><em>connection</em>, </td>
594
<td class="paramkey"></td>
596
<td class="paramtype">const QString & </td>
597
<td class="paramname"><em>error</em>, </td>
600
<td class="paramkey"></td>
602
<td class="paramtype">const QString & </td>
603
<td class="paramname"><em>message</em> </td>
608
<td></td><td><code> [protected]</code></td>
616
<a class="anchor" id="a6529f1e57db95892102e77efa48d2b56"></a><!-- doxytag: member="Tp::StreamTubeChannel::setAddressType" ref="a6529f1e57db95892102e77efa48d2b56" args="(SocketAddressType type)" -->
617
<div class="memitem">
618
<div class="memproto">
619
<table class="memname">
621
<td class="memname">void <a class="el" href="a00401.html#a6529f1e57db95892102e77efa48d2b56">Tp::StreamTubeChannel::setAddressType</a> </td>
623
<td class="paramtype"><a class="el" href="a00757.html#ga7c4136f60d444e2c62c9b6568cf96824">SocketAddressType</a> </td>
624
<td class="paramname"><em>type</em></td><td>)</td>
625
<td><code> [protected]</code></td>
633
<a class="anchor" id="aa5a1e3ccd70234bf1545e16f4202e74c"></a><!-- doxytag: member="Tp::StreamTubeChannel::accessControl" ref="aa5a1e3ccd70234bf1545e16f4202e74c" args="() const " -->
634
<div class="memitem">
635
<div class="memproto">
636
<table class="memname">
638
<td class="memname"><a class="el" href="a00757.html#ga59816b3c275bf13857e694c6ecec5fc9">SocketAccessControl</a> <a class="el" href="a00401.html#aa5a1e3ccd70234bf1545e16f4202e74c">Tp::StreamTubeChannel::accessControl</a> </td>
640
<td class="paramname"></td><td>)</td>
641
<td> const<code> [protected]</code></td>
646
<p>Return the access control used by this stream tube.</p>
647
<p>Note that this function will only return a valid value after <a class="el" href="a00412.html#a9e5cd49ad6bfde378a79cdf69b8265dc">state()</a> has gone <a class="el" href="a00724.html#ga53f50d894433ea4833ff1e751afa14a0ad6c6b4da4bb3b838bf5b77f59b060e1c">TubeStateOpen</a>.</p>
648
<dl class="return"><dt><b>Returns:</b></dt><dd>The access control as <a class="el" href="a00757.html#ga59816b3c275bf13857e694c6ecec5fc9">SocketAccessControl</a>. </dd></dl>
649
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00401.html#ad573db7778832e72613013c74c8a3fee">addressType()</a> </dd></dl>
653
<a class="anchor" id="a11422822baae08b270baf238b107db4a"></a><!-- doxytag: member="Tp::StreamTubeChannel::setAccessControl" ref="a11422822baae08b270baf238b107db4a" args="(SocketAccessControl accessControl)" -->
654
<div class="memitem">
655
<div class="memproto">
656
<table class="memname">
658
<td class="memname">void <a class="el" href="a00401.html#a11422822baae08b270baf238b107db4a">Tp::StreamTubeChannel::setAccessControl</a> </td>
660
<td class="paramtype"><a class="el" href="a00757.html#ga59816b3c275bf13857e694c6ecec5fc9">SocketAccessControl</a> </td>
661
<td class="paramname"><em>accessControl</em></td><td>)</td>
662
<td><code> [protected]</code></td>
670
<a class="anchor" id="a6af133554c88a3511945ea97852a6ba5"></a><!-- doxytag: member="Tp::StreamTubeChannel::setIpAddress" ref="a6af133554c88a3511945ea97852a6ba5" args="(const QPair< QHostAddress, quint16 > &address)" -->
671
<div class="memitem">
672
<div class="memproto">
673
<table class="memname">
675
<td class="memname">void <a class="el" href="a00401.html#a6af133554c88a3511945ea97852a6ba5">Tp::StreamTubeChannel::setIpAddress</a> </td>
677
<td class="paramtype">const QPair< QHostAddress, quint16 > & </td>
678
<td class="paramname"><em>address</em></td><td>)</td>
679
<td><code> [protected]</code></td>
687
<a class="anchor" id="a3793c2237941df78ed307350ce10421e"></a><!-- doxytag: member="Tp::StreamTubeChannel::setLocalAddress" ref="a3793c2237941df78ed307350ce10421e" args="(const QString &address)" -->
688
<div class="memitem">
689
<div class="memproto">
690
<table class="memname">
692
<td class="memname">void <a class="el" href="a00401.html#a3793c2237941df78ed307350ce10421e">Tp::StreamTubeChannel::setLocalAddress</a> </td>
694
<td class="paramtype">const QString & </td>
695
<td class="paramname"><em>address</em></td><td>)</td>
696
<td><code> [protected]</code></td>
704
<a class="anchor" id="a3449070e8220a8e12b029aea4b0b6fe9"></a><!-- doxytag: member="Tp::StreamTubeChannel::isDroppingConnections" ref="a3449070e8220a8e12b029aea4b0b6fe9" args="() const " -->
705
<div class="memitem">
706
<div class="memproto">
707
<table class="memname">
709
<td class="memname">bool <a class="el" href="a00401.html#a3449070e8220a8e12b029aea4b0b6fe9">Tp::StreamTubeChannel::isDroppingConnections</a> </td>
711
<td class="paramname"></td><td>)</td>
712
<td> const<code> [protected]</code></td>
720
<hr/><h2>Member Data Documentation</h2>
721
<a class="anchor" id="a1e74072fe858a01ce407559613df814c"></a><!-- doxytag: member="Tp::StreamTubeChannel::FeatureCore" ref="a1e74072fe858a01ce407559613df814c" args="" -->
722
<div class="memitem">
723
<div class="memproto">
724
<table class="memname">
726
<td class="memname">const <a class="el" href="a00227.html">Feature</a> <a class="el" href="a00401.html#a1e74072fe858a01ce407559613df814c">Tp::StreamTubeChannel::FeatureCore</a><code> [static]</code></td>
731
<p><a class="el" href="a00227.html" title="The Feature class represents a feature that can be enabled on demand.">Feature</a> representing the core that needs to become ready to make the <a class="el" href="a00401.html" title="The StreamTubeChannel class represents a Telepathy channel of type StreamTube.">StreamTubeChannel</a> object usable.</p>
732
<p>Note that this feature must be enabled in order to use most <a class="el" href="a00401.html" title="The StreamTubeChannel class represents a Telepathy channel of type StreamTube.">StreamTubeChannel</a> methods. See specific methods documentation for more details. </p>
734
<p>Reimplemented from <a class="el" href="a00412.html#a0c08aeb853f66ffdf990a02ece5d2c65">Tp::TubeChannel</a>.</p>
736
<p>Reimplemented in <a class="el" href="a00253.html#a8d39c272c1f678db8e3fc325cd32ece6">Tp::IncomingStreamTubeChannel</a>, and <a class="el" href="a00300.html#a7ee76e14dcce84aa8a26474edd4160f2">Tp::OutgoingStreamTubeChannel</a>.</p>
740
<a class="anchor" id="ac39339717d06a96b23cbfb7cbfc3540c"></a><!-- doxytag: member="Tp::StreamTubeChannel::FeatureConnectionMonitoring" ref="ac39339717d06a96b23cbfb7cbfc3540c" args="" -->
741
<div class="memitem">
742
<div class="memproto">
743
<table class="memname">
745
<td class="memname">const <a class="el" href="a00227.html">Feature</a> <a class="el" href="a00401.html#ac39339717d06a96b23cbfb7cbfc3540c">Tp::StreamTubeChannel::FeatureConnectionMonitoring</a><code> [static]</code></td>
750
<p><a class="el" href="a00227.html" title="The Feature class represents a feature that can be enabled on demand.">Feature</a> used in order to monitor connections to this stream tube.</p>
751
<p>See connection monitoring specific methods' documentation for more details.</p>
752
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00401.html#a5f85450588e2d896e6de3bacdbdeb3cc">newConnection()</a>, <a class="el" href="a00401.html#a82d6927b2594f38f7e456385f4012012">connectionClosed()</a> </dd></dl>
46
<p><code>#include <<a class="el" href="a00708_source.html">/home/kaffeine/devel/gsoc/release/telepathy-qt/TelepathyQt/functors.h</a>></code></p>
48
<p>Inherits <a class="el" href="a00125.html">Tp::BaseFunctor</a>.</p>
49
<table class="memberdecls">
50
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
51
Public Types</h2></td></tr>
52
<tr class="memitem:ab2d678ce00ef081437c27fb0fa734d60"><td class="memItemLeft" align="right" valign="top">typedef R(T::* </td><td class="memItemRight" valign="bottom"><a class="el" href="a00401.html#ab2d678ce00ef081437c27fb0fa734d60">FunctionType</a> )(Arg1, Arg2, Arg3, Arg4, Arg5)</td></tr>
53
<tr class="separator:ab2d678ce00ef081437c27fb0fa734d60"><td class="memSeparator" colspan="2"> </td></tr>
54
<tr class="memitem:a09518cab4836da0b2b3a1253cdcc5ab2"><td class="memItemLeft" align="right" valign="top">typedef R </td><td class="memItemRight" valign="bottom"><a class="el" href="a00401.html#a09518cab4836da0b2b3a1253cdcc5ab2">ResultType</a></td></tr>
55
<tr class="separator:a09518cab4836da0b2b3a1253cdcc5ab2"><td class="memSeparator" colspan="2"> </td></tr>
56
</table><table class="memberdecls">
57
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
58
Public Member Functions</h2></td></tr>
59
<tr class="memitem:acfd94005025a0ec05f5088742c9115e5"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00401.html#acfd94005025a0ec05f5088742c9115e5">MemberFunctor5</a> (T *<a class="el" href="a00401.html#a238734aa28508ef29e26d67302ad0df2">object</a>, <a class="el" href="a00401.html#ab2d678ce00ef081437c27fb0fa734d60">FunctionType</a> <a class="el" href="a00401.html#aba0ff8bbffa9ebedfe29597840fa65b1">fn</a>)</td></tr>
60
<tr class="separator:acfd94005025a0ec05f5088742c9115e5"><td class="memSeparator" colspan="2"> </td></tr>
61
<tr class="memitem:aee5fe4dadf4113bc23aeea7930803b6e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00401.html#a09518cab4836da0b2b3a1253cdcc5ab2">ResultType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00401.html#aee5fe4dadf4113bc23aeea7930803b6e">operator()</a> (Arg1 a1, Arg2 a2, Arg3 a3, Arg4 a4, Arg5 a5) const </td></tr>
62
<tr class="separator:aee5fe4dadf4113bc23aeea7930803b6e"><td class="memSeparator" colspan="2"> </td></tr>
63
</table><table class="memberdecls">
64
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
65
Public Attributes</h2></td></tr>
66
<tr class="memitem:a238734aa28508ef29e26d67302ad0df2"><td class="memItemLeft" align="right" valign="top">T * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00401.html#a238734aa28508ef29e26d67302ad0df2">object</a></td></tr>
67
<tr class="separator:a238734aa28508ef29e26d67302ad0df2"><td class="memSeparator" colspan="2"> </td></tr>
68
<tr class="memitem:aba0ff8bbffa9ebedfe29597840fa65b1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00401.html#ab2d678ce00ef081437c27fb0fa734d60">FunctionType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00401.html#aba0ff8bbffa9ebedfe29597840fa65b1">fn</a></td></tr>
69
<tr class="separator:aba0ff8bbffa9ebedfe29597840fa65b1"><td class="memSeparator" colspan="2"> </td></tr>
71
<h2 class="groupheader">Member Typedef Documentation</h2>
72
<a class="anchor" id="ab2d678ce00ef081437c27fb0fa734d60"></a>
74
<div class="memproto">
75
<div class="memtemplate">
76
template<class R, class T, class Arg1, class Arg2, class Arg3, class Arg4, class Arg5> </div>
77
<table class="memname">
79
<td class="memname">typedef R(T::* <a class="el" href="a00401.html">Tp::MemberFunctor5</a>< R, T, Arg1, Arg2, Arg3, Arg4, Arg5 >::FunctionType)(Arg1, Arg2, Arg3, Arg4, Arg5)</td>
82
</div><div class="memdoc">
86
<a class="anchor" id="a09518cab4836da0b2b3a1253cdcc5ab2"></a>
88
<div class="memproto">
89
<div class="memtemplate">
90
template<class R, class T, class Arg1, class Arg2, class Arg3, class Arg4, class Arg5> </div>
91
<table class="memname">
93
<td class="memname">typedef R <a class="el" href="a00401.html">Tp::MemberFunctor5</a>< R, T, Arg1, Arg2, Arg3, Arg4, Arg5 >::<a class="el" href="a00401.html#a09518cab4836da0b2b3a1253cdcc5ab2">ResultType</a></td>
96
</div><div class="memdoc">
100
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
101
<a class="anchor" id="acfd94005025a0ec05f5088742c9115e5"></a>
102
<div class="memitem">
103
<div class="memproto">
104
<div class="memtemplate">
105
template<class R, class T, class Arg1, class Arg2, class Arg3, class Arg4, class Arg5> </div>
106
<table class="mlabels">
108
<td class="mlabels-left">
109
<table class="memname">
111
<td class="memname"><a class="el" href="a00401.html">Tp::MemberFunctor5</a>< R, T, Arg1, Arg2, Arg3, Arg4, Arg5 >::<a class="el" href="a00401.html">MemberFunctor5</a> </td>
113
<td class="paramtype">T * </td>
114
<td class="paramname"><em>object</em>, </td>
117
<td class="paramkey"></td>
119
<td class="paramtype"><a class="el" href="a00401.html#ab2d678ce00ef081437c27fb0fa734d60">FunctionType</a> </td>
120
<td class="paramname"><em>fn</em> </td>
129
<td class="mlabels-right">
130
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
133
</div><div class="memdoc">
137
<h2 class="groupheader">Member Function Documentation</h2>
138
<a class="anchor" id="aee5fe4dadf4113bc23aeea7930803b6e"></a>
139
<div class="memitem">
140
<div class="memproto">
141
<div class="memtemplate">
142
template<class R, class T, class Arg1, class Arg2, class Arg3, class Arg4, class Arg5> </div>
143
<table class="mlabels">
145
<td class="mlabels-left">
146
<table class="memname">
148
<td class="memname"><a class="el" href="a00401.html#a09518cab4836da0b2b3a1253cdcc5ab2">ResultType</a> <a class="el" href="a00401.html">Tp::MemberFunctor5</a>< R, T, Arg1, Arg2, Arg3, Arg4, Arg5 >::operator() </td>
150
<td class="paramtype">Arg1 </td>
151
<td class="paramname"><em>a1</em>, </td>
154
<td class="paramkey"></td>
156
<td class="paramtype">Arg2 </td>
157
<td class="paramname"><em>a2</em>, </td>
160
<td class="paramkey"></td>
162
<td class="paramtype">Arg3 </td>
163
<td class="paramname"><em>a3</em>, </td>
166
<td class="paramkey"></td>
168
<td class="paramtype">Arg4 </td>
169
<td class="paramname"><em>a4</em>, </td>
172
<td class="paramkey"></td>
174
<td class="paramtype">Arg5 </td>
175
<td class="paramname"><em>a5</em> </td>
180
<td></td><td> const</td>
184
<td class="mlabels-right">
185
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
188
</div><div class="memdoc">
192
<h2 class="groupheader">Member Data Documentation</h2>
193
<a class="anchor" id="a238734aa28508ef29e26d67302ad0df2"></a>
194
<div class="memitem">
195
<div class="memproto">
196
<div class="memtemplate">
197
template<class R, class T, class Arg1, class Arg2, class Arg3, class Arg4, class Arg5> </div>
198
<table class="memname">
200
<td class="memname">T* <a class="el" href="a00401.html">Tp::MemberFunctor5</a>< R, T, Arg1, Arg2, Arg3, Arg4, Arg5 >::object</td>
203
</div><div class="memdoc">
207
<a class="anchor" id="aba0ff8bbffa9ebedfe29597840fa65b1"></a>
208
<div class="memitem">
209
<div class="memproto">
210
<div class="memtemplate">
211
template<class R, class T, class Arg1, class Arg2, class Arg3, class Arg4, class Arg5> </div>
212
<table class="memname">
214
<td class="memname"><a class="el" href="a00401.html#ab2d678ce00ef081437c27fb0fa734d60">FunctionType</a> <a class="el" href="a00401.html">Tp::MemberFunctor5</a>< R, T, Arg1, Arg2, Arg3, Arg4, Arg5 >::fn</td>
217
</div><div class="memdoc">