Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > c61c536f80c3d067f7ca643389c560f9 > files > 34

qtremoteobjects5-doc-5.12.2-2.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qremoteobjectnode.cpp -->
  <title>QRemoteObjectRegistryHost Class | Qt Remote Objects 5.12.2</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.12</td><td ><a href="qtremoteobjects-index.html">Qt Remote Objects</a></td><td ><a href="qtremoteobjects-module.html">C++ Classes</a></td><td >QRemoteObjectRegistryHost</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtremoteobjects-index.html">Qt 5.12.2 Reference Documentation</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#reimplemented-public-functions">Reimplemented Public Functions</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QRemoteObjectRegistryHost Class</h1>
<!-- $$$QRemoteObjectRegistryHost-brief -->
<p>A (Host/Registry) node on a Qt Remote Objects network. <a href="#details">More...</a></p>
<!-- @@@QRemoteObjectRegistryHost -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QRemoteObjectRegistryHost&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += remoteobjects</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qremoteobjecthostbase.html">QRemoteObjectHostBase</a></td></tr></table></div><ul>
<li><a href="qremoteobjectregistryhost-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qremoteobjectregistryhost.html#QRemoteObjectRegistryHost">QRemoteObjectRegistryHost</a></b>(const QUrl &amp;<i>registryAddress</i> = QUrl(), QObject *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qremoteobjectregistryhost.html#dtor.QRemoteObjectRegistryHost">~QRemoteObjectRegistryHost</a></b>() override</td></tr>
</table></div>
<a name="reimplemented-public-functions"></a>
<h2 id="reimplemented-public-functions">Reimplemented Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qremoteobjectregistryhost.html#setRegistryUrl">setRegistryUrl</a></b>(const QUrl &amp;<i>registryUrl</i>) override</td></tr>
</table></div>
<ul>
<li class="fn">8 public functions inherited from <a href="qremoteobjecthostbase.html#public-functions">QRemoteObjectHostBase</a></li>
<li class="fn">18 public functions inherited from <a href="qremoteobjectnode.html#public-functions">QRemoteObjectNode</a></li>
</ul>
<a name="static-public-members"></a>
<h2 id="static-public-members">Static Public Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> const QMetaObject </td><td class="memItemRight bottomAlign"><b><a href="qremoteobjectregistryhost.html#staticMetaObject-var">staticMetaObject</a></b></td></tr>
</table></div>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">3 properties inherited from <a href="qremoteobjectnode.html#properties">QRemoteObjectNode</a></li>
<li class="fn">4 signals inherited from <a href="qremoteobjectnode.html#signals">QRemoteObjectNode</a></li>
<li class="fn">1 protected function inherited from <a href="qremoteobjectnode.html#protected-functions">QRemoteObjectNode</a></li>
</ul>
<a name="details"></a>
<!-- $$$QRemoteObjectRegistryHost-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>A (Host/Registry) node on a Qt Remote Objects network.</p>
<p>The <a href="qremoteobjectregistryhost.html">QRemoteObjectRegistryHost</a> class provides an entry point to a <a href="qtremoteobjects-qmlmodule.html">QtRemoteObjects</a> network. A network can be as simple as two Nodes, or an arbitrarily complex set of processes and devices.</p>
<p>A <a href="qremoteobjectregistryhost.html">QRemoteObjectRegistryHost</a> has the same capability that a <a href="qremoteobjecthost.html">QRemoteObjectHost</a> has (which includes everything a <a href="qremoteobjectnode.html">QRemoteObjectNode</a> supports), and in addition is the owner of the Registry. Any <a href="qremoteobjecthost.html">QRemoteObjectHost</a> node that connects to this Node will have all of their Source objects made available by the Registry.</p>
<p>Nodes only support connection to one <a href="qtremoteobjects-registry.html#registry">registry</a>, calling <a href="qremoteobjectnode.html#registryUrl-prop">QRemoteObjectNode::setRegistryUrl</a> when a Registry is already set is considered an error. For something like a secure and insecure network (where different Registries would be applicable), the recommendation is to create separate Nodes to connect to each, in effect creating two independent Qt Remote Objects networks.</p>
<p>Nodes may connect to each other directly using <a href="qremoteobjectnode.html#connectToNode">connectToNode</a>, or they can use the <a href="qremoteobjectregistry.html">QRemoteObjectRegistry</a> to simplify connections.</p>
<p>The <a href="qremoteobjectregistry.html">QRemoteObjectRegistry</a> is a special Replica available to every Node that connects to the Registry Url. It knows how to connect to every QRemoteObjectSource object on the network.</p>
</div>
<p><b>See also </b><a href="qremoteobjectnode.html">QRemoteObjectNode</a> and <a href="qremoteobjecthost.html">QRemoteObjectHost</a>.</p>
<!-- @@@QRemoteObjectRegistryHost -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QRemoteObjectRegistryHost[overload1]$$$QRemoteObjectRegistryHostconstQUrl&QObject* -->
<h3 class="fn" id="QRemoteObjectRegistryHost"><a name="QRemoteObjectRegistryHost"></a>QRemoteObjectRegistryHost::<span class="name">QRemoteObjectRegistryHost</span>(const <span class="type">QUrl</span> &amp;<i>registryAddress</i> = QUrl(), <span class="type">QObject</span> *<i>parent</i> = nullptr)</h3>
<p>Constructs a new <a href="qremoteobjectregistryhost.html">QRemoteObjectRegistryHost</a> Node with the given <i>parent</i>. RegistryHost Nodes have the same functionality as <a href="qremoteobjecthost.html">QRemoteObjectHost</a> Nodes, except rather than being able to connect to a <a href="qremoteobjectregistry.html">QRemoteObjectRegistry</a>, the provided Host QUrl (<i>registryAddress</i>) becomes the address of the registry for other Nodes to connect to.</p>
<!-- @@@QRemoteObjectRegistryHost -->
<!-- $$$~QRemoteObjectRegistryHost[overload1]$$$~QRemoteObjectRegistryHost -->
<h3 class="fn" id="dtor.QRemoteObjectRegistryHost"><a name="dtor.QRemoteObjectRegistryHost"></a><code>[override virtual] </code>QRemoteObjectRegistryHost::<span class="name">~QRemoteObjectRegistryHost</span>()</h3>
<p>Destroys the instance of QRemoteObjectRegistryHost. The destructor is virtual.</p><!-- @@@~QRemoteObjectRegistryHost -->
<!-- $$$setRegistryUrl[overload1]$$$setRegistryUrlconstQUrl& -->
<h3 class="fn" id="setRegistryUrl"><a name="setRegistryUrl"></a><code>[override virtual] </code><span class="type">bool</span> QRemoteObjectRegistryHost::<span class="name">setRegistryUrl</span>(const <span class="type">QUrl</span> &amp;<i>registryUrl</i>)</h3>
<p>Reimplemented from <a href="qremoteobjectnode.html#registryUrl-prop">QRemoteObjectNode::setRegistryUrl</a>().</p>
<p>This method can be used to set the address of this Node to <i>registryUrl</i> (used for other Nodes to connect to this one), if the QUrl isn't set in the constructor. Since this Node becomes the Registry, calling this setter method causes this Node to use the url as the host address. All other Node's use the <a href="qremoteobjectnode.html#registryUrl-prop">QRemoteObjectNode::setRegistryUrl</a> method initiate a connection to the Registry.</p>
<p><b>See also </b><a href="qremoteobjectregistryhost.html#QRemoteObjectRegistryHost">QRemoteObjectRegistryHost</a>() and <a href="qremoteobjectnode.html#registryUrl-prop">QRemoteObjectNode::setRegistryUrl</a>.</p>
<!-- @@@setRegistryUrl -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    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.<br/>    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. </p>
</div>
</body>
</html>