QXmpp
Version: 1.15.1
Toggle main menu visibility
Loading...
Searching...
No Matches
QXmppDialback.h
1
// SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
2
//
3
// SPDX-License-Identifier: LGPL-2.1-or-later
4
5
#ifndef QXMPPDIALBACK_H
6
#define QXMPPDIALBACK_H
7
8
#include "QXmppStanza.h"
9
14
15
class
QXMPP_EXPORT
QXmppDialback
:
public
QXmppStanza
16
{
17
public
:
19
enum
Command
{
20
Result
,
22
Verify
24
};
25
26
QXmppDialback
();
27
28
Command command()
const
;
29
void
setCommand(Command command);
30
31
QString key()
const
;
32
void
setKey(
const
QString &key);
33
34
QString type()
const
;
35
void
setType(
const
QString &type);
36
38
void
parse
(
const
QDomElement &element)
override
;
39
void
toXml
(QXmlStreamWriter *writer)
const override
;
40
41
static
bool
isDialback(
const
QDomElement &element);
43
44
private
:
45
Command m_command;
46
QString m_key;
47
QString m_type;
48
};
49
50
#endif
QXmppDialback
The QXmppDialback class represents a stanza used for the Server Dialback protocol as specified by XEP...
Definition
QXmppDialback.h:16
QXmppDialback::Command
Command
This enum is used to describe a dialback command.
Definition
QXmppDialback.h:19
QXmppDialback::Result
@ Result
Definition
QXmppDialback.h:20
QXmppDialback::Verify
@ Verify
Definition
QXmppDialback.h:22
QXmppDialback::QXmppDialback
QXmppDialback()
Constructs a QXmppDialback.
Definition
QXmppDialback.cpp:18
QXmppNonza::parse
virtual void parse(const QDomElement &)=0
QXmppNonza::toXml
virtual void toXml(QXmlStreamWriter *writer) const =0
QXmppStanza::QXmppStanza
QXmppStanza(const QString &from=QString(), const QString &to=QString())
Definition
QXmppStanza.cpp:693
src
server
QXmppDialback.h
Generated by
1.17.0