10#include "QXmppJingleIq.h"
11#include "QXmppMucIq.h"
12#include "QXmppStanza.h"
14class QXmppPresencePrivate;
72 void setPriority(
int priority);
77 QString statusText()
const;
78 void setStatusText(
const QString &statusText);
84 QString mucPassword()
const;
85 void setMucPassword(
const QString &password);
87 QList<int> mucStatusCodes()
const;
88 void setMucStatusCodes(
const QList<int> &codes);
90 bool isMucSupported()
const;
91 void setMucSupported(
bool supported);
94 QByteArray photoHash()
const;
95 void setPhotoHash(
const QByteArray &);
101 QString capabilityHash()
const;
102 void setCapabilityHash(
const QString &);
104 QString capabilityNode()
const;
105 void setCapabilityNode(
const QString &);
107 QByteArray capabilityVer()
const;
108 void setCapabilityVer(
const QByteArray &);
110 QStringList capabilityExt()
const;
113 bool isPreparingMujiSession()
const;
114 void setIsPreparingMujiSession(
bool isPreparingMujiSession);
116 QVector<QXmppJingleIq::Content> mujiContents()
const;
117 void setMujiContents(
const QVector<QXmppJingleIq::Content> &mujiContents);
120 QString oldJid()
const;
121 void setOldJid(
const QString &oldJid);
124 QDateTime lastUserInteraction()
const;
125 void setLastUserInteraction(
const QDateTime &);
128 QString mixUserJid()
const;
129 void setMixUserJid(
const QString &);
131 QString mixUserNick()
const;
132 void setMixUserNick(
const QString &);
135 void parse(
const QDomElement &element)
override;
136 void toXml(QXmlStreamWriter *writer)
const override;
141 void parseExtension(
const QDomElement &element, QXmppElementList &unknownElements);
144 QSharedDataPointer<QXmppPresencePrivate> d;
The QXmppMucItem class represents a chat room "item".
Definition: QXmppMucIq.h:18
virtual void parse(const QDomElement &)=0
virtual bool isXmppStanza() const
Definition: QXmppNonza.h:19
virtual void toXml(QXmlStreamWriter *writer) const =0
The QXmppPresence class represents an XMPP presence stanza.
Definition: QXmppPresence.h:22
QXmppPresence & operator=(const QXmppPresence &other)
Assignemnt operator.
Type
This enum is used to describe a presence type.
Definition: QXmppPresence.h:25
@ Unsubscribe
The sender is unsubscribing from another entity's presence.
Definition: QXmppPresence.h:31
@ Subscribe
The sender wishes to subscribe to the recipient's presence.
Definition: QXmppPresence.h:29
@ Subscribed
The sender has allowed the recipient to receive their presence.
Definition: QXmppPresence.h:30
@ Unavailable
Signals that the sender is no longer available for communication.
Definition: QXmppPresence.h:28
@ Unsubscribed
The subscription request has been denied or a previously-granted subscription has been cancelled.
Definition: QXmppPresence.h:32
@ Available
Signals that the sender is online and available for communication.
Definition: QXmppPresence.h:27
VCardUpdateType
Definition: QXmppPresence.h:48
@ VCardUpdateNoPhoto
User is not using any image.
Definition: QXmppPresence.h:50
@ VCardUpdateValidPhoto
User is advertising an image.
Definition: QXmppPresence.h:51
QXmppPresence(const QXmppPresence &other)
Copy-constructor.
QXmppPresence(QXmppPresence &&)
Move-constructor.
QXmppPresence & operator=(QXmppPresence &&)
Move-assignemnt operator.
~QXmppPresence() override
Destroys a QXmppPresence.
AvailableStatusType
This enum is used to describe an availability status.
Definition: QXmppPresence.h:37
@ Chat
The entity or resource is actively interested in chatting.
Definition: QXmppPresence.h:42
@ DND
The entity or resource is busy ("Do Not Disturb").
Definition: QXmppPresence.h:41
@ Away
The entity or resource is temporarily away.
Definition: QXmppPresence.h:39
@ XA
The entity or resource is away for an extended period.
Definition: QXmppPresence.h:40
The Error class represents a stanza error.
Definition: QXmppStanza.h:94
The QXmppStanza class is the base class for all XMPP stanzas.
Definition: QXmppStanza.h:88