forked from blue/squawk
feat(OMEMO): qxmppfactories, refactoring
This commit is contained in:
parent
b22a4c8ca3
commit
6721b62629
8 changed files with 294 additions and 77 deletions
25
shared/qxmppfactories.h
Normal file
25
shared/qxmppfactories.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* Created by victoria on 2021-05-12.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QXmppElement.h>
|
||||
|
||||
namespace QXmpp::Factories {
|
||||
|
||||
bool elementMatches(const QXmppElement &element, const QString &tagName,
|
||||
const QString &xmlns = QStringLiteral(""));
|
||||
|
||||
QXmppElement createElement(const QString &tagName,
|
||||
const QString &xmlns = QStringLiteral(""));
|
||||
|
||||
QXmppElement createValue(const QString &value);
|
||||
|
||||
QXmppElement createField(const QString &key, const QString &value,
|
||||
bool hidden = false);
|
||||
|
||||
QXmppElement
|
||||
createOpenPublishOptions(const QString &maxItems = QStringLiteral(""));
|
||||
|
||||
} // namespace QXmpp::Factories
|
Loading…
Add table
Add a link
Reference in a new issue