QRemoteObjectHostBase Class

The QRemoteObjectHostBase class provides base functionality common to Host and RegistryHost classes. More...

Header: #include <QRemoteObjectHostBase>
qmake: QT += remoteobjects
Inherits: QRemoteObjectNode
Inherited By:

QRemoteObjectHost and QRemoteObjectRegistryHost

Public Types

enum AllowedSchemas { BuiltInSchemasOnly, AllowExternalRegistration }

Detailed Description

QRemoteObjectHostBase is a base class that cannot be instantiated directly. It provides the enableRemoting and disableRemoting functionality shared by all host nodes (Host and RegistryHost) as well as the logic required to expose Source objects on the Remote Objects network.

Member Type Documentation

enum QRemoteObjectHostBase::AllowedSchemas

This enum is used to specify whether a Node will accept a url with an unrecognized schema for the hostUrl. By default only urls with known schemas are accepted, but using AllowExternalRegistration will enable the Registry to pass your external (to QtRO) url to client Nodes.

ConstantValueDescription
QRemoteObjectHostBase::BuiltInSchemasOnly0Only allow the hostUrl to be set to a QtRO supported schema. This is the default value, and causes a Node error to be set if an unrecognized schema is provided.
QRemoteObjectHostBase::AllowExternalRegistration1The provided schema is registered as an External Schema

See also QRemoteObjectHost.