Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2138

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QNetworkInterface" doc="/**
&lt;p&gt;The &lt;a href=&quot;QNetworkInterface.html#QNetworkInterface(com.trolltech.qt.network.QNetworkInterface)&quot;&gt;&lt;tt&gt;QNetworkInterface&lt;/tt&gt;&lt;/a&gt; class provides a listing of the host's IP addresses and network interfaces.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QNetworkInterface.html#QNetworkInterface(com.trolltech.qt.network.QNetworkInterface)&quot;&gt;&lt;tt&gt;QNetworkInterface&lt;/tt&gt;&lt;/a&gt; represents one network interface attached to the host where the program is being run. Each network interface may contain zero or more IP addresses, each of which is optionally associated with a netmask and/or a broadcast address. The list of such trios can be obtained with &lt;a href=&quot;QNetworkInterface.html#addressEntries()&quot;&gt;&lt;tt&gt;addressEntries&lt;/tt&gt;&lt;/a&gt;. Alternatively, when the netmask or the broadcast addresses aren't necessary, use the &lt;a href=&quot;QNetworkInterface.html#allAddresses()&quot;&gt;&lt;tt&gt;allAddresses&lt;/tt&gt;&lt;/a&gt; convenience function to obtain just the IP addresses.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QNetworkInterface.html#QNetworkInterface(com.trolltech.qt.network.QNetworkInterface)&quot;&gt;&lt;tt&gt;QNetworkInterface&lt;/tt&gt;&lt;/a&gt; also reports the interface's hardware address with &lt;a href=&quot;QNetworkInterface.html#hardwareAddress()&quot;&gt;&lt;tt&gt;hardwareAddress&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Not all operating systems support reporting all features. Only the IPv4 addresses are guaranteed to be listed by this class in all platforms. In particular, IPv6 address listing is only supported on Windows XP and more recent versions, Linux, MacOS X and the BSDs.&lt;/p&gt;

@see &lt;a href=&quot;QNetworkAddressEntry.html&quot;&gt;&lt;tt&gt;QNetworkAddressEntry&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QNetworkInterface()" doc="/**
&lt;p&gt;Constructs an empty network interface object.&lt;/p&gt;
 */"/>
    <method name="public QNetworkInterface(com.trolltech.qt.network.QNetworkInterface other)" doc="/**
&lt;p&gt;Creates a copy of the the &lt;a href=&quot;QNetworkInterface.html#QNetworkInterface(com.trolltech.qt.network.QNetworkInterface)&quot;&gt;&lt;tt&gt;QNetworkInterface&lt;/tt&gt;&lt;/a&gt; object contained in &lt;tt&gt;other&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.network.QNetworkAddressEntry&gt; addressEntries()" doc="/**
&lt;p&gt;Returns the list of IP addresses that this interface possesses along with their associated netmasks and broadcast addresses.&lt;/p&gt;
&lt;p&gt;If the netmask or broadcast address information is not necessary, you can call the &lt;a href=&quot;QNetworkInterface.html#allAddresses()&quot;&gt;&lt;tt&gt;allAddresses&lt;/tt&gt;&lt;/a&gt; function to obtain just the IP addresses.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.network.QNetworkInterface.InterfaceFlags flags()" doc="/**
&lt;p&gt;Returns the flags associated with this network interface.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String hardwareAddress()" doc="/**
&lt;p&gt;Returns the low-level hardware address for this interface. On Ethernet interfaces, this will be a MAC address in string representation, separated by colons.&lt;/p&gt;
&lt;p&gt;Other interface types may have other types of hardware addresses. Implementations should not depend on this function returning a valid MAC address.&lt;/p&gt;
 */"/>
    <method name="public final boolean isValid()" doc="/**
&lt;p&gt;Returns true if this &lt;a href=&quot;QNetworkInterface.html#QNetworkInterface(com.trolltech.qt.network.QNetworkInterface)&quot;&gt;&lt;tt&gt;QNetworkInterface&lt;/tt&gt;&lt;/a&gt; object contains valid information about a network interface.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String name()" doc="/**
&lt;p&gt;Returns the name of this network interface. On Unix systems, this is a string containing the type of the interface and optionally a sequence number, such as &amp;quot;eth0&amp;quot;, &amp;quot;lo&amp;quot; or &amp;quot;pcn0&amp;quot;. On Windows, it's an internal ID that cannot be changed by the user.&lt;/p&gt;
 */"/>
    <method name="public native static java.util.List&lt;com.trolltech.qt.network.QHostAddress&gt; allAddresses()" doc="/**
