IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QRemoteObjectHost Class

A (Host) Node on a Qt Remote Objects network.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QRemoteObjectHost Class▲

  • Header: QRemoteObjectHost

  • qmake: QT += remoteobjects

  • Inherits: https://

Detailed Description▲

The https:// class provides an entry point to a https:// network. A network can be as simple as two nodes, or an arbitrarily complex set of processes and devices.

QRemoteObjectHosts have the same capabilities as QRemoteObjectNodes, but they can also be connected to and can share source objects on the network.

Nodes may connect to each other directly using https://, or they can use the https:// to simplify connections.

The https:// is a special replica available to every node that connects to the uegistry Url. It knows how to connect to every QRemoteObjectSource object on the network.

See Also▲

See also https://, https://

Member Function Documentation▲

 

QRemoteObjectHost::QRemoteObjectHost(QObject *parent = nullptr)▲

Constructs a new https:// Node (i.e., a Node that supports exposing https:// objects on the QtRO network) with the given parent. This constructor is meant specific to support QML in the future as it will not be available to connect to until https://() is called.

See Also▲

See also https://, https://, setRegistryUrl()

QRemoteObjectHost::QRemoteObjectHost(const QUrl &address, const QUrl &registryAddress = QUrl(), QRemoteObjectHostBase::AllowedSchemas allowedSchemas = BuiltInSchemasOnly, QObject *parent = nullptr)▲

Constructs a new https:// Node (i.e., a Node that supports exposing https:// objects on the QtRO network) with address address. If set, registryAddress will be used to connect to the https:// at the provided address. The allowedSchemas parameter is only needed (and should be set to https://) if the schema of the url should be used as an https:// by the registry.

See Also▲

See also https://, https://, setRegistryUrl()

QRemoteObjectHost::QRemoteObjectHost(const QUrl &address, QObject *parent)▲

Constructs a new https:// Node (i.e., a Node that supports exposing https:// objects on the QtRO network) with a url of address and the given parent. This overload is provided as a convenience for specifying a https:// parent without providing a registry address.

See Also▲

See also https://(), https://()

[override virtual] QUrl QRemoteObjectHost::hostUrl() const▲

Returns the host address for the https:// as a https://. If the Node is not a Host node, it return an empty https://.

See Also▲

See also https://, ()

[override virtual] bool QRemoteObjectHost::setHostUrl(const QUrl &hostAddress, QRemoteObjectHostBase::AllowedSchemas allowedSchemas = BuiltInSchemasOnly)▲

Sets the hostAddress for a host https://.

Returns true if the Host address is set, otherwise false.

The allowedSchemas parameter is only needed (and should be set to https://) if the schema of the url should be used as an https:// by the registry.

See Also▲

See also https://()

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+   

Ce document est disponible sous la licence https:// telle que publiée par la Free Software Foundation.