QXmpp Version: 1.10.0
QXmppBookmarkManager.h
1// SPDX-FileCopyrightText: 2012 Jeremy Lainé <jeremy.laine@m4x.org>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPBOOKMARKMANAGER_H
6#define QXMPPBOOKMARKMANAGER_H
7
8#include "QXmppClientExtension.h"
9
10#include <QUrl>
11
12class QXmppBookmarkManagerPrivate;
14
18
19class QXMPP_EXPORT QXmppBookmarkManager : public QXmppClientExtension
20{
21 Q_OBJECT
22
23public:
25 ~QXmppBookmarkManager() override;
26
27 bool areBookmarksReceived() const;
28 QXmppBookmarkSet bookmarks() const;
29 bool setBookmarks(const QXmppBookmarkSet &bookmarks);
30
32 bool handleStanza(const QDomElement &stanza) override;
34
35Q_SIGNALS:
37 void bookmarksReceived(const QXmppBookmarkSet &bookmarks);
38
39protected:
41 void onRegistered(QXmppClient *client) override;
42 void onUnregistered(QXmppClient *client) override;
44
45private Q_SLOTS:
46 void slotConnected();
47 void slotDisconnected();
48
49private:
50 const std::unique_ptr<QXmppBookmarkManagerPrivate> d;
51};
52
53#endif
The QXmppBookmarkManager class allows you to store and retrieve bookmarks as defined by XEP-0048: Boo...
Definition: QXmppBookmarkManager.h:20
void bookmarksReceived(const QXmppBookmarkSet &bookmarks)
This signal is emitted when bookmarks are received.
The QXmppbookmarkSets class represents a set of bookmarks, as defined by XEP-0048: Bookmarks.
Definition: QXmppBookmarkSet.h:61
The QXmppClientExtension class is the base class for QXmppClient extensions.
Definition: QXmppClientExtension.h:32
virtual void onUnregistered(QXmppClient *client)
Definition: QXmppClientExtension.cpp:95
virtual void onRegistered(QXmppClient *client)
Definition: QXmppClientExtension.cpp:85
virtual bool handleStanza(const QDomElement &stanza)
You need to implement this method to process incoming XMPP stanzas.
Definition: client/compat/removed_api.cpp:26
Main class for starting and managing connections to XMPP servers.
Definition: QXmppClient.h:62