13#include "QXmppGlobal.h"
15#include <QXmlStreamWriter>
28 static QDateTime datetimeFromString(QStringView str);
30 static QDateTime datetimeFromString(
const QString &str);
32 static QString datetimeToString(
const QDateTime &dt);
33 static int timezoneOffsetFromString(
const QString &str);
34 static QString timezoneOffsetToString(
int secs);
36 static QString jidToDomain(
const QString &jid);
37 static QString jidToResource(
const QString &jid);
38 static QString jidToUser(
const QString &jid);
39 static QString jidToBareJid(
const QString &jid);
41 static quint32 generateCrc32(
const QByteArray &input);
42 static QByteArray generateHmacMd5(
const QByteArray &key,
const QByteArray &text);
43 static QByteArray generateHmacSha1(
const QByteArray &key,
const QByteArray &text);
44 static int generateRandomInteger(
int N);
45 static QByteArray generateRandomBytes(
int length);
46 static QString generateStanzaUuid();
47 static QString generateStanzaHash(
int length = 36);
The QXmppUtils class contains static utility functions.
Definition: QXmppUtils.h:25