Qt Mobility Reference Documentation

Entry Class Reference

(QRemoteServiceRegister::Entry)

The Entry class represents a remote service entry to be published on QRemoteServiceRegister. More...

Public Functions

Entry ()
Entry ( const Entry & other )
~Entry ()
QRemoteServiceRegister::InstanceType instantiationType () const
QString interfaceName () const
bool isValid () const
QString serviceName () const
void setInstantiationType ( QRemoteServiceRegister::InstanceType type )
QString version () const
bool operator!= ( const Entry & other ) const
Entry & operator= ( const Entry & other )
bool operator== ( const Entry & other ) const

Detailed Description

The Entry class represents a remote service entry to be published on QRemoteServiceRegister.

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 ()

Constructs a null registration entry.

Entry::Entry ( const Entry & other )

Constructs the registration entry that is a copy of other.

Entry::~Entry ()

Destroys the registration entry.

QRemoteServiceRegister::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 ( QRemoteServiceRegister::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.

Entry & Entry::operator= ( const Entry & other )

Assigns other to this registration entry and returns a reference to it.

bool Entry::operator== ( const Entry & other ) const

Returns true if this font is equal to other; otherwise false.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.