/usr/share/PySide/typesystems/typesystem_network.xml is in libpyside-dev 1.2.2-2build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 | <?xml version="1.0"?>
<!--
This file is part of PySide project.
Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
Contact: PySide team <contact@pyside.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-->
<typesystem package="PySide.QtNetwork">
<load-typesystem name="typesystem_core.xml" generate="no"/>
<namespace-type name="QSsl">
<enum-type name="AlternateNameEntryType"/>
<enum-type name="EncodingFormat"/>
<enum-type name="KeyAlgorithm"/>
<enum-type name="KeyType"/>
<enum-type name="SslProtocol"/>
<extra-includes>
<include file-name="qssl.h" location="global"/>
</extra-includes>
</namespace-type>
<rejection class="QIPv6Address" field-name="c"/>
<object-type name="QAbstractSocket">
<enum-type name="NetworkLayerProtocol"/>
<enum-type name="SocketError"/>
<enum-type name="SocketOption" since="4.6"/>
<enum-type name="SocketState"/>
<enum-type name="SocketType"/>
<modify-function signature="connectToHost(const QString&, quint16, QFlags<QIODevice::OpenModeFlag>)" allow-thread="yes" />
<modify-function signature="connectToHost(const QHostAddress&, quint16, QFlags<QIODevice::OpenModeFlag>)" allow-thread="yes" />
<modify-function signature="disconnectFromHost()" allow-thread="yes" />
<modify-function signature="waitForConnected(int)" allow-thread="yes" />
<modify-function signature="waitForDisconnected(int)" allow-thread="yes" />
</object-type>
<object-type name="QFtp">
<enum-type name="Command"/>
<enum-type name="Error"/>
<enum-type name="State"/>
<enum-type name="TransferMode"/>
<enum-type name="TransferType"/>
<modify-function signature="connectToHost(const QString&, quint16)" allow-thread="yes" />
<modify-function signature="login(const QString&, const QString&)" allow-thread="yes" />
<modify-function signature="close()" allow-thread="yes" />
<modify-function signature="list(const QString&)" allow-thread="yes" />
<modify-function signature="cd(const QString&)" allow-thread="yes" />
<modify-function signature="get(const QString&, QIODevice*, QFtp::TransferType)" allow-thread="yes" />
<modify-function signature="put(const QByteArray&, const QString&, QFtp::TransferType)" allow-thread="yes" />
<modify-function signature="put(QIODevice*, const QString&, QFtp::TransferType)" allow-thread="yes" />
<modify-function signature="remove(const QString&)" allow-thread="yes" />
<modify-function signature="mkdir(const QString&)" allow-thread="yes" />
<modify-function signature="rmdir(const QString&)" allow-thread="yes" />
<modify-function signature="rename(const QString&, const QString&)" allow-thread="yes" />
<modify-function signature="rawCommand(const QString&)" allow-thread="yes" />
<modify-function signature="readAll()" allow-thread="yes" />
<modify-function signature="read(char*, qint64)" allow-thread="yes">
<modify-argument index="return">
<replace-type modified-type="QByteArray"/>
</modify-argument>
<modify-argument index="1">
<remove-argument />
</modify-argument>
<inject-code class="target" position="beginning">
<insert-template name="read_wrapper"/>
</inject-code>
</modify-function>
</object-type>
<object-type name="QHttp">
<enum-type name="ConnectionMode"/>
<enum-type name="Error"/>
<enum-type name="State"/>
<modify-function signature="readAll()" allow-thread="yes"/>
<modify-function signature="read(char*, qint64)" allow-thread="yes">
<modify-argument index="return">
<replace-type modified-type="QByteArray"/>
</modify-argument>
<modify-argument index="1">
<remove-argument />
</modify-argument>
<inject-code class="target" position="beginning">
<insert-template name="read_wrapper"/>
</inject-code>
</modify-function>
<!-- ### Obsolete methods -->
<modify-function signature="closeConnection()" remove="all"/>
<!-- ### -->
</object-type>
<object-type name="QTcpServer">
<modify-function signature="waitForNewConnection(int,bool*)" allow-thread="yes">
<!-- FIXME removing default expression means user will always have to pass a value, but he wouldn't have to -->
<modify-argument index="1">
<remove-default-expression/>
</modify-argument>
<modify-argument index="2">
<remove-default-expression/>
<remove-argument/>
</modify-argument>
<modify-argument index="return">
<replace-type modified-type="(retval, timeOut)"/>
</modify-argument>
<inject-code class="target" position="beginning">
<insert-template name="fix_args,bool*"/>
</inject-code>
</modify-function>
</object-type>
<object-type name="QTcpSocket"/>
<object-type name="QUdpSocket">
<enum-type name="BindFlag" flags="BindMode"/>
<modify-function signature="readDatagram(char*, qint64, QHostAddress*, quint16*)" allow-thread="yes">
<modify-argument index="1">
<remove-argument/>
</modify-argument>
<modify-argument index="3">
<remove-default-expression/>
<remove-argument/>
</modify-argument>
<modify-argument index="4">
<remove-default-expression/>
<remove-argument/>
</modify-argument>
<modify-argument index="return">
<replace-type modified-type="(data, address, port)"/>
</modify-argument>
<inject-code class="target" position="beginning">
Shiboken::AutoArrayPointer<char> data(%ARGUMENT_NAMES);
QHostAddress ha;
quint16 port;
%BEGIN_ALLOW_THREADS
%RETURN_TYPE retval = %CPPSELF.%FUNCTION_NAME(data, %ARGUMENT_NAMES, &ha, &port);
%END_ALLOW_THREADS
QByteArray ba(data, retval);
%PYARG_0 = PyTuple_New(3);
PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[QByteArray](ba));
PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[QHostAddress](ha));
PyTuple_SET_ITEM(%PYARG_0, 2, %CONVERTTOPYTHON[quint16](port));
</inject-code>
</modify-function>
<modify-function signature="writeDatagram(const QByteArray&, const QHostAddress&, quint16)" allow-thread="yes"/>
<!-- ### writeDatagram(QByteArray, ...) does the trick -->
<modify-function signature="writeDatagram(const char*,qint64,const QHostAddress&,quint16)" remove="all"/>
<!-- ### -->
</object-type>
<object-type name="QHttpHeader" />
<object-type name="QLocalServer">
<modify-function signature="waitForNewConnection(int,bool*)" allow-thread="yes">
<!-- FIXME -->
<modify-argument index="1">
<remove-default-expression/>
</modify-argument>
<modify-argument index="2">
<remove-default-expression/>
<remove-argument/>
</modify-argument>
<inject-code class="target" position="beginning">
<insert-template name="fix_args,bool*"/>
</inject-code>
<modify-argument index="return">
<replace-type modified-type="(retval, timeOut)"/>
</modify-argument>
</modify-function>
</object-type>
<object-type name="QLocalSocket">
<enum-type name="LocalSocketError"/>
<enum-type name="LocalSocketState"/>
</object-type>
<object-type name="QNetworkAccessManager">
<enum-type name="NetworkAccessibility" since="4.7"/>
<enum-type name="Operation"/>
<modify-function signature="createRequest(QNetworkAccessManager::Operation, const QNetworkRequest&, QIODevice *)">
<modify-argument index="3" invalidate-after-use="yes"/>
<modify-argument index="return">
<define-ownership class="target" owner="default"/>
</modify-argument>
</modify-function>
<modify-function signature="get(const QNetworkRequest&)" allow-thread="yes"/>
<modify-function signature="post(const QNetworkRequest &, QIODevice *)" allow-thread="yes"/>
<modify-function signature="post(const QNetworkRequest &, const QByteArray &)" allow-thread="yes"/>
<modify-function signature="put(const QNetworkRequest &, QIODevice *)" allow-thread="yes"/>
<modify-function signature="put(const QNetworkRequest &, const QByteArray &)" allow-thread="yes"/>
<modify-function signature="sendCustomRequest(const QNetworkRequest &, const QByteArray &, QIODevice *)" allow-thread="yes" since="4.7" />
<modify-function signature="setCookieJar(QNetworkCookieJar*)">
<modify-argument index="1">
<define-ownership class="target" owner="c++"/>
</modify-argument>
</modify-function>
</object-type>
<object-type name="QNetworkCookieJar"/>
<object-type name="QNetworkReply">
<enum-type name="NetworkError"/>
</object-type>
<value-type name="QHostAddress" hash-function="qHash">
<enum-type name="SpecialAddress"/>
<!-- ### QHostAddress(QIPv6Address) does this -->
<modify-function signature="QHostAddress(quint8*)" remove="all" />
<!-- ### -->
<modify-function signature="setAddress(quint8*)" remove="all" />
</value-type>
<value-type name="QHostInfo">
<enum-type name="HostInfoError"/>
<modify-function signature="lookupHost(QString,QObject*,const char*)" access="private"/>
</value-type>
<value-type name="QHttpRequestHeader" />
<value-type name="QHttpResponseHeader" />
<value-type name="QNetworkAddressEntry" />
<value-type name="QNetworkInterface">
<enum-type name="InterfaceFlag" flags="InterfaceFlags"/>
</value-type>
<value-type name="QNetworkProxy">
<enum-type name="Capability" flags="Capabilities" />
<enum-type name="ProxyType"/>
</value-type>
<object-type name="QNetworkProxyFactory" />
<value-type name="QNetworkProxyQuery">
<enum-type name="QueryType" />
</value-type>
<value-type name="QUrlInfo">
<enum-type name="PermissionSpec"/>
</value-type>
<value-type name="QIPv6Address">
<add-function signature="__len__">
<inject-code class="target" position="beginning">
return 16;
</inject-code>
</add-function>
<add-function signature="__getitem__">
<inject-code class="target" position="beginning">
if (_i >= 16) {
PyErr_SetString(PyExc_IndexError, "index out of bounds");
return 0;
}
if (_i < 0)
_i = 16 - qAbs(_i);
uint item = %CPPSELF.c[_i];
return %CONVERTTOPYTHON[uint](item);
</inject-code>
</add-function>
<add-function signature="__len__">
<inject-code class="target" position="beginning">
return 16;
</inject-code>
</add-function>
<add-function signature="__setitem__">
<inject-code class="target" position="beginning">
if (_i >= 16) {
PyErr_SetString(PyExc_IndexError, "index out of bounds");
return -1;
}
if (_i < 0)
_i = 16 - qAbs(_i);
quint8 item = %CONVERTTOCPP[quint8](_value);
%CPPSELF.c[_i] = item;
return 0;
</inject-code>
</add-function>
</value-type>
<value-type name="QAuthenticator" />
<value-type name="QNetworkCookie">
<enum-type name="RawForm"/>
<extra-includes>
<include file-name="QDateTime" location="global"/>
</extra-includes>
</value-type>
<value-type name="QNetworkRequest">
<enum-type name="Attribute" extensible="yes"/>
<enum-type name="LoadControl" since="4.7"/>
<enum-type name="Priority" since="4.7"/>
<enum-type name="CacheLoadControl"/>
<enum-type name="KnownHeaders"/>
</value-type>
<!-- TODO QSslCertificate requires QMultiMap which isn't implemented yet
<value-type name="QSslCertificate"/>
-->
<enum-type name="QSslCertificate::SubjectInfo"/>
<!-- Qt 4.7 -->
<value-type name="QNetworkConfiguration" since="4.7">
<enum-type name="BearerType" />
<enum-type name="Purpose" since="4.7"/>
<enum-type name="StateFlag" flags="StateFlags" since="4.7"/>
<enum-type name="Type" since="4.7"/>
</value-type>
<object-type name="QNetworkConfigurationManager" since="4.7">
<enum-type name="Capability" flags="Capabilities" since="4.7"/>
</object-type>
<object-type name="QNetworkSession" since="4.7">
<enum-type name="SessionError" since="4.7"/>
<enum-type name="State" since="4.7"/>
</object-type>
<object-type name="QAbstractNetworkCache"/>
<object-type name="QNetworkDiskCache"/>
<value-type name="QNetworkCacheMetaData"/>
<suppress-warning text="Shadowing: QAbstractSocket::*"/>
<!-- The following entries may be present in the system or not. Keep this section organized. -->
<value-type name="QSslCertificate"/>
<value-type name="QSslCipher"/>
<value-type name="QSslConfiguration"/>
<value-type name="QSslError">
<enum-type name="SslError"/>
</value-type>
<value-type name="QSslKey"/>
<object-type name="QSslSocket">
<enum-type name="SslMode"/>
<enum-type name="PeerVerifyMode"/>
<modify-function signature="connectToHostEncrypted(const QString&, quint16, QFlags<QIODevice::OpenModeFlag>)" allow-thread="yes" />
<modify-function signature="waitForEncrypted(int)" allow-thread="yes" />
</object-type>
<!-- The above entries may be present in the system or not. Keep this section organized. -->
</typesystem>
|