aboutsummaryrefslogtreecommitdiff
path: root/src/client/QXmppTlsManager.h
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2019-12-14 22:47:28 +0100
committerLNJ <lnj@kaidan.im>2020-01-20 17:14:49 +0100
commit28411b5995553eb3a50c826c55517b4c610959c2 (patch)
treec22ea3b5bd5c1de2831cb3141940038180ce878e /src/client/QXmppTlsManager.h
parent55966be2e3e80bd5ab2cc86da2492963dd8127ee (diff)
downloadqxmpp-28411b5995553eb3a50c826c55517b4c610959c2.tar.gz
Move TLS negotiation into new QXmppTlsManager
Diffstat (limited to 'src/client/QXmppTlsManager.h')
-rw-r--r--src/client/QXmppTlsManager.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/client/QXmppTlsManager.h b/src/client/QXmppTlsManager.h
new file mode 100644
index 00000000..ac811cfd
--- /dev/null
+++ b/src/client/QXmppTlsManager.h
@@ -0,0 +1,45 @@
+/*
+ * Copyright (C) 2008-2019 The QXmpp developers
+ *
+ * Authors:
+ * Linus Jahn
+ *
+ * Source:
+ * https://github.com/qxmpp-project/qxmpp
+ *
+ * This file is a part of QXmpp library.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ */
+
+#ifndef QXMPPTLSMANAGER_H
+#define QXMPPTLSMANAGER_H
+
+#include "QXmppClientExtension.h"
+
+/// \brief The QXmppTlsManager enables the QXmppClient to use STARTTLS. It is
+/// added to the client by default and can be configured using the
+/// \c QXmppConfiguration class.
+///
+/// \ingroup Managers
+
+class QXMPP_EXPORT QXmppTlsManager : public QXmppClientExtension
+{
+ Q_OBJECT
+
+public:
+ QXmppTlsManager();
+
+ bool handleStanza(const QDomElement &stanza) override;
+};
+
+#endif // QXMPPTLSMANAGER_H