QXmpp Version: 1.5.6
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
QXmppStartTlsPacket Class Reference

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

#include <QXmppStartTlsPacket.h>

Inheritance diagram for QXmppStartTlsPacket:
Inheritance graph
[legend]
Collaboration diagram for QXmppStartTlsPacket:
Collaboration graph
[legend]

Public Types

enum  Type { StartTls , Proceed , Failure , Invalid }
 The type of the STARTTLS packet. More...
 

Public Member Functions

 QXmppStartTlsPacket (Type type=StartTls)
 
Type type () const
 Returns the type of the STARTTLS packet.
 
void setType (Type type)
 Sets the type of the STARTTLS packet.
 
- Public Member Functions inherited from QXmppNonza
virtual bool isXmppStanza () const
 
virtual void parse (const QDomElement &)=0
 
virtual void toXml (QXmlStreamWriter *writer) const =0
 

Static Public Member Functions

static bool isStartTlsPacket (const QDomElement &element)
 
static bool isStartTlsPacket (const QDomElement &element, Type type)
 

Detailed Description

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

Member Enumeration Documentation

◆ Type

The type of the STARTTLS packet.

Enumerator
StartTls 

Used by the client to initiate STARTTLS.

Proceed 

Used by the server to accept STARTTLS.

Failure 

Used by the server to reject STARTTLS.

Invalid 

Invalid type.

Constructor & Destructor Documentation

◆ QXmppStartTlsPacket()

QXmppStartTlsPacket::QXmppStartTlsPacket ( Type  type = StartTls)

Constructs a new QXmppStartTlsPacket

Parameters
typeThe type of the new QXmppStartTlsPacket.

Member Function Documentation

◆ isStartTlsPacket() [1/2]

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

Checks whether the given element is a STARTTLS packet according to RFC6120.

Parameters
elementThe element that should be checked for being a STARTTLS packet.
Returns
True, if the element is a STARTTLS packet.

◆ isStartTlsPacket() [2/2]

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

Checks whether the given element is a STARTTLS packet according to RFC6120 and has the correct type.

Parameters
elementThe element that should be checked for being a STARTTLS packet.
typeThe type the element needs to have.
Returns
True, if the element is a STARTTLS packet and has the correct type.

The documentation for this class was generated from the following files: