QXmppBookmarkManager Class

The QXmppBookmarkManager class allows you to store and retrieve bookmarks as defined by XEP-0048: Bookmarks. More...

Header: #include <QXmppBookmarkManager.h>
Inherits: QXmppClientExtension

Public Functions

QXmppBookmarkManager()
bool areBookmarksReceived() const
QXmppBookmarkSet bookmarks() const
bool setBookmarks(const QXmppBookmarkSet &bookmarks)

Signals

void bookmarksReceived(const QXmppBookmarkSet &bookmarks)

Detailed Description

Member Function Documentation

QXmppBookmarkManager::QXmppBookmarkManager()

Constructs a new bookmark manager.

bool QXmppBookmarkManager::areBookmarksReceived() const

Returns true if the bookmarks have been received from the server, false otherwise.

QXmppBookmarkSet QXmppBookmarkManager::bookmarks() const

Returns the bookmarks stored on the server.

Before calling this method, check that the bookmarks have indeed been received by calling areBookmarksReceived().

See also setBookmarks().

[signal] void QXmppBookmarkManager::bookmarksReceived(const QXmppBookmarkSet &bookmarks)

This signal is emitted when bookmarks are received.

bool QXmppBookmarkManager::setBookmarks(const QXmppBookmarkSet &bookmarks)

Stores the bookmarks on the server and returns true on success.

See also bookmarks().