Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

Entry Class

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

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web