QXmpp Version: 1.5.6
Loading...
Searching...
No Matches
QXmppVCardManager.h
1// SPDX-FileCopyrightText: 2009 Manjeet Dahiya <manjeetdahiya@gmail.com>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPVCARDMANAGER_H
6#define QXMPPVCARDMANAGER_H
7
8#include "QXmppClientExtension.h"
9
10class QXmppVCardIq;
11class QXmppVCardManagerPrivate;
12
37class QXMPP_EXPORT QXmppVCardManager : public QXmppClientExtension
38{
39 Q_OBJECT
40
41public:
43 ~QXmppVCardManager() override;
44
45 QString requestVCard(const QString &bareJid = QString());
46
47 const QXmppVCardIq &clientVCard() const;
48 void setClientVCard(const QXmppVCardIq &);
49
50 QString requestClientVCard();
51 bool isClientVCardReceived() const;
52
54 QStringList discoveryFeatures() const override;
55 bool handleStanza(const QDomElement &element) override;
57
58Q_SIGNALS:
62
66
67private:
68 const std::unique_ptr<QXmppVCardManagerPrivate> d;
69};
70
71#endif // QXMPPVCARDMANAGER_H
The QXmppClientExtension class is the base class for QXmppClient extensions.
Definition QXmppClientExtension.h:33
virtual QStringList discoveryFeatures() const
Definition QXmppClientExtension.cpp:22
virtual bool handleStanza(const QDomElement &stanza)
You need to implement this method to process incoming XMPP stanzas.
Definition QXmppClientExtension.cpp:51
Represents the XMPP vCard.
Definition QXmppVCardIq.h:210
The QXmppVCardManager class gets/sets XMPP vCards. It is an implementation of XEP-0054: vcard-temp.
Definition QXmppVCardManager.h:38
void vCardReceived(const QXmppVCardIq &)
void clientVCardReceived()