MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

Entry Class Reference

(QRemoteServiceRegister::Entry)

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

This class was introduced in Qt Mobility 1.1.

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.

This function was introduced in Qt Mobility 1.1.

Entry::Entry ( const Entry & other )

Constructs the registration entry that is a copy of other.

This function was introduced in Qt Mobility 1.1.

Entry::~Entry ()

Destroys the registration entry.

This function was introduced in Qt Mobility 1.1.

QRemoteServiceRegister::InstanceType Entry::instantiationType () const

Returns the QRemoteServiceRegister::InstanceType of the registration entry.

This function was introduced in Qt Mobility 1.1.

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.

This function was introduced in Qt Mobility 1.1.

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.

This function was introduced in Qt Mobility 1.1.

QString Entry::serviceName () const

Returns the service name of the registration entry.

This should correspond to the service name from the service XML description.

This function was introduced in Qt Mobility 1.1.

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.

This function was introduced in Qt Mobility 1.1.

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.

This function was introduced in Qt Mobility 1.1.

See also interfaceName() and serviceName().

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

Returns true if this font is different from other; otherwise false.

This function was introduced in Qt Mobility 1.1.

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

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

This function was introduced in Qt Mobility 1.1.

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

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

This function was introduced in Qt Mobility 1.1.