5#ifndef QXMPPBOOKMARKSET_H
6#define QXMPPBOOKMARKSET_H
8#include "QXmppConstants_p.h"
9#include "QXmppStanza.h"
36 static constexpr std::tuple XmlTag = { u
"conference", QXmpp::Private::ns_bookmarks };
37 static std::optional<QXmppBookmarkConference> fromDom(
const QDomElement &el);
38 void toXml(QXmlStreamWriter *writer)
const;
62 static constexpr std::tuple XmlTag = { u
"url", QXmpp::Private::ns_bookmarks };
63 static std::optional<QXmppBookmarkUrl> fromDom(
const QDomElement &el);
64 void toXml(QXmlStreamWriter *writer)
const;
82 QList<QXmppBookmarkUrl>
urls()
const;
86 static bool isBookmarkSet(
const QDomElement &element);
87 static constexpr std::tuple XmlTag = { u
"storage", QXmpp::Private::ns_bookmarks };
88 void parse(
const QDomElement &element);
89 void toXml(QXmlStreamWriter *writer)
const;
93 QList<QXmppBookmarkConference> m_conferences;
94 QList<QXmppBookmarkUrl> m_urls;
QXmppBookmarkConference()
Constructs a new conference room bookmark.
Definition QXmppBookmarkSet.cpp:18
QString nickName() const
Returns the preferred nickname for the conference room.
Definition QXmppBookmarkSet.cpp:62
QString jid() const
Returns the JID of the conference room.
Definition QXmppBookmarkSet.cpp:38
QString name() const
Returns the friendly name for the bookmark.
Definition QXmppBookmarkSet.cpp:50
void setJid(const QString &jid)
Sets the JID of the conference room.
Definition QXmppBookmarkSet.cpp:44
void setNickName(const QString &nickName)
Sets the preferred nickname for the conference room.
Definition QXmppBookmarkSet.cpp:68
void setAutoJoin(bool autoJoin)
Definition QXmppBookmarkSet.cpp:32
void setName(const QString &name)
Sets the friendly name for the bookmark.
Definition QXmppBookmarkSet.cpp:56
bool autoJoin() const
Definition QXmppBookmarkSet.cpp:25
The QXmppbookmarkSets class represents a set of bookmarks, as defined by XEP-0048: Bookmarks.
Definition QXmppBookmarkSet.h:77
QList< QXmppBookmarkConference > conferences() const
Returns the conference rooms bookmarks in this bookmark set.
Definition QXmppBookmarkSet.cpp:140
void setUrls(const QList< QXmppBookmarkUrl > &urls)
Sets the web page bookmarks in this bookmark set.
Definition QXmppBookmarkSet.cpp:158
void setConferences(const QList< QXmppBookmarkConference > &conferences)
Sets the conference rooms bookmarks in this bookmark set.
Definition QXmppBookmarkSet.cpp:146
QList< QXmppBookmarkUrl > urls() const
Returns the web page bookmarks in this bookmark set.
Definition QXmppBookmarkSet.cpp:152
The QXmppBookmarkUrl class represents a bookmark for a web page, as defined by XEP-0048: Bookmarks.
Definition QXmppBookmarkSet.h:53
void setUrl(const QUrl &url)
Sets the URL for the web page.
Definition QXmppBookmarkSet.cpp:115
QString name() const
Returns the friendly name for the bookmark.
Definition QXmppBookmarkSet.cpp:97
QUrl url() const
Returns the URL for the web page.
Definition QXmppBookmarkSet.cpp:109
void setName(const QString &name)
Sets the friendly name for the bookmark.
Definition QXmppBookmarkSet.cpp:103