Entry Class
class QRemoteServiceRegister::EntryThe Entry class represents a remote service entry to be published on QRemoteServiceRegister. More...
Public Functions
Entry(const Entry &other) | |
Entry() | |
Entry & | operator=(const Entry &other) |
~Entry() | |
InstanceType | instantiationType() const |
QString | interfaceName() const |
bool | isValid() const |
QString | serviceName() const |
void | setInstantiationType(InstanceType type) |
QString | version() const |
bool | operator!=(const Entry &other) const |
bool | operator==(const Entry &other) const |
Detailed Description
This class is created using QRemoteServiceRegister::createEntry to supply remote service details matching a valid QServiceInterfaceDescriptor.
A registration entry can then be published for discovery by remote clients.
Member Function Documentation
Entry::Entry(const Entry &other)
Constructs the registration entry that is a copy of other.
Entry::Entry()
Constructs a null registration entry.
Entry &Entry::operator=(const Entry &other)
Assigns other to this registration entry and returns a reference to it.
Entry::~Entry()
Destroys the registration entry.
InstanceType Entry::instantiationType() const
Returns the QRemoteServiceRegister::InstanceType of the registration entry.
See also setInstantiationType().
QString Entry::interfaceName() const
Returns the interface name of the registration entry.
This should correspond to the interface name from the service XML description.
See also serviceName() and version().
bool Entry::isValid() const
Checks if the registration entry is currently a valid remote service entry
Returns true if the serviceName(), interfaceName() and version() point to a valid QServiceInterfaceDescriptor, otherwise false.
QString Entry::serviceName() const
Returns the service name of the registration entry.
This should correspond to the service name from the service XML description.
See also interfaceName() and version().
void Entry::setInstantiationType(InstanceType type)
Sets the QRemoteServiceRegister::InstanceType of the registration entry.
If this is not explicitly called, the default instance type for the registration entry is QRemoteServiceRegister::PrivateInstance.
See also instantiationType().
QString Entry::version() const
Returns the version of the registration entry in format x.y.
This should correspond to the interface version from the service XML description.
See also interfaceName() and serviceName().
bool Entry::operator!=(const Entry &other) const
Returns true if this font is different from other; otherwise false.
bool Entry::operator==(const Entry &other) const
Returns true if this font is equal to other; otherwise false.