Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 1dd17e0d683ef79b4bb6872bbf359d7f > files > 6060

qt4-doc-4.8.7-26.2.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qnetworkconfigmanager.cpp -->
  <title>Qt 4.8: QNetworkConfigurationManager Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/style.css" />
  <script src="scripts/jquery.js" type="text/javascript"></script>
  <script src="scripts/functions.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" href="style/superfish.css" />
  <link rel="stylesheet" type="text/css" href="style/narrow.css" />
  <!--[if IE]>
<meta name="MSSmartTagsPreventParsing" content="true">
<meta http-equiv="imagetoolbar" content="no">
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
<![endif]-->

<script src="scripts/superfish.js" type="text/javascript"></script>
<script src="scripts/narrow.js" type="text/javascript"></script>

</head>
<body class="" onload="CheckEmptyAndLoadList();">
 <div class="header" id="qtdocheader">
    <div class="content"> 
    <div id="nav-logo">
      <a href="index.html">Home</a></div>
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
    <div id="narrowsearch"></div>
    <div id="nav-topright">
      <ul>
        <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li>
        <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li>
        <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/">
          DOC</a></li>
        <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li>
      </ul>
    </div>
    <div id="shortCut">
      <ul>
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li>
        <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS        </a></li>
      </ul>
     </div>
 <ul class="sf-menu" id="narrowmenu"> 
             <li><a href="#">API Lookup</a> 
                 <ul> 
                     <li><a href="classes.html">Class index</a></li> 
           <li><a href="functions.html">Function index</a></li> 
           <li><a href="modules.html">Modules</a></li> 
           <li><a href="namespaces.html">Namespaces</a></li> 
           <li><a href="qtglobal.html">Global Declarations</a></li> 
           <li><a href="qdeclarativeelements.html">QML elements</a></li> 
             </ul> 
             </li> 
             <li><a href="#">Qt Topics</a> 
                 <ul> 
                        <li><a href="qt-basic-concepts.html">Programming with Qt</a></li>  
                        <li><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li>  
                        <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>  
                        <li><a href="supported-platforms.html">Supported Platforms</a></li>  
                        <li><a href="technology-apis.html">Qt and Key Technologies</a></li>  
                        <li><a href="best-practices.html">How-To's and Best Practices</a></li>  
              </ul> 
                 </li> 
                 <li><a href="#">Examples</a> 
                     <ul> 
                       <li><a href="all-examples.html">Examples</a></li> 
                       <li><a href="tutorials.html">Tutorials</a></li> 
                       <li><a href="demos.html">Demos</a></li> 
                       <li><a href="qdeclarativeexamples.html">QML Examples</a></li> 
                </ul> 
                     </li> 
                 </ul> 
    </div>
  </div>
  <div class="wrapper">
    <div class="hd">
      <span></span>
    </div>
    <div class="bd group">
      <div class="sidebar">
        <div class="searchlabel">
          Search index:</div>
        <div class="search" id="sidebarsearch">
          <form id="qtdocsearch" action="" onsubmit="return false;">
            <fieldset>
              <input type="text" name="searchstring" id="pageType" value="" />
 <div id="resultdialog"> 
 <a href="#" id="resultclose">Close</a> 
 <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> 
 <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span>&nbsp;results:</p> 
 <ul id="resultlist" class="all"> 
 </ul> 
 </div> 
            </fieldset>
          </form>
        </div>
        <div class="box first bottombar" id="lookup">
          <h2 title="API Lookup"><span></span>
            API Lookup</h2>
          <div  id="list001" class="list">
          <ul id="ul001" >
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
              <li class="defaultLink"><a href="functions.html">Function index</a></li>
              <li class="defaultLink"><a href="modules.html">Modules</a></li>
              <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
              <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
              <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
            </ul> 
          </div>
        </div>
        <div class="box bottombar" id="topics">
          <h2 title="Qt Topics"><span></span>
            Qt Topics</h2>
          <div id="list002" class="list">
            <ul id="ul002" >
               <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
               <li class="defaultLink"><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li> 
               <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
               <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li>  
               <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> 
               <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> 
            </ul>  
          </div>
        </div>
        <div class="box" id="examples">
          <h2 title="Examples"><span></span>
            Examples</h2>
          <div id="list003" class="list">
        <ul id="ul003">
              <li class="defaultLink"><a href="all-examples.html">Examples</a></li>
              <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
              <li class="defaultLink"><a href="demos.html">Demos</a></li>
              <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
            </ul> 
          </div>
        </div>
      </div>
      <div class="wrap">
        <div class="toolbar">
          <div class="breadcrumb toolblock">
            <ul>
              <li class="first"><a href="index.html">Home</a></li>
              <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtnetwork.html">QtNetwork</a></li>
