QXmppStartTlsPacket Class

The QXmppStartTlsPacket represents packets used for initiating STARTTLS negotiation when connecting. More...

Header: #include <QXmppStartTlsPacket.h>
Inherits: QXmppNonza
Status: Deprecated

This class is deprecated. We strongly advise against using it in new code.

Public Types

enum Type { StartTls, Proceed, Failure, Invalid }

Public Functions

QXmppStartTlsPacket(QXmppStartTlsPacket::Type type = StartTls)
void setType(QXmppStartTlsPacket::Type type)
QXmppStartTlsPacket::Type type() const

Static Public Members

bool isStartTlsPacket(const QDomElement &element)
bool isStartTlsPacket(const QDomElement &element, QXmppStartTlsPacket::Type type)

Detailed Description

STARTTLS packets will be removed from the public API.

Member Type Documentation

enum QXmppStartTlsPacket::Type

The type of the STARTTLS packet.

ConstantValueDescription
QXmppStartTlsPacket::StartTls0Used by the client to initiate STARTTLS.
QXmppStartTlsPacket::Proceed1Used by the server to accept STARTTLS.
QXmppStartTlsPacket::Failure2Used by the server to reject STARTTLS.
QXmppStartTlsPacket::Invalid3Invalid type.

Member Function Documentation

QXmppStartTlsPacket::QXmppStartTlsPacket(QXmppStartTlsPacket::Type type = StartTls)

Constructs a new QXmppStartTlsPacket of the given type.

[static] bool QXmppStartTlsPacket::isStartTlsPacket(const QDomElement &element)

Returns true if the given element is a STARTTLS packet according to <a href="https://xmpp.org/rfcs/rfc6120.html#tls-process-initiate">RFC6120</a>.

Returns true if the element is a STARTTLS packet.

[static] bool QXmppStartTlsPacket::isStartTlsPacket(const QDomElement &element, QXmppStartTlsPacket::Type type)

Returns true if the given element is a STARTTLS packet according to <a href="https://xmpp.org/rfcs/rfc6120.html#tls-process-initiate">RFC6120</a> and has the given type.

Returns true if the element is a STARTTLS packet of the correct type.

void QXmppStartTlsPacket::setType(QXmppStartTlsPacket::Type type)

Sets the type of the STARTTLS packet

See also type().

QXmppStartTlsPacket::Type QXmppStartTlsPacket::type() const

Returns the type of the STARTTLS packet

See also setType().