QXmpp
Version: 1.15.1
Toggle main menu visibility
Loading...
Searching...
No Matches
QXmppStartTlsPacket.h
1
// SPDX-FileCopyrightText: 2019 Linus Jahn <lnj@kaidan.im>
2
//
3
// SPDX-License-Identifier: LGPL-2.1-or-later
4
5
#ifndef QXMPPSTARTTLSPACKET_H
6
#define QXMPPSTARTTLSPACKET_H
7
8
#include "QXmppStanza.h"
9
18
class
QXMPP_EXPORT
QXmppStartTlsPacket
:
public
QXmppNonza
19
{
20
public
:
22
enum
Type
{
23
StartTls
,
24
Proceed
,
25
Failure
,
26
Invalid
,
27
};
28
29
[[deprecated]]
30
QXmppStartTlsPacket
(Type type = StartTls);
31
~QXmppStartTlsPacket
()
override
;
32
33
Type type()
const
;
34
void
setType(Type type);
35
37
void
parse
(
const
QDomElement &element)
override
;
38
void
toXml
(QXmlStreamWriter *writer)
const override
;
40
41
[[deprecated]]
42
static
bool
isStartTlsPacket(
const
QDomElement &element);
43
[[deprecated]]
44
static
bool
isStartTlsPacket(
const
QDomElement &element, Type type);
45
46
private
:
47
Type m_type;
48
};
49
50
Q_DECLARE_METATYPE(
QXmppStartTlsPacket::Type
);
51
52
#endif
// QXMPPSTARTTLSPACKET_H
QXmppNonza::parse
virtual void parse(const QDomElement &)=0
QXmppNonza::toXml
virtual void toXml(QXmlStreamWriter *writer) const =0
QXmppStartTlsPacket
The QXmppStartTlsPacket represents packets used for initiating STARTTLS negotiation when connecting.
Definition
QXmppStartTlsPacket.h:19
QXmppStartTlsPacket::QXmppStartTlsPacket
QXmppStartTlsPacket(Type type=StartTls)
Definition
base/compat/removed_api.cpp:892
QXmppStartTlsPacket::Type
Type
The type of the STARTTLS packet.
Definition
QXmppStartTlsPacket.h:22
QXmppStartTlsPacket::Proceed
@ Proceed
Used by the server to accept STARTTLS.
Definition
QXmppStartTlsPacket.h:24
QXmppStartTlsPacket::Invalid
@ Invalid
Invalid type.
Definition
QXmppStartTlsPacket.h:26
QXmppStartTlsPacket::Failure
@ Failure
Used by the server to reject STARTTLS.
Definition
QXmppStartTlsPacket.h:25
QXmppStartTlsPacket::StartTls
@ StartTls
Used by the client to initiate STARTTLS.
Definition
QXmppStartTlsPacket.h:23
src
base
compat
QXmppStartTlsPacket.h
Generated by
1.17.0