<li>QNetworkConfigurationManager</li>
            </ul>
          </div>
          <div class="toolbuttons toolblock">
            <ul>
              <li id="smallA" class="t_button">A</li>
              <li id="medA" class="t_button active">A</li>
              <li id="bigA" class="t_button">A</li>
              <li id="print" class="t_button"><a href="javascript:this.print();">
                <span>Print</span></a></li>
            </ul>
        </div>
        </div>
        <div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#public-slots">Public Slots</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QNetworkConfigurationManager Class Reference</h1>
<!-- $$$QNetworkConfigurationManager-brief -->
<p>The QNetworkConfigurationManager class manages the network configurations provided by the system. <a href="#details">More...</a></p>
<!-- @@@QNetworkConfigurationManager -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QNetworkConfigurationManager&gt;</span></pre><p><b>Inherits: </b><a href="qobject.html">QObject</a>.</p>
<p>This class was introduced in Qt 4.7.</p>
<ul>
<li><a href="qnetworkconfigurationmanager-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> flags </td><td class="memItemRight bottomAlign"><b><a href="qnetworkconfigurationmanager.html#Capability-enum">Capabilities</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qnetworkconfigurationmanager.html#Capability-enum">Capability</a></b> { CanStartAndStopInterfaces, DirectConnectionRouting, SystemSessionSupport, ApplicationLevelRoaming, ..., NetworkSessionRequired }</td></tr>
</table>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qnetworkconfigurationmanager.html#QNetworkConfigurationManager">QNetworkConfigurationManager</a></b> ( QObject * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qnetworkconfigurationmanager.html#dtor.QNetworkConfigurationManager">~QNetworkConfigurationManager</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QNetworkConfiguration&gt; </td><td class="memItemRight bottomAlign"><b><a href="qnetworkconfigurationmanager.html#allConfigurations">allConfigurations</a></b> ( QNetworkConfiguration::StateFlags <i>filter</i> = 0 ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QNetworkConfigurationManager::Capabilities </td><td class="memItemRight bottomAlign"><b><a href="qnetworkconfigurationmanager.html#capabilities">capabilities</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QNetworkConfiguration </td><td class="memItemRight bottomAlign"><b><a href="qnetworkconfigurationmanager.html#configurationFromIdentifier">configurationFromIdentifier</a></b> ( const QString &amp; <i>identifier</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QNetworkConfiguration </td><td class="memItemRight bottomAlign"><b><a href="qnetworkconfigurationmanager.html#defaultConfiguration">defaultConfiguration</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qnetworkconfigurationmanager.html#isOnline">isOnline</a></b> () const</td></tr>
</table>
<ul>
<li class="fn">29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
</ul>
<a name="public-slots"></a>
<h2>Public Slots</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qnetworkconfigurationmanager.html#updateConfigurations">updateConfigurations</a></b> ()</td></tr>
</table>
<ul>
<li class="fn">1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
</ul>
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qnetworkconfigurationmanager.html#configurationAdded">configurationAdded</a></b> ( const QNetworkConfiguration &amp; <i>config</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qnetworkconfigurationmanager.html#configurationChanged">configurationChanged</a></b> ( const QNetworkConfiguration &amp; <i>config</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qnetworkconfigurationmanager.html#configurationRemoved">configurationRemoved</a></b> ( const QNetworkConfiguration &amp; <i>config</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qnetworkconfigurationmanager.html#onlineStateChanged">onlineStateChanged</a></b> ( bool <i>isOnline</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qnetworkconfigurationmanager.html#updateCompleted">updateCompleted</a></b> ()</td></tr>
</table>
<ul>
<li class="fn">1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 property inherited from <a href="qobject.html#properties">QObject</a></li>
<li class="fn">7 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$QNetworkConfigurationManager-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QNetworkConfigurationManager class manages the network configurations provided by the system.</p>
<p>QNetworkConfigurationManager provides access to the network configurations known to the system and enables applications to detect the system capabilities (with regards to network sessions) at runtime.</p>
<p>A <a href="qnetworkconfiguration.html">QNetworkConfiguration</a> abstracts a set of configuration options describing how a network interface has to be configured to connect to a particular target network. QNetworkConfigurationManager maintains and updates the global list of QNetworkConfigurations. Applications can access and filter this list via <a href="qnetworkconfigurationmanager.html#allConfigurations">allConfigurations</a>(). If a new configuration is added or an existing one is removed or changed the <a href="qnetworkconfigurationmanager.html#configurationAdded">configurationAdded</a>(), <a href="qnetworkconfigurationmanager.html#configurationRemoved">configurationRemoved</a>() and <a href="qnetworkconfigurationmanager.html#configurationChanged">configurationChanged</a>() signals are emitted respectively.</p>
<p>The <a href="qnetworkconfigurationmanager.html#defaultConfiguration">defaultConfiguration</a>() can be used when intending to immediately create a new network session without caring about the particular configuration. It returns a <a href="qnetworkconfiguration.html#StateFlag-enum">QNetworkConfiguration::Discovered</a> configuration. If there are not any discovered ones an invalid configuration is returned.</p>
<p>Some configuration updates may require some time to perform updates. A WLAN scan is such an example. Unless the platform performs internal updates it may be required to manually trigger configuration updates via <a href="qnetworkconfigurationmanager.html#updateConfigurations">QNetworkConfigurationManager::updateConfigurations</a>(). The completion of the update process is indicated by emitting the <a href="qnetworkconfigurationmanager.html#updateCompleted">updateCompleted</a>() signal. The update process ensures that every existing <a href="qnetworkconfiguration.html">QNetworkConfiguration</a> instance is updated. There is no need to ask for a renewed configuration list via <a href="qnetworkconfigurationmanager.html#allConfigurations">allConfigurations</a>().</p>
</div>
<p><b>See also </b><a href="qnetworkconfiguration.html">QNetworkConfiguration</a>.</p>
<!-- @@@QNetworkConfigurationManager -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$Capability$$$CanStartAndStopInterfaces$$$DirectConnectionRouting$$$SystemSessionSupport$$$ApplicationLevelRoaming$$$ForcedRoaming$$$DataStatistics$$$NetworkSessionRequired -->
<h3 class="flags"><a name="Capability-enum"></a>enum QNetworkConfigurationManager::<span class="name">Capability</span><br/>flags QNetworkConfigurationManager::<span class="name">Capabilities</span></h3>
<p>Specifies the system capabilities of the bearer API. The possible values are:</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QNetworkConfigurationManager::CanStartAndStopInterfaces</tt></td><td class="topAlign"><tt>0x00000001</tt></td><td class="topAlign">Network sessions and their underlying access points can be started and stopped. If this flag is not set <a href="qnetworksession.html">QNetworkSession</a> can only monitor but not influence the state of access points. On some platforms this feature may require elevated user permissions. This option is platform specific and may not always be available.</td></tr>
<tr><td class="topAlign"><tt>QNetworkConfigurationManager::DirectConnectionRouting</tt></td><td class="topAlign"><tt>0x00000002</tt></td><td class="topAlign">Network sessions and their sockets can be bound to a particular network interface. Any packet that passes through the socket goes to the specified network interface and thus disregards standard routing table entries. This may be useful when two interfaces can reach overlapping IP ranges or an application has specific needs in regards to target networks. This option is platform specific and may not always be available.</td></tr>
<tr><td class="topAlign"><tt>QNetworkConfigurationManager::SystemSessionSupport</tt></td><td class="topAlign"><tt>0x00000004</tt></td><td class="topAlign">If this flag is set the underlying platform ensures that a network interface is not shut down until the last network session has been <a href="qnetworksession.html#close">closed()</a>. This works across multiple processes. If the platform session support is missing this API can only ensure the above behavior for network sessions within the same process. In general mobile platforms (such as Symbian/S60) have such support whereas most desktop platform lack this capability.</td></tr>
<tr><td class="topAlign"><tt>QNetworkConfigurationManager::ApplicationLevelRoaming</tt></td><td class="topAlign"><tt>0x00000008</tt></td><td class="topAlign">The system gives applications control over the systems roaming behavior. Applications can initiate roaming (in case the current link is not suitable) and are consulted if the system has identified a more suitable access point.</td></tr>
<tr><td class="topAlign"><tt>QNetworkConfigurationManager::ForcedRoaming</tt></td><td class="topAlign"><tt>0x00000010</tt></td><td class="topAlign">The system disconnects an existing access point and reconnects via a more suitable one. The application does not have any control over this process and has to reconnect its active sockets.</td></tr>
<tr><td class="topAlign"><tt>QNetworkConfigurationManager::DataStatistics</tt></td><td class="topAlign"><tt>0x00000020</tt></td><td class="topAlign">If this flag is set <a href="qnetworksession.html">QNetworkSession</a> can provide statistics about transmitted and received data.</td></tr>
<tr><td class="topAlign"><tt>QNetworkConfigurationManager::NetworkSessionRequired</tt></td><td class="topAlign"><tt>0x00000040</tt></td><td class="topAlign">If this flag is set the platform requires that a network session is created before network operations can be performed.</td></tr>
</table>
<p>The Capabilities type is a typedef for <a href="qflags.html">QFlags</a>&lt;Capability&gt;. It stores an OR combination of Capability values.</p>
<!-- @@@Capability -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QNetworkConfigurationManager[overload1]$$$QNetworkConfigurationManagerQObject* -->
<h3 class="fn"><a name="QNetworkConfigurationManager"></a>QNetworkConfigurationManager::<span class="name">QNetworkConfigurationManager</span> ( <span class="type"><a href="qobject.html">QObject</a></span> * <i>parent</i> = 0 )</h3>
<p>Constructs a <a href="qnetworkconfigurationmanager.html">QNetworkConfigurationManager</a> with the given <i>parent</i>.</p>
<p>Note that to ensure a valid list of current configurations immediately available, updating is done during construction which causes some delay.</p>
<!-- @@@QNetworkConfigurationManager -->
<!-- $$$~QNetworkConfigurationManager[overload1]$$$~QNetworkConfigurationManager -->
<h3 class="fn"><a name="dtor.QNetworkConfigurationManager"></a>QNetworkConfigurationManager::<span class="name">~QNetworkConfigurationManager</span> ()<tt> [virtual]</tt></h3>
<p>Frees the resources associated with the <a href="qnetworkconfigurationmanager.html">QNetworkConfigurationManager</a> object.</p>
<!-- @@@~QNetworkConfigurationManager -->
<!-- $$$allConfigurations[overload1]$$$allConfigurationsQNetworkConfiguration::StateFlags -->
<h3 class="fn"><a name="allConfigurations"></a><span class="type"><a href="qlist.html">QList</a></span>&lt;<span class="type"><a href="qnetworkconfiguration.html">QNetworkConfiguration</a></span>&gt; QNetworkConfigurationManager::<span class="name">allConfigurations</span> ( <span class="type"><a href="qnetworkconfiguration.html#StateFlag-enum">QNetworkConfiguration::StateFlags</a></span> <i>filter</i> = 0 ) const</h3>
<p>Returns the list of configurations which comply with the given <i>filter</i>.</p>
<p>By default this function returns all (defined and undefined) configurations.</p>
<p>A wireless network with a particular SSID may only be accessible in a certain area despite the fact that the system has a valid configuration for it. Therefore the filter flag may be used to limit the list to discovered and possibly connected configurations only.</p>
<p>If <i>filter</i> is set to zero this function returns all possible configurations.</p>
<p>Note that this function returns the states for all configurations as they are known at the time of this function call. If for instance a configuration of type WLAN is defined the system may have to perform a WLAN scan in order to determine whether it is actually available. To obtain the most accurate state <a href="qnetworkconfigurationmanager.html#updateConfigurations">updateConfigurations</a>() should be used to update each configuration's state. Note that such an update may require some time. It's completion is signalled by <a href="qnetworkconfigurationmanager.html#updateCompleted">updateCompleted</a>(). In the absence of a configuration update this function returns the best estimate at the time of the call. Therefore, if WLAN configurations are of interest, it is recommended that <a href="qnetworkconfigurationmanager.html#updateConfigurations">updateConfigurations</a>() is called once after <a href="qnetworkconfigurationmanager.html">QNetworkConfigurationManager</a> instantiation (WLAN scans are too time consuming to perform in constructor). After this the data is kept automatically up-to-date as the system reports any changes.</p>
<!-- @@@allConfigurations -->
<!-- $$$capabilities[overload1]$$$capabilities -->
<h3 class="fn"><a name="capabilities"></a><span class="type"><a href="qnetworkconfigurationmanager.html#Capability-enum">QNetworkConfigurationManager::Capabilities</a></span> QNetworkConfigurationManager::<span class="name">capabilities</span> () const</h3>
<p>Returns the capabilities supported by the current platform.</p>
<!-- @@@capabilities -->
<!-- $$$configurationAdded[overload1]$$$configurationAddedconstQNetworkConfiguration& -->
<h3 class="fn"><a name="configurationAdded"></a><span class="type">void</span> QNetworkConfigurationManager::<span class="name">configurationAdded</span> ( const <span class="type"><a href="qnetworkconfiguration.html">QNetworkConfiguration</a></span> &amp; <i>config</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted whenever a new network configuration is added to the system. The new configuration is specified by <i>config</i>.</p>
<!-- @@@configurationAdded -->
<!-- $$$configurationChanged[overload1]$$$configurationChangedconstQNetworkConfiguration& -->
<h3 class="fn"><a name="configurationChanged"></a><span class="type">void</span> QNetworkConfigurationManager::<span class="name">configurationChanged</span> ( const <span class="type"><a href="qnetworkconfiguration.html">QNetworkConfiguration</a></span> &amp; <i>config</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the <a href="qnetworkconfiguration.html#state">state</a> of <i>config</i> changes.</p>
<!-- @@@configurationChanged -->
<!-- $$$configurationFromIdentifier[overload1]$$$configurationFromIdentifierconstQString& -->
<h3 class="fn"><a name="configurationFromIdentifier"></a><span class="type"><a href="qnetworkconfiguration.html">QNetworkConfiguration</a></span> QNetworkConfigurationManager::<span class="name">configurationFromIdentifier</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>identifier</i> ) const</h3>
<p>Returns the <a href="qnetworkconfiguration.html">QNetworkConfiguration</a> for <i>identifier</i>; otherwise returns an invalid <a href="qnetworkconfiguration.html">QNetworkConfiguration</a>.</p>
<p><b>See also </b><a href="qnetworkconfiguration.html#identifier">QNetworkConfiguration::identifier</a>().</p>
<!-- @@@configurationFromIdentifier -->
<!-- $$$configurationRemoved[overload1]$$$configurationRemovedconstQNetworkConfiguration& -->
<h3 class="fn"><a name="configurationRemoved"></a><span class="type">void</span> QNetworkConfigurationManager::<span class="name">configurationRemoved</span> ( const <span class="type"><a href="qnetworkconfiguration.html">QNetworkConfiguration</a></span> &amp; <i>config</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when a configuration is about to be removed from the system. The removed configuration, specified by <i>config</i>, is invalid but retains name and identifier.</p>
<p>This function was introduced in Qt 4.8.</p>
<!-- @@@configurationRemoved -->
<!-- $$$defaultConfiguration[overload1]$$$defaultConfiguration -->
<h3 class="fn"><a name="defaultConfiguration"></a><span class="type"><a href="qnetworkconfiguration.html">QNetworkConfiguration</a></span> QNetworkConfigurationManager::<span class="name">defaultConfiguration</span> () const</h3>
<p>Returns the default configuration to be used. This function always returns a discovered configuration; otherwise an invalid configuration.</p>
<p>In some cases it may be required to call <a href="qnetworkconfigurationmanager.html#updateConfigurations">updateConfigurations</a>() and wait for the <a href="qnetworkconfigurationmanager.html#updateCompleted">updateCompleted</a>() signal before calling this function.</p>
<p><b>See also </b><a href="qnetworkconfigurationmanager.html#allConfigurations">allConfigurations</a>().</p>
<!-- @@@defaultConfiguration -->
<!-- $$$isOnline[overload1]$$$isOnline -->
<h3 class="fn"><a name="isOnline"></a><span class="type">bool</span> QNetworkConfigurationManager::<span class="name">isOnline</span> () const</h3>
<p>Returns true if the system is considered to be connected to another device via an active network interface; otherwise returns false.</p>
<p>This is equivalent to the following code snippet:</p>
<pre class="cpp"> <span class="type"><a href="qnetworkconfigurationmanager.html">QNetworkConfigurationManager</a></span> mgr;
 <span class="type"><a href="qlist.html">QList</a></span><span class="operator">&lt;</span><span class="type"><a href="qnetworkconfiguration.html">QNetworkConfiguration</a></span><span class="operator">&gt;</span> activeConfigs <span class="operator">=</span> mgr<span class="operator">.</span><a href="qnetworkconfigurationmanager.html#allConfigurations">allConfigurations</a>(<span class="type"><a href="qnetworkconfiguration.html">QNetworkConfiguration</a></span><span class="operator">::</span>Active)
 <span class="keyword">if</span> (activeConfigs<span class="operator">.</span>count() <span class="operator">&gt;</span> <span class="number">0</span>)
     <a href="qtglobal.html#Q_ASSERT">Q_ASSERT</a>(mgr<span class="operator">.</span>isOnline())
 <span class="keyword">else</span>
     <a href="qtglobal.html#Q_ASSERT">Q_ASSERT</a>(<span class="operator">!</span>mgr<span class="operator">.</span>isOnline())</pre>
<p><b>See also </b><a href="qnetworkconfigurationmanager.html#onlineStateChanged">onlineStateChanged</a>().</p>
<!-- @@@isOnline -->
<!-- $$$onlineStateChanged[overload1]$$$onlineStateChangedbool -->
<h3 class="fn"><a name="onlineStateChanged"></a><span class="type">void</span> QNetworkConfigurationManager::<span class="name">onlineStateChanged</span> ( <span class="type">bool</span> <i>isOnline</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the device changes from online to offline mode or vice versa. <i>isOnline</i> represents the new state of the device.</p>
<p>The state is considered to be online for as long as <a href="qnetworkconfigurationmanager.html#allConfigurations">allConfigurations</a>(<a href="qnetworkconfiguration.html#StateFlag-enum">QNetworkConfiguration::Active</a>) returns a list with at least one entry.</p>
<!-- @@@onlineStateChanged -->
<!-- $$$updateCompleted[overload1]$$$updateCompleted -->
<h3 class="fn"><a name="updateCompleted"></a><span class="type">void</span> QNetworkConfigurationManager::<span class="name">updateCompleted</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted when the configuration update has been completed. Such an update can be initiated via <a href="qnetworkconfigurationmanager.html#updateConfigurations">updateConfigurations</a>().</p>
<!-- @@@updateCompleted -->
<!-- $$$updateConfigurations[overload1]$$$updateConfigurations -->
<h3 class="fn"><a name="updateConfigurations"></a><span class="type">void</span> QNetworkConfigurationManager::<span class="name">updateConfigurations</span> ()<tt> [slot]</tt></h3>
<p>Initiates an update of all configurations. This may be used to initiate WLAN scans or other time consuming updates which may be required to obtain the correct state for configurations.</p>
<p>This call is asynchronous. On completion of this update the <a href="qnetworkconfigurationmanager.html#updateCompleted">updateCompleted</a>() signal is emitted. If new configurations are discovered or old ones were removed or changed the update process may trigger the emission of one or multiple <a href="qnetworkconfigurationmanager.html#configurationAdded">configurationAdded</a>(), <a href="qnetworkconfigurationmanager.html#configurationRemoved">configurationRemoved</a>() and <a href="qnetworkconfigurationmanager.html#configurationChanged">configurationChanged</a>() signals.</p>
<p>If a configuration state changes as a result of this update all existing <a href="qnetworkconfiguration.html">QNetworkConfiguration</a> instances are updated automatically.</p>
<p><b>See also </b><a href="qnetworkconfigurationmanager.html#allConfigurations">allConfigurations</a>().</p>
<!-- @@@updateConfigurations -->
</div>
      </div>
    </div>
    </div> 
    <div class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2015 The Qt Company Ltd.
      Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Qt and respective logos are trademarks of The Qt Company Ltd 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
  </div>

  <script src="scripts/functions.js" type="text/javascript"></script>
</body>
</html>