QXmpp Version: 1.5.6
Loading...
Searching...
No Matches
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 setClient(QXmppClient *client) override;
43
44private Q_SLOTS:
45 void slotConnected();
46 void slotDisconnected();
47
48private:
49 const std::unique_ptr<QXmppBookmarkManagerPrivate> d;
50};
51
52#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:33
virtual void setClient(QXmppClient *client)
Definition QXmppClientExtension.cpp:88
virtual bool handleStanza(const QDomElement &stanza)
You need to implement this method to process incoming XMPP stanzas.
Definition QXmppClientExtension.cpp:51
The QXmppClient class is the main class for using QXmpp.
Definition QXmppClient.h:84