QXmpp  Version: 1.4.0
Public Types | Public Member Functions | List of all members
QXmppIq Class Reference

The QXmppIq class is the base class for all IQs. More...

#include <QXmppIq.h>

Inheritance diagram for QXmppIq:
QXmppStanza QXmppArchiveChatIq QXmppArchiveListIq QXmppArchivePrefIq QXmppArchiveRemoveIq QXmppArchiveRetrieveIq QXmppBindIq QXmppBitsOfBinaryIq QXmppByteStreamIq QXmppDiscoveryIq QXmppEntityTimeIq QXmppHttpUploadRequestIq QXmppHttpUploadSlotIq QXmppIbbCloseIq QXmppIbbDataIq QXmppIbbOpenIq QXmppJingleIq QXmppMamQueryIq QXmppMamResultIq QXmppMixIq QXmppMucAdminIq QXmppMucOwnerIq QXmppNonSASLAuthIq QXmppPingIq QXmppPubSubIq QXmppPushEnableIq QXmppRegisterIq QXmppRosterIq QXmppRpcInvokeIq QXmppRpcResponseIq QXmppSessionIq QXmppVCardIq QXmppVersionIq

Public Types

enum  Type { Error = 0, Get, Set, Result }
 This enum describes the type of IQ. More...
 

Public Member Functions

 QXmppIq (QXmppIq::Type type=QXmppIq::Get)
 
 QXmppIq (const QXmppIq &other)
 Constructs a copy of other.
 
QXmppIqoperator= (const QXmppIq &other)
 Assigns other to this IQ.
 
QXmppIq::Type type () const
 
void setType (QXmppIq::Type)
 
bool isXmppStanza () const override
 
- Public Member Functions inherited from QXmppStanza
 QXmppStanza (const QString &from=QString(), const QString &to=QString())
 
 QXmppStanza (const QXmppStanza &other)
 Constructs a copy of other.
 
virtual ~QXmppStanza ()
 Destroys a QXmppStanza.
 
QXmppStanzaoperator= (const QXmppStanza &other)
 Assigns other to this stanza.
 
QString to () const
 
void setTo (const QString &)
 
QString from () const
 Returns the stanza's sender JID.
 
void setFrom (const QString &)
 
QString id () const
 Returns the stanza's identifier.
 
void setId (const QString &)
 
QString lang () const
 Returns the stanza's language.
 
void setLang (const QString &)
 
QXmppStanza::Error error () const
 Returns the stanza's error.
 
void setError (const QXmppStanza::Error &error)
 
QXmppElementList extensions () const
 
void setExtensions (const QXmppElementList &elements)
 
QList< QXmppExtendedAddressextendedAddresses () const
 
void setExtendedAddresses (const QList< QXmppExtendedAddress > &extendedAddresses)
 

Detailed Description

The QXmppIq class is the base class for all IQs.

Member Enumeration Documentation

◆ Type

This enum describes the type of IQ.

Enumerator
Error 

Error response.

Get 

Get request.

Set 

Set request.

Result 

Result.

Constructor & Destructor Documentation

◆ QXmppIq()

QXmppIq::QXmppIq ( QXmppIq::Type  type = QXmppIq::Get)

Constructs a QXmppIq with the specified type.

Parameters
type

Member Function Documentation

◆ isXmppStanza()

bool QXmppIq::isXmppStanza ( ) const
overridevirtual

Indicates if the QXmppStanza is a stanza in the XMPP sense (i. e. a message, iq or presence)

Since
QXmpp 1.0

Reimplemented from QXmppStanza.

◆ setType()

void QXmppIq::setType ( QXmppIq::Type  type)

Sets the IQ's type.

Parameters
type

◆ type()

QXmppIq::Type QXmppIq::type ( ) const

Returns the IQ's type.


The documentation for this class was generated from the following files: