24 #ifndef QXMPPSTARTTLSPACKET_H
25 #define QXMPPSTARTTLSPACKET_H
27 #include "QXmppStanza.h"
46 void setType(Type type);
49 void parse(
const QDomElement &element)
override;
50 void toXml(QXmlStreamWriter *writer)
const override;
53 static bool isStartTlsPacket(
const QDomElement &element);
54 static bool isStartTlsPacket(
const QDomElement &element, Type type);
62 #endif // QXMPPSTARTTLSPACKET_H
The QXmppStartTlsPacket represents packets used for initiating STARTTLS negotiation when connecting.
Definition: QXmppStartTlsPacket.h:32
@ StartTls
Used by the client to initiate STARTTLS.
Definition: QXmppStartTlsPacket.h:37
Type
The type of the STARTTLS packet.
Definition: QXmppStartTlsPacket.h:36
The QXmppStanza class is the base class for all XMPP stanzas.
Definition: QXmppStanza.h:96
@ Proceed
Used by the server to accept STARTTLS.
Definition: QXmppStartTlsPacket.h:38