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_SIGNALS:
void bookmarksReceived(const QXmppBookmarkSet &bookmarks);
protected:
void setClient(QXmppClient *client) override;
private Q_SLOTS:
void slotConnected();
void slotDisconnected();
private:
const std::unique_ptr<QXmppBookmarkManagerPrivate> d;
};
#endif
QXmppBookmarkManager
The QXmppBookmarkManager class allows you to store and retrieve bookmarks as defined by XEP-0048: Boo...
Definition QXmppBookmarkManager.h:20
QXmppBookmarkManager::bookmarksReceived
void bookmarksReceived(const QXmppBookmarkSet &bookmarks)
This signal is emitted when bookmarks are received.
QXmppBookmarkSet
The QXmppbookmarkSets class represents a set of bookmarks, as defined by XEP-0048: Bookmarks.
Definition QXmppBookmarkSet.h:61
QXmppClientExtension
The QXmppClientExtension class is the base class for QXmppClient extensions.
Definition QXmppClientExtension.h:33
QXmppClientExtension::setClient
virtual void setClient(QXmppClient *client)
Definition QXmppClientExtension.cpp:88
QXmppClientExtension::handleStanza
virtual bool handleStanza(const QDomElement &stanza)
You need to implement this method to process incoming XMPP stanzas.
Definition QXmppClientExtension.cpp:51
QXmppClient
The QXmppClient class is the main class for using QXmpp.
Definition QXmppClient.h:84