Loading...
Searching...
No Matches
QXmppBookmarkManager.h
// SPDX-FileCopyrightText: 2012 Jeremy Lainé <jeremy.laine@m4x.org>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPBOOKMARKMANAGER_H
#define QXMPPBOOKMARKMANAGER_H
#include "QXmppClientExtension.h"
#include <QUrl>
class QXmppBookmarkManagerPrivate;
class QXmppBookmarkSet;
class QXMPP_EXPORT QXmppBookmarkManager : public QXmppClientExtension
{
Q_OBJECT
public:
QXmppBookmarkManager();
~QXmppBookmarkManager() override;
bool areBookmarksReceived() const;
QXmppBookmarkSet bookmarks() const;
bool setBookmarks(const QXmppBookmarkSet &bookmarks);
bool handleStanza(const QDomElement &stanza) override;
Q_SIGNAL void bookmarksReceived(const QXmppBookmarkSet &bookmarks);
protected:
void onRegistered(QXmppClient *client) override;
void onUnregistered(QXmppClient *client) override;
private:
Q_SLOT void slotConnected();
Q_SLOT void slotDisconnected();
const std::unique_ptr<QXmppBookmarkManagerPrivate> d;
};
#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