summaryrefslogtreecommitdiffstats
path: root/generator/typesystem_network-common.xml
blob: ae169ef7561016a2dbe83d027ef753589be19e11 (plain)
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
<typesystem>
  <namespace-type name="QSsl">
    <include file-name="qssl.h" location="global" />
  </namespace-type>
  
  <enum-type name="QAbstractSocket::NetworkLayerProtocol" />
  <enum-type name="QAbstractSocket::SocketError" />
  <enum-type name="QAbstractSocket::SocketState" />
  <enum-type name="QAbstractSocket::SocketType" />
  <enum-type name="QFtp::Command" />
  <enum-type name="QFtp::Error" />
  <enum-type name="QFtp::State" />
  <enum-type name="QFtp::TransferMode" />
  <enum-type name="QFtp::TransferType" />
  <enum-type name="QHostAddress::SpecialAddress" />
  <enum-type name="QHttp::Error" />
  <enum-type name="QHttp::State" />
  <enum-type name="QHttp::ConnectionMode" />
  <enum-type name="QNetworkInterface::InterfaceFlag" flags="QNetworkInterface::InterfaceFlags" />
  <enum-type name="QNetworkProxy::ProxyType" />
  <enum-type name="QUdpSocket::BindFlag" flags="QUdpSocket::BindMode" />
  <enum-type name="QUrlInfo::PermissionSpec" />
  <enum-type name="QHostInfo::HostInfoError" />    
  <enum-type name="QSsl::KeyType" />
  <enum-type name="QSsl::EncodingFormat" />
  <enum-type name="QSsl::KeyAlgorithm"/>
  <enum-type name="QSsl::AlternateNameEntryType"/>
  <enum-type name="QSsl::SslProtocol" />
  <enum-type name="QLocalSocket::LocalSocketError" />
  <enum-type name="QLocalSocket::LocalSocketState" />
  <enum-type name="QNetworkAccessManager::Operation" />
  <enum-type name="QNetworkCookie::RawForm" />
  <enum-type name="QNetworkReply::NetworkError" />
  <enum-type name="QNetworkRequest::Attribute" extensible="yes" />
  <enum-type name="QNetworkRequest::CacheLoadControl" />
  <enum-type name="QNetworkRequest::KnownHeaders" />

  <object-type name="QAbstractSocket" />
  <object-type name="QFtp" />

  <object-type name="QHttp">
      <modify-function signature="closeConnection()" remove="all"/>
  </object-type>
  <object-type name="QTcpServer" />
  <object-type name="QTcpSocket" />  
  <object-type name="QUdpSocket" />
    
  <object-type name="QHttpHeader">
    <modify-function signature="operator=(QHttpHeader)" remove="all"/>
  </object-type>
  <object-type name="QLocalServer" />
  <object-type name="QLocalSocket" />
  <object-type name="QNetworkAccessManager">
    <modify-function signature="setCookieJar(QNetworkCookieJar*)">
        <modify-argument index="1">
            <define-ownership class="java" owner="c++" />
        </modify-argument>
    </modify-function>
  </object-type>
  <object-type name="QNetworkCookieJar" />
  <object-type name="QNetworkReply" />

  <value-type name="QHostAddress">
    <modify-function signature="QHostAddress(unsigned char*)" remove="all"/>
    <modify-function signature="setAddress(unsigned char*)" remove="all"/>
    <modify-function signature="operator=(QString)" remove="all"/>
    <modify-function signature="operator=(QHostAddress)" remove="all"/>
  </value-type>  

  <value-type name="QHostInfo">
        <modify-function signature="operator=(QHostInfo)" remove="all"/>
        <modify-function signature="lookupHost(QString,QObject*,const char*)" access="private" />        
  </value-type>

  <value-type name="QHttpRequestHeader">
    <modify-function signature="operator=(QHttpRequestHeader)" remove="all"/>
  </value-type>

  <value-type name="QHttpResponseHeader">
    <modify-function signature="operator=(QHttpResponseHeader)" remove="all"/>
  </value-type>

  <value-type name="QNetworkAddressEntry">
    <modify-function signature="operator=(QNetworkAddressEntry)" remove="all"/>
  </value-type>
  
  <value-type name="QNetworkInterface">
    <modify-function signature="operator=(QNetworkInterface)" remove="all"/>
  </value-type>
  
  <value-type name="QNetworkProxy">
    <modify-function signature="operator=(QNetworkProxy)" remove="all"/>
  </value-type>

  <value-type name="QUrlInfo">
    <modify-function signature="operator=(QUrlInfo)" remove="all"/>
  </value-type>

  <value-type name="QIPv6Address">
    <modify-function signature="operator[](int)const">
        <remove/>
    </modify-function>
    <modify-function signature="operator[](int)">
        <remove/>
    </modify-function>    
  </value-type>
  
  <value-type name="QAuthenticator">
    <modify-function signature="operator=(QAuthenticator)" remove="all"/>
  </value-type>
  <value-type name="QNetworkCookie">
    <modify-function signature="operator=(QNetworkCookie)" remove="all" />
  </value-type>
  <value-type name="QNetworkRequest">
    <modify-function signature="operator=(QNetworkRequest)" remove="all" />
  </value-type>

  <enum-type name="QSslError::SslError"/>
  <enum-type name="QSslCertificate::SubjectInfo" />
  <enum-type name="QSslSocket::SslMode" />
  <enum-type name="QSslSocket::PeerVerifyMode" />

  <value-type name="QSslCipher" />
  <value-type name="QSslError" />
  <value-type name="QSslKey" />
  <value-type name="QSslCertificate" />
  <value-type name="QSslConfiguration" />

  <object-type name="QSslSocket" />
  
  <suppress-warning text="*unmatched parameter type 'sockaddr const*" />
  <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QUrlInfo' has equals operators but no qHash() function" />
  <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QAuthenticator' has equals operators but no qHash() function" />

  <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QSslKey' has equals operators but no qHash() function"/>
  <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QSslError' has equals operators but no qHash() function"/>
  <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QSslCertificate' has equals operators but no qHash() function"/>
  <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QSslCipher' has equals operators but no qHash() function"/>
  <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QSslConfiguration' has equals operators but no qHash() function"/>
  
  <!-- For people building without SSL support -->
  <suppress-warning text="WARNING(MetaJavaBuilder) :: namespace 'com.trolltech.qt.network.QSslSocket' for enum 'SslMode' is not declared" />
  <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QSslError' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />
  <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QSslCipher' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />
  <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QSslKey' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />
  <suppress-warning text="WARNING(MetaJavaBuilder) :: namespace 'com.trolltech.qt.network.QSslError' for enum 'SslError' is not declared" />
  <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QSslCertificate' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />
  <suppress-warning text="WARNING(MetaJavaBuilder) :: namespace 'com.trolltech.qt.network.QSslSocket' for enum 'PeerVerifyMode' is not declared"/>
  <suppress-warning text="WARNING(MetaJavaBuilder) :: namespace 'com.trolltech.qt.network.QSslCertificate' for enum 'SubjectInfo' is not declared"/>
  <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QSslConfiguration' is specified in typesystem, but not defined. This could potentially lead to compilation errors."/>
  <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QSslSocket' is specified in typesystem, but not defined. This could potentially lead to compilation errors."/>
  <!-- -->    
  
</typesystem>