1
<?xml version="1.0" encoding="iso-8859-1"?>
3
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
<title>outgoing-stream-tube-channel.h Source File</title>
7
<link href="doxygen.css" rel="stylesheet" type="text/css" />
10
<table border="0" cellpadding="0" cellspacing="0" width="100%">
12
<td width="1"> </td>
13
<td class="postheader" valign="center">
15
<font color="#004faf">Home</font></a> ·
16
<a href="classes.html">
17
<font color="#004faf">All Classes</font></a> ·
18
<a href="namespaces.html">
19
<font color="#004faf">All Namespaces</font></a> ·
20
<a href="modules.html">
21
<font color="#004faf">Modules</font></a> ·
22
<a href="functions.html">
23
<font color="#004faf">Functions</font></a> ·
25
<font color="#004faf">Files</font></a>
29
<!-- Generated by Doxygen 1.7.6.1 -->
32
<div class="headertitle">
33
<div class="title">outgoing-stream-tube-channel.h</div> </div>
35
<div class="contents">
36
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
37
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef _TelepathyQt_outgoing_stream_tube_channel_h_HEADER_GUARD_</span>
38
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define _TelepathyQt_outgoing_stream_tube_channel_h_HEADER_GUARD_</span>
39
<a name="l00024"></a>00024 <span class="preprocessor"></span>
40
<a name="l00025"></a>00025 <span class="preprocessor">#ifndef IN_TP_QT_HEADER</span>
41
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#error IN_TP_QT_HEADER</span>
42
<a name="l00027"></a>00027 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
43
<a name="l00028"></a>00028 <span class="preprocessor"></span>
44
<a name="l00029"></a>00029 <span class="preprocessor">#include <TelepathyQt/StreamTubeChannel></span>
45
<a name="l00030"></a>00030 <span class="preprocessor">#include <TelepathyQt/PendingOperation></span>
46
<a name="l00031"></a>00031
47
<a name="l00032"></a>00032 <span class="keyword">class </span>QHostAddress;
48
<a name="l00033"></a>00033 <span class="keyword">class </span>QTcpServer;
49
<a name="l00034"></a>00034 <span class="keyword">class </span>QLocalServer;
50
<a name="l00035"></a>00035
51
<a name="l00036"></a>00036 <span class="keyword">namespace </span>Tp
52
<a name="l00037"></a>00037 {
53
<a name="l00038"></a>00038
54
<a name="l00039"></a><a class="code" href="a00300.html">00039</a> <span class="keyword">class </span>TP_QT_EXPORT <a class="code" href="a00300.html" title="The OutgoingStreamTubeChannel class represents an outgoing Telepathy channel of type StreamTube...">OutgoingStreamTubeChannel</a> : <span class="keyword">public</span> <a class="code" href="a00401.html" title="The StreamTubeChannel class represents a Telepathy channel of type StreamTube.">StreamTubeChannel</a>
55
<a name="l00040"></a>00040 {
56
<a name="l00041"></a>00041 Q_OBJECT
57
<a name="l00042"></a>00042 Q_DISABLE_COPY(<a class="code" href="a00300.html" title="The OutgoingStreamTubeChannel class represents an outgoing Telepathy channel of type StreamTube...">OutgoingStreamTubeChannel</a>)
58
<a name="l00043"></a>00043
59
<a name="l00044"></a>00044 <span class="keyword">public</span>:
60
<a name="l00045"></a><a class="code" href="a00300.html#a7ee76e14dcce84aa8a26474edd4160f2">00045</a> <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="a00227.html" title="The Feature class represents a feature that can be enabled on demand.">Feature</a> <a class="code" href="a00300.html#a7ee76e14dcce84aa8a26474edd4160f2">FeatureCore</a>;
61
<a name="l00046"></a>00046
62
<a name="l00047"></a>00047 <span class="keyword">static</span> OutgoingStreamTubeChannelPtr create(<span class="keyword">const</span> ConnectionPtr &connection,
63
<a name="l00048"></a>00048 <span class="keyword">const</span> QString &objectPath, <span class="keyword">const</span> QVariantMap &immutableProperties);
64
<a name="l00049"></a>00049
65
<a name="l00050"></a>00050 <span class="keyword">virtual</span> ~<a class="code" href="a00300.html" title="The OutgoingStreamTubeChannel class represents an outgoing Telepathy channel of type StreamTube...">OutgoingStreamTubeChannel</a>();
66
<a name="l00051"></a>00051
67
<a name="l00052"></a>00052 <a class="code" href="a00320.html" title="The PendingOperation class is a base class for pending asynchronous operations.">PendingOperation</a> *offerTcpSocket(<span class="keyword">const</span> QHostAddress &address, quint16 port,
68
<a name="l00053"></a>00053 <span class="keyword">const</span> QVariantMap &parameters = QVariantMap());
69
<a name="l00054"></a>00054 <a class="code" href="a00320.html" title="The PendingOperation class is a base class for pending asynchronous operations.">PendingOperation</a> *offerTcpSocket(<span class="keyword">const</span> QTcpServer *server,
70
<a name="l00055"></a>00055 <span class="keyword">const</span> QVariantMap &parameters = QVariantMap());
71
<a name="l00056"></a>00056
72
<a name="l00057"></a>00057 <a class="code" href="a00320.html" title="The PendingOperation class is a base class for pending asynchronous operations.">PendingOperation</a> *offerUnixSocket(<span class="keyword">const</span> QString &socketAddress,
73
<a name="l00058"></a>00058 <span class="keyword">const</span> QVariantMap &parameters = QVariantMap(), <span class="keywordtype">bool</span> requireCredentials = <span class="keyword">false</span>);
74
<a name="l00059"></a>00059 <a class="code" href="a00320.html" title="The PendingOperation class is a base class for pending asynchronous operations.">PendingOperation</a> *offerUnixSocket(<span class="keyword">const</span> QLocalServer *server,
75
<a name="l00060"></a>00060 <span class="keyword">const</span> QVariantMap &parameters = QVariantMap(), <span class="keywordtype">bool</span> requireCredentials = <span class="keyword">false</span>);
76
<a name="l00061"></a>00061
77
<a name="l00062"></a>00062 QHash<uint, Tp::ContactPtr> contactsForConnections() <span class="keyword">const</span>;
78
<a name="l00063"></a>00063
79
<a name="l00064"></a>00064 QHash<QPair<QHostAddress,quint16>, uint> connectionsForSourceAddresses() <span class="keyword">const</span>;
80
<a name="l00065"></a>00065 QHash<uchar, uint> connectionsForCredentials() <span class="keyword">const</span>;
81
<a name="l00066"></a>00066
82
<a name="l00067"></a>00067 <span class="keyword">protected</span>:
83
<a name="l00068"></a>00068 <a class="code" href="a00300.html" title="The OutgoingStreamTubeChannel class represents an outgoing Telepathy channel of type StreamTube...">OutgoingStreamTubeChannel</a>(<span class="keyword">const</span> ConnectionPtr &connection, <span class="keyword">const</span> QString &objectPath,
84
<a name="l00069"></a>00069 <span class="keyword">const</span> QVariantMap &immutableProperties,
85
<a name="l00070"></a>00070 <span class="keyword">const</span> <a class="code" href="a00227.html" title="The Feature class represents a feature that can be enabled on demand.">Feature</a> &coreFeature = <a class="code" href="a00300.html#a7ee76e14dcce84aa8a26474edd4160f2">OutgoingStreamTubeChannel::FeatureCore</a>);
86
<a name="l00071"></a>00071
87
<a name="l00072"></a>00072 <span class="keyword">private</span> Q_SLOTS:
88
<a name="l00073"></a>00073 TP_QT_NO_EXPORT <span class="keywordtype">void</span> onNewRemoteConnection(uint contactId,
89
<a name="l00074"></a>00074 <span class="keyword">const</span> QDBusVariant &parameter, uint connectionId);
90
<a name="l00075"></a>00075 TP_QT_NO_EXPORT <span class="keywordtype">void</span> onContactsRetrieved(<span class="keyword">const</span> QUuid &uuid,
91
<a name="l00076"></a>00076 <span class="keyword">const</span> QList<Tp::ContactPtr> &contacts);
92
<a name="l00077"></a>00077 TP_QT_NO_EXPORT <span class="keywordtype">void</span> onConnectionClosed(uint connectionId,
93
<a name="l00078"></a>00078 <span class="keyword">const</span> QString &errorName, <span class="keyword">const</span> QString &errorMessage);
94
<a name="l00079"></a>00079
95
<a name="l00080"></a>00080 <span class="keyword">private</span>:
96
<a name="l00081"></a><a class="code" href="a00300.html#aae0c3bdc749df724ce4e04a647e69432">00081</a> <span class="keyword">struct </span>Private;
97
<a name="l00082"></a>00082 <span class="keyword">friend</span> <span class="keyword">struct </span>PendingOpenTube;
98
<a name="l00083"></a><a class="code" href="a00300.html#a15a94ff2bd578e608a94d0a1ba4bd3e0">00083</a> <span class="keyword">friend</span> <span class="keyword">struct </span>Private;
99
<a name="l00084"></a>00084 Private *mPriv;
100
<a name="l00085"></a>00085 };
101
<a name="l00086"></a>00086
102
<a name="l00087"></a>00087 }
103
<a name="l00088"></a>00088
104
<a name="l00089"></a>00089 <span class="preprocessor">#endif</span>
105
</pre></div></div><!-- contents -->
106
<p /><address><hr /><div align="center">
107
<table width="100%" cellspacing="0" border="0"><tr class="address">
108
<td width="30%">Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation</td>
109
<td width="30%" align="right"><div align="right">Telepathy-Qt 0.9.3</div></td>
110
</tr></table></div></address>