5#ifndef QXMPPEXTERNALSERVICE_H
6#define QXMPPEXTERNALSERVICE_H
8#include "QXmppGlobal.h"
12#include <QSharedDataPointer>
16class QXmlStreamWriter;
17class QXmppExternalServicePrivate;
48 void setHost(
const QString &);
51 void setType(
const QString &);
53 std::optional<Action> action()
const;
54 void setAction(std::optional<Action>);
56 std::optional<QDateTime> expires()
const;
57 void setExpires(std::optional<QDateTime>);
59 std::optional<QString> name()
const;
60 void setName(std::optional<QString>);
62 std::optional<QString> password()
const;
63 void setPassword(std::optional<QString>);
65 std::optional<int> port()
const;
66 void setPort(std::optional<int>);
68 std::optional<bool> restricted()
const;
69 void setRestricted(std::optional<bool>);
71 std::optional<Transport> transport()
const;
72 void setTransport(std::optional<Transport>);
74 std::optional<QString> username()
const;
75 void setUsername(std::optional<QString>);
77 static bool isExternalService(
const QDomElement &);
79 void parse(
const QDomElement &);
80 void toXml(QXmlStreamWriter *)
const;
83 QSharedDataPointer<QXmppExternalServicePrivate> d;
Definition: QXmppExternalService.h:20
Transport
Definition: QXmppExternalService.h:38
Action
Definition: QXmppExternalService.h:27