~ubuntu-branches/ubuntu/precise/python-qt4/precise-proposed

« back to all changes in this revision

Viewing changes to doc/html/qnetworkaddressentry.html

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell, Jonathan Riddell
  • Date: 2010-11-08 16:13:33 UTC
  • mfrom: (1.5.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20101108161333-0nec4wu0nz3wpf9r
Tags: 4.8.1-0ubuntu1
[ Jonathan Riddell ]
* New upstream release
* Build against python-sip-dev 4.11.2
* Remove kubuntu_02_fix-scpk-and-flag-issue.diff merged upstream
* Install __init__.py into /usr/lib/python3.2/dist-packages/PyQt4,
  fixes Python 3 support
* Add QtDeclarative to python-qt4
* Add kubuntu_03_uiparser.diff from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
td.postheader { font-family: sans-serif }
7
7
tr.address { font-family: sans-serif }
8
8
body { background: #ffffff; color: black; }
9
 
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QNetworkAddressEntry Class Reference<br /><sup><sup>[<a href="qtnetwork.html">QtNetwork</a> module]</sup></sup></h1><p>The QNetworkAddressEntry class stores one IP address supported by a network interface, along with its associated netmask and broadcast address. <a href="#details">More...</a></p>
10
 
<h3>Methods</h3><ul><li><div class="fn" /><b><a href="qnetworkaddressentry.html#QNetworkAddressEntry">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qnetworkaddressentry.html#QNetworkAddressEntry-2">__init__</a></b> (<i>self</i>, QNetworkAddressEntry)</li><li><div class="fn" />QHostAddress <b><a href="qnetworkaddressentry.html#broadcast">broadcast</a></b> (<i>self</i>)</li><li><div class="fn" />QHostAddress <b><a href="qnetworkaddressentry.html#ip">ip</a></b> (<i>self</i>)</li><li><div class="fn" />QHostAddress <b><a href="qnetworkaddressentry.html#netmask">netmask</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qnetworkaddressentry.html#prefixLength">prefixLength</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qnetworkaddressentry.html#setBroadcast">setBroadcast</a></b> (<i>self</i>, QHostAddress)</li><li><div class="fn" /><b><a href="qnetworkaddressentry.html#setIp">setIp</a></b> (<i>self</i>, QHostAddress)</li><li><div class="fn" /><b><a href="qnetworkaddressentry.html#setNetmask">setNetmask</a></b> (<i>self</i>, QHostAddress)</li><li><div class="fn" /><b><a href="qnetworkaddressentry.html#setPrefixLength">setPrefixLength</a></b> (<i>self</i>, int)</li></ul><h3>Special Methods</h3><ul><li><div class="fn" />bool <b><a href="qnetworkaddressentry.html#__eq__">__eq__</a></b> (<i>self</i>, QNetworkAddressEntry)</li><li><div class="fn" />bool <b><a href="qnetworkaddressentry.html#__ne__">__ne__</a></b> (<i>self</i>, QNetworkAddressEntry)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QNetworkAddressEntry class stores one IP address supported by a network interface, along with its associated netmask and broadcast address.</p>
11
 
<p>Each network interface can contain zero or more IP addresses, which in turn can be associated with a netmask and/or a broadcast address (depending on support from the operating system).</p>
 
9
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QNetworkAddressEntry Class Reference<br /><sup><sup>[<a href="qtnetwork.html">QtNetwork</a> module]</sup></sup></h1><p>The QNetworkAddressEntry class stores one IP address supported
 
10
by a network interface, along with its associated netmask and
 
11
broadcast address. <a href="#details">More...</a></p>
 
12
 
 
13
<h3>Methods</h3><ul><li><div class="fn" /><b><a href="qnetworkaddressentry.html#QNetworkAddressEntry">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qnetworkaddressentry.html#QNetworkAddressEntry-2">__init__</a></b> (<i>self</i>, QNetworkAddressEntry)</li><li><div class="fn" />QHostAddress <b><a href="qnetworkaddressentry.html#broadcast">broadcast</a></b> (<i>self</i>)</li><li><div class="fn" />QHostAddress <b><a href="qnetworkaddressentry.html#ip">ip</a></b> (<i>self</i>)</li><li><div class="fn" />QHostAddress <b><a href="qnetworkaddressentry.html#netmask">netmask</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qnetworkaddressentry.html#prefixLength">prefixLength</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qnetworkaddressentry.html#setBroadcast">setBroadcast</a></b> (<i>self</i>, QHostAddress)</li><li><div class="fn" /><b><a href="qnetworkaddressentry.html#setIp">setIp</a></b> (<i>self</i>, QHostAddress)</li><li><div class="fn" /><b><a href="qnetworkaddressentry.html#setNetmask">setNetmask</a></b> (<i>self</i>, QHostAddress)</li><li><div class="fn" /><b><a href="qnetworkaddressentry.html#setPrefixLength">setPrefixLength</a></b> (<i>self</i>, int)</li></ul><h3>Special Methods</h3><ul><li><div class="fn" />bool <b><a href="qnetworkaddressentry.html#__eq__">__eq__</a></b> (<i>self</i>, QNetworkAddressEntry)</li><li><div class="fn" />bool <b><a href="qnetworkaddressentry.html#__ne__">__ne__</a></b> (<i>self</i>, QNetworkAddressEntry)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QNetworkAddressEntry class stores one IP address supported
 
14
by a network interface, along with its associated netmask and
 
15
broadcast address.</p>
 
16
<p>Each network interface can contain zero or more IP addresses,
 
17
which in turn can be associated with a netmask and/or a broadcast
 
18
address (depending on support from the operating system).</p>
12
19
<p>This class represents one such group.</p>
13
20
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QNetworkAddressEntry" />QNetworkAddressEntry.__init__ (<i>self</i>)</h3><p>Constructs an empty <a href="qnetworkaddressentry.html">QNetworkAddressEntry</a> object.</p>
14
 
<h3 class="fn"><a name="QNetworkAddressEntry-2" />QNetworkAddressEntry.__init__ (<i>self</i>, <a href="qnetworkaddressentry.html">QNetworkAddressEntry</a>)</h3><p>Constructs a <a href="qnetworkaddressentry.html">QNetworkAddressEntry</a> object that is a copy of the object <i>other</i>.</p>
15
 
<a name="//apple_ref/cpp/instm/QNetworkAddressEntry/~QNetworkAddressEntry" />
16
 
<h3 class="fn"><a name="broadcast" /><a href="qhostaddress.html">QHostAddress</a> QNetworkAddressEntry.broadcast (<i>self</i>)</h3><p>Returns the broadcast address associated with the IPv4 address and netmask. It can usually be derived from those two by setting to 1 the bits of the IP address where the netmask contains a 0. (In other words, by bitwise-OR'ing the IP address with the inverse of the netmask)</p>
17
 
<p>This member is always empty for IPv6 addresses, since the concept of broadcast has been abandoned in that system in favor of multicast. In particular, the group of hosts corresponding to all the nodes in the local network can be reached by the "all-nodes" special multicast group (address FF02.1).</p>
 
21
 
 
22
 
 
23
<h3 class="fn"><a name="QNetworkAddressEntry-2" />QNetworkAddressEntry.__init__ (<i>self</i>, <a href="qnetworkaddressentry.html">QNetworkAddressEntry</a>)</h3><p>Constructs a <a href="qnetworkaddressentry.html">QNetworkAddressEntry</a> object that is
 
24
a copy of the object <i>other</i>.</p>
 
25
 
 
26
 
 
27
<h3 class="fn"><a name="broadcast" /><a href="qhostaddress.html">QHostAddress</a> QNetworkAddressEntry.broadcast (<i>self</i>)</h3><p>Returns the broadcast address associated with the IPv4 address
 
28
and netmask. It can usually be derived from those two by setting to
 
29
1 the bits of the IP address where the netmask contains a 0. (In
 
30
other words, by bitwise-OR'ing the IP address with the inverse of
 
31
the netmask)</p>
 
32
<p>This member is always empty for IPv6 addresses, since the
 
33
concept of broadcast has been abandoned in that system in favor of
 
34
multicast. In particular, the group of hosts corresponding to all
 
35
the nodes in the local network can be reached by the "all-nodes"
 
36
special multicast group (address FF02.1).</p>
18
37
<p>See also <a href="qnetworkaddressentry.html#setBroadcast">setBroadcast</a>().</p>
19
 
<a name="//apple_ref/cpp/instm/QNetworkAddressEntry/ip" />
20
 
<h3 class="fn"><a name="ip" /><a href="qhostaddress.html">QHostAddress</a> QNetworkAddressEntry.ip (<i>self</i>)</h3><p>This function returns one IPv4 or IPv6 address found, that was found in a network interface.</p>
 
38
 
 
39
 
 
40
<h3 class="fn"><a name="ip" /><a href="qhostaddress.html">QHostAddress</a> QNetworkAddressEntry.ip (<i>self</i>)</h3><p>This function returns one IPv4 or IPv6 address found, that was
 
41
found in a network interface.</p>
21
42
<p>See also <a href="qnetworkaddressentry.html#setIp">setIp</a>().</p>
22
 
<a name="//apple_ref/cpp/instm/QNetworkAddressEntry/netmask" />
23
 
<h3 class="fn"><a name="netmask" /><a href="qhostaddress.html">QHostAddress</a> QNetworkAddressEntry.netmask (<i>self</i>)</h3><p>Returns the netmask associated with the IP address. The netmask is expressed in the form of an IP address, such as 255.255.0.0.</p>
24
 
<p>For IPv6 addresses, the prefix length is converted to an address where the number of bits set to 1 is equal to the prefix length. For a prefix length of 64 bits (the most common value), the netmask will be expressed as a <a href="qhostaddress.html">QHostAddress</a> holding the address FFFF:FFFF:FFFF:FFFF.</p>
25
 
<p>See also <a href="qnetworkaddressentry.html#setNetmask">setNetmask</a>() and <a href="qnetworkaddressentry.html#prefixLength">prefixLength</a>().</p>
26
 
<a name="//apple_ref/cpp/instm/QNetworkAddressEntry/prefixLength" />
27
 
<h3 class="fn"><a name="prefixLength" />int QNetworkAddressEntry.prefixLength (<i>self</i>)</h3><p>Returns the prefix length of this IP address. The prefix length matches the number of bits set to 1 in the netmask (see <a href="qnetworkaddressentry.html#netmask">netmask</a>()). For IPv4 addresses, the value is between 0 and 32. For IPv6 addresses, it's contained between 0 and 128 and is the preferred form of representing addresses.</p>
28
 
<p>This function returns -1 if the prefix length could not be determined (i.e., <a href="qnetworkaddressentry.html#netmask">netmask</a>() returns a null QHostAddress()).</p>
 
43
 
 
44
 
 
45
<h3 class="fn"><a name="netmask" /><a href="qhostaddress.html">QHostAddress</a> QNetworkAddressEntry.netmask (<i>self</i>)</h3><p>Returns the netmask associated with the IP address. The netmask
 
46
is expressed in the form of an IP address, such as 255.255.0.0.</p>
 
47
<p>For IPv6 addresses, the prefix length is converted to an address
 
48
where the number of bits set to 1 is equal to the prefix length.
 
49
For a prefix length of 64 bits (the most common value), the netmask
 
50
will be expressed as a <a href="qhostaddress.html">QHostAddress</a>
 
51
holding the address FFFF:FFFF:FFFF:FFFF.</p>
 
52
<p>See also <a href="qnetworkaddressentry.html#setNetmask">setNetmask</a>() and
 
53
<a href="qnetworkaddressentry.html#prefixLength">prefixLength</a>().</p>
 
54
 
 
55
 
 
56
<h3 class="fn"><a name="prefixLength" />int QNetworkAddressEntry.prefixLength (<i>self</i>)</h3><p>Returns the prefix length of this IP address. The prefix length
 
57
matches the number of bits set to 1 in the netmask (see <a href="qnetworkaddressentry.html#netmask">netmask</a>()). For IPv4
 
58
addresses, the value is between 0 and 32. For IPv6 addresses, it's
 
59
contained between 0 and 128 and is the preferred form of
 
60
representing addresses.</p>
 
61
<p>This function returns -1 if the prefix length could not be
 
62
determined (i.e., <a href="qnetworkaddressentry.html#netmask">netmask</a>() returns a null
 
63
QHostAddress()).</p>
29
64
<p>This function was introduced in Qt 4.5.</p>
30
 
<p>See also <a href="qnetworkaddressentry.html#setPrefixLength">setPrefixLength</a>() and <a href="qnetworkaddressentry.html#netmask">netmask</a>().</p>
31
 
<a name="//apple_ref/cpp/instm/QNetworkAddressEntry/setBroadcast" />
32
 
<h3 class="fn"><a name="setBroadcast" />QNetworkAddressEntry.setBroadcast (<i>self</i>, <a href="qhostaddress.html">QHostAddress</a>)</h3><p>Sets the broadcast IP address of this <a href="qnetworkaddressentry.html">QNetworkAddressEntry</a> object to <i>newBroadcast</i>.</p>
 
65
<p>See also <a href="qnetworkaddressentry.html#setPrefixLength">setPrefixLength</a>()
 
66
and <a href="qnetworkaddressentry.html#netmask">netmask</a>().</p>
 
67
 
 
68
 
 
69
<h3 class="fn"><a name="setBroadcast" />QNetworkAddressEntry.setBroadcast (<i>self</i>, <a href="qhostaddress.html">QHostAddress</a>)</h3><p>Sets the broadcast IP address of this <a href="qnetworkaddressentry.html">QNetworkAddressEntry</a> object to
 
70
<i>newBroadcast</i>.</p>
33
71
<p>See also <a href="qnetworkaddressentry.html#broadcast">broadcast</a>().</p>
34
 
<a name="//apple_ref/cpp/instm/QNetworkAddressEntry/setIp" />
35
 
<h3 class="fn"><a name="setIp" />QNetworkAddressEntry.setIp (<i>self</i>, <a href="qhostaddress.html">QHostAddress</a>)</h3><p>Sets the IP address the <a href="qnetworkaddressentry.html">QNetworkAddressEntry</a> object contains to <i>newIp</i>.</p>
 
72
 
 
73
 
 
74
<h3 class="fn"><a name="setIp" />QNetworkAddressEntry.setIp (<i>self</i>, <a href="qhostaddress.html">QHostAddress</a>)</h3><p>Sets the IP address the <a href="qnetworkaddressentry.html">QNetworkAddressEntry</a> object
 
75
contains to <i>newIp</i>.</p>
36
76
<p>See also <a href="qnetworkaddressentry.html#ip">ip</a>().</p>
37
 
<a name="//apple_ref/cpp/instm/QNetworkAddressEntry/setNetmask" />
38
 
<h3 class="fn"><a name="setNetmask" />QNetworkAddressEntry.setNetmask (<i>self</i>, <a href="qhostaddress.html">QHostAddress</a>)</h3><p>Sets the netmask that this <a href="qnetworkaddressentry.html">QNetworkAddressEntry</a> object contains to <i>newNetmask</i>. Setting the netmask also sets the prefix length to match the new netmask.</p>
 
77
 
 
78
 
 
79
<h3 class="fn"><a name="setNetmask" />QNetworkAddressEntry.setNetmask (<i>self</i>, <a href="qhostaddress.html">QHostAddress</a>)</h3><p>Sets the netmask that this <a href="qnetworkaddressentry.html">QNetworkAddressEntry</a> object
 
80
contains to <i>newNetmask</i>. Setting the netmask also sets the
 
81
prefix length to match the new netmask.</p>
39
82
<p>See also <a href="qnetworkaddressentry.html#netmask">netmask</a>() and <a href="qnetworkaddressentry.html#setPrefixLength">setPrefixLength</a>().</p>
40
 
<a name="//apple_ref/cpp/instm/QNetworkAddressEntry/setPrefixLength" />
41
 
<h3 class="fn"><a name="setPrefixLength" />QNetworkAddressEntry.setPrefixLength (<i>self</i>, int)</h3><p>Sets the prefix length of this IP address to <i>length</i>. The value of <i>length</i> must be valid for this type of IP address: between 0 and 32 for IPv4 addresses, between 0 and 128 for IPv6 addresses. Setting to any invalid value is equivalent to setting to -1, which means "no prefix length".</p>
 
83
 
 
84
 
 
85
<h3 class="fn"><a name="setPrefixLength" />QNetworkAddressEntry.setPrefixLength (<i>self</i>, int)</h3><p>Sets the prefix length of this IP address to <i>length</i>. The
 
86
value of <i>length</i> must be valid for this type of IP address:
 
87
between 0 and 32 for IPv4 addresses, between 0 and 128 for IPv6
 
88
addresses. Setting to any invalid value is equivalent to setting to
 
89
-1, which means "no prefix length".</p>
42
90
<p>Setting the prefix length also sets the netmask (see <a href="qnetworkaddressentry.html#netmask">netmask</a>()).</p>
43
91
<p>This function was introduced in Qt 4.5.</p>
44
 
<p>See also <a href="qnetworkaddressentry.html#prefixLength">prefixLength</a>() and <a href="qnetworkaddressentry.html#setNetmask">setNetmask</a>().</p>
45
 
<a name="//apple_ref/cpp/instm/QNetworkAddressEntry/operator!=" />
46
 
<h3 class="fn"><a name="__eq__" />bool QNetworkAddressEntry.__eq__ (<i>self</i>, <a href="qnetworkaddressentry.html">QNetworkAddressEntry</a>)</h3><h3 class="fn"><a name="__ne__" />bool QNetworkAddressEntry.__ne__ (<i>self</i>, <a href="qnetworkaddressentry.html">QNetworkAddressEntry</a>)</h3><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.7.7 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2010</td><td align="right" width="25%">Qt&#160;4.6.3</td></tr></table></div></address></body></html>
 
 
b'\\ No newline at end of file'
 
92
<p>See also <a href="qnetworkaddressentry.html#prefixLength">prefixLength</a>() and
 
93
<a href="qnetworkaddressentry.html#setNetmask">setNetmask</a>().</p>
 
94
 
 
95
 
 
96
<h3 class="fn"><a name="__eq__" />bool QNetworkAddressEntry.__eq__ (<i>self</i>, <a href="qnetworkaddressentry.html">QNetworkAddressEntry</a>)</h3><h3 class="fn"><a name="__ne__" />bool QNetworkAddressEntry.__ne__ (<i>self</i>, <a href="qnetworkaddressentry.html">QNetworkAddressEntry</a>)</h3><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.8.1 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2010</td><td align="right" width="25%">Qt&#160;4.7.0</td></tr></table></div></address></body></html>
 
 
b'\\ No newline at end of file'