25 #ifndef QXMPPPRESENCE_H
26 #define QXMPPPRESENCE_H
28 #include "QXmppStanza.h"
29 #include "QXmppMucIq.h"
31 class QXmppPresencePrivate;
82 AvailableStatusType availableStatusType()
const;
83 void setAvailableStatusType(AvailableStatusType type);
86 void setPriority(
int priority);
91 QString statusText()
const;
92 void setStatusText(
const QString& statusText);
95 void parse(
const QDomElement &element);
96 void toXml(QXmlStreamWriter *writer)
const;
103 QString mucPassword()
const;
104 void setMucPassword(
const QString &password);
106 QList<int> mucStatusCodes()
const;
107 void setMucStatusCodes(
const QList<int> &codes);
109 bool isMucSupported()
const;
110 void setMucSupported(
bool supported);
113 QByteArray photoHash()
const;
114 void setPhotoHash(
const QByteArray&);
116 VCardUpdateType vCardUpdateType()
const;
117 void setVCardUpdateType(VCardUpdateType type);
120 QString capabilityHash()
const;
121 void setCapabilityHash(
const QString&);
123 QString capabilityNode()
const;
124 void setCapabilityNode(
const QString&);
126 QByteArray capabilityVer()
const;
127 void setCapabilityVer(
const QByteArray&);
129 QStringList capabilityExt()
const;
132 QSharedDataPointer<QXmppPresencePrivate> d;
135 #endif // QXMPPPRESENCE_H
AvailableStatusType
This enum is used to describe an availability status.
Definition: QXmppPresence.h:53
Type
This enum is used to describe a presence type.
Definition: QXmppPresence.h:40
The entity or resource is away for an extended period.
Definition: QXmppPresence.h:57
The entity or resource is busy ("Do Not Disturb").
Definition: QXmppPresence.h:58
User is advertising an image.
Definition: QXmppPresence.h:69
The QXmppStanza class is the base class for all XMPP stanzas.
Definition: QXmppStanza.h:90
The subscription request has been denied or a previously-granted subscription has been cancelled...
Definition: QXmppPresence.h:48
The sender is unsubscribing from another entity's presence.
Definition: QXmppPresence.h:47
The QXmppMucItem class represents a chat room "item".
Definition: QXmppMucIq.h:36
User is not using any image.
Definition: QXmppPresence.h:68
Signals that the sender is no longer available for communication.
Definition: QXmppPresence.h:44
The entity or resource is temporarily away.
Definition: QXmppPresence.h:56
The sender has allowed the recipient to receive their presence.
Definition: QXmppPresence.h:46
The sender wishes to subscribe to the recipient's presence.
Definition: QXmppPresence.h:45
VCardUpdateType
Definition: QXmppPresence.h:65
The QXmppPresence class represents an XMPP presence stanza.
Definition: QXmppPresence.h:36
Signals that the sender is online and available for communication.
Definition: QXmppPresence.h:43
The entity or resource is actively interested in chatting.
Definition: QXmppPresence.h:59
QXmppStanza & operator=(const QXmppStanza &other)
Assigns other to this stanza.
Definition: QXmppStanza.cpp:460