QXmpp  Version:0.9.3
Signals | Public Member Functions
QXmppDiscoveryManager Class Reference

The QXmppDiscoveryManager class makes it possible to discover information about other entities as defined by XEP-0030: Service Discovery. More...

#include <QXmppDiscoveryManager.h>

Inheritance diagram for QXmppDiscoveryManager:
QXmppClientExtension QXmppLoggable

List of all members.

Signals

void infoReceived (const QXmppDiscoveryIq &)
void itemsReceived (const QXmppDiscoveryIq &)
 This signal is emitted when an items response is received.

Public Member Functions

QXmppDiscoveryIq capabilities ()
 Returns the client's full capabilities.
QString requestInfo (const QString &jid, const QString &node=QString())
QString requestItems (const QString &jid, const QString &node=QString())
QString clientCapabilitiesNode () const
void setClientCapabilitiesNode (const QString &)
QString clientCategory () const
void setClientCategory (const QString &)
void setClientName (const QString &)
QString clientName () const
QString clientType () const
void setClientType (const QString &)
QXmppDataForm clientInfoForm () const
void setClientInfoForm (const QXmppDataForm &form)

Detailed Description

The QXmppDiscoveryManager class makes it possible to discover information about other entities as defined by XEP-0030: Service Discovery.


Member Function Documentation

Returns the capabilities node of the local XMPP client.

By default this is "https://github.com/qxmpp-project/qxmpp".

Returns the category of the local XMPP client.

By default this is "client".

Returns the client's extended information form, as defined by XEP-0128 Service Discovery Extensions.

Returns the name of the local XMPP client.

By default this is "Based on QXmpp x.y.z".

Returns the type of the local XMPP client.

By default this is "pc".

void QXmppDiscoveryManager::infoReceived ( const QXmppDiscoveryIq &  ) [signal]

This signal is emitted when an information response is received.

QString QXmppDiscoveryManager::requestInfo ( const QString &  jid,
const QString &  node = QString() 
)

Requests information from the specified XMPP entity.

Parameters:
jidThe target entity's JID.
nodeThe target node (optional).
QString QXmppDiscoveryManager::requestItems ( const QString &  jid,
const QString &  node = QString() 
)

Requests items from the specified XMPP entity.

Parameters:
jidThe target entity's JID.
nodeThe target node (optional).
void QXmppDiscoveryManager::setClientCapabilitiesNode ( const QString &  node)

Sets the capabilities node of the local XMPP client.

Parameters:
node
void QXmppDiscoveryManager::setClientCategory ( const QString &  category)

Sets the category of the local XMPP client.

You can find a list of valid categories at: http://xmpp.org/registrar/disco-categories.html

Parameters:
category

Sets the client's extended information form, as defined by XEP-0128 Service Discovery Extensions.

void QXmppDiscoveryManager::setClientName ( const QString &  name)

Sets the name of the local XMPP client.

Parameters:
name
void QXmppDiscoveryManager::setClientType ( const QString &  type)

Sets the type of the local XMPP client.

You can find a list of valid types at: http://xmpp.org/registrar/disco-categories.html

Parameters:
type

The documentation for this class was generated from the following files:
 All Classes Functions Enumerations Enumerator Properties