&lt;p&gt;This convenience function returns all IP addresses found on the host machine. It is equivalent to calling &lt;a href=&quot;QNetworkInterface.html#addressEntries()&quot;&gt;&lt;tt&gt;addressEntries&lt;/tt&gt;&lt;/a&gt; on all the objects returned by &lt;a href=&quot;QNetworkInterface.html#allInterfaces()&quot;&gt;&lt;tt&gt;allInterfaces&lt;/tt&gt;&lt;/a&gt; to obtain lists of &lt;a href=&quot;QHostAddress.html&quot;&gt;&lt;tt&gt;QHostAddress&lt;/tt&gt;&lt;/a&gt; objects then calling QHostAddress::ip() on each of these.&lt;/p&gt;
 */"/>
    <method name="public native static java.util.List&lt;com.trolltech.qt.network.QNetworkInterface&gt; allInterfaces()" doc="/**
&lt;p&gt;Returns a listing of all the network interfaces found on the host machine.&lt;/p&gt;
 */"/>
    <method name="public native static com.trolltech.qt.network.QNetworkInterface interfaceFromIndex(int index)" doc="/**
&lt;p&gt;Returns a &lt;a href=&quot;QNetworkInterface.html#QNetworkInterface(com.trolltech.qt.network.QNetworkInterface)&quot;&gt;&lt;tt&gt;QNetworkInterface&lt;/tt&gt;&lt;/a&gt; object for the interface whose internal ID is &lt;tt&gt;index&lt;/tt&gt;. Network interfaces have a unique identifier called the &amp;quot;interface index&amp;quot; to distinguish it from other interfaces on the system. Often, this value is assigned progressively and interfaces being removed and then added again get a different value every time.&lt;/p&gt;
&lt;p&gt;This index is also found in the IPv6 address' scope ID field.&lt;/p&gt;
 */"/>
    <method name="public native static com.trolltech.qt.network.QNetworkInterface interfaceFromName(java.lang.String name)" doc="/**
&lt;p&gt;Returns a &lt;a href=&quot;QNetworkInterface.html#QNetworkInterface(com.trolltech.qt.network.QNetworkInterface)&quot;&gt;&lt;tt&gt;QNetworkInterface&lt;/tt&gt;&lt;/a&gt; object for the interface named &lt;tt&gt;name&lt;/tt&gt;. If no such interface exists, this function returns an invalid &lt;a href=&quot;QNetworkInterface.html#QNetworkInterface(com.trolltech.qt.network.QNetworkInterface)&quot;&gt;&lt;tt&gt;QNetworkInterface&lt;/tt&gt;&lt;/a&gt; object.&lt;/p&gt;

@see &lt;a href=&quot;QNetworkInterface.html#name()&quot;&gt;&lt;tt&gt;name&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QNetworkInterface.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="InterfaceFlag" doc="/**
&lt;p&gt;Specifies the flags associated with this network interface. The possible values are:&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;IsUp&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;1&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;the network interface is active&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;IsRunning&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;2&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;the network interface has resources allocated&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;CanBroadcast&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;4&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;the network interface works in broadcast mode&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;IsLoopBack&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;8&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;the network interface is a loopback interface: that is, it's a virtual interface whose destination is the host computer itself&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;IsPointToPoint&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;16&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;the network interface is a point-to-point interface: that is, there is one, single other address that can be directly reached by it.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;CanMulticast&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;32&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;the network interface supports multicasting&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;Note that one network interface cannot be both broadcast-based and point-to-point.&lt;/p&gt;
 */">
        <enum-value name="IsUp" doc="/**
&lt;p&gt;the network interface is active&lt;/p&gt;
 */"/>
        <enum-value name="IsRunning" doc="/**
&lt;p&gt;the network interface has resources allocated&lt;/p&gt;
 */"/>
        <enum-value name="CanBroadcast" doc="/**
&lt;p&gt;the network interface works in broadcast mode&lt;/p&gt;
 */"/>
        <enum-value name="IsLoopBack" doc="/**
&lt;p&gt;the network interface is a loopback interface: that is, it's a virtual interface whose destination is the host computer itself&lt;/p&gt;
 */"/>
        <enum-value name="IsPointToPoint" doc="/**
&lt;p&gt;the network interface is a point-to-point interface: that is, there is one, single other address that can be directly reached by it.&lt;/p&gt;
 */"/>
        <enum-value name="CanMulticast" doc="/**
&lt;p&gt;the network interface supports multicasting&lt;/p&gt;
 */"/>
</enum>
</class>