QXmpp: QXmppBookmarkManager.h Source File

QXmpp Version: 1.14.3

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;
13class QXmppBookmarkSet;
14
18
19 class QXMPP_EXPORT QXmppBookmarkManager : public QXmppClientExtension
20{
21 Q_OBJECT
22
23public:
24 QXmppBookmarkManager();
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
36 Q_SIGNAL void bookmarksReceived(const QXmppBookmarkSet &bookmarks);
37
38protected:
40 void onRegistered(QXmppClient *client) override;
41 void onUnregistered(QXmppClient *client) override;
43
44private:
45 Q_SLOT void slotConnected();
46 Q_SLOT void slotDisconnected();
47
48 const std::unique_ptr<QXmppBookmarkManagerPrivate> d;
49};
50
51#endif
QXmppBookmarkManager::bookmarks
QXmppBookmarkSet bookmarks() const
Definition QXmppBookmarkManager.cpp:98
QXmppBookmarkManager::areBookmarksReceived
bool areBookmarksReceived() const
Definition QXmppBookmarkManager.cpp:87
QXmppBookmarkManager::setBookmarks
bool setBookmarks(const QXmppBookmarkSet &bookmarks)
Stores the bookmarks on the server.
Definition QXmppBookmarkManager.cpp:104
QXmppBookmarkManager::bookmarksReceived
Q_SIGNAL void bookmarksReceived(const QXmppBookmarkSet &bookmarks)
This signal is emitted when bookmarks are received.
QXmppBookmarkManager::QXmppBookmarkManager
QXmppBookmarkManager()
Constructs a new bookmark manager.
Definition QXmppBookmarkManager.cpp:75
QXmppBookmarkSet
The QXmppbookmarkSets class represents a set of bookmarks, as defined by XEP-0048: Bookmarks.
Definition QXmppBookmarkSet.h:77
QXmppClientExtension::onUnregistered
virtual void onUnregistered(QXmppClient *client)
Definition QXmppClientExtension.cpp:95
QXmppClientExtension::onRegistered
virtual void onRegistered(QXmppClient *client)
Definition QXmppClientExtension.cpp:85
QXmppClientExtension::client
QXmppClient * client() const
Definition QXmppClientExtension.cpp:57
QXmppClientExtension::QXmppClientExtension
QXmppClientExtension()
Definition QXmppClientExtension.cpp:12
QXmppClientExtension::handleStanza
virtual bool handleStanza(const QDomElement &stanza)
You need to implement this method to process incoming XMPP stanzas.
Definition client/compat/removed_api.cpp:44