diff options
Diffstat (limited to 'lib/olm/qolminboundsession.h')
-rw-r--r-- | lib/olm/qolminboundsession.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/olm/qolminboundsession.h b/lib/olm/qolminboundsession.h new file mode 100644 index 00000000..520f8b68 --- /dev/null +++ b/lib/olm/qolminboundsession.h @@ -0,0 +1,21 @@ +// SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org> +// +// SPDX-License-Identifier: LGPL-2.1-or-later + +#pragma once + +#include <QByteArray> +#include <variant> + +//! An in-bound group session is responsible for decrypting incoming +//! communication in a Megolm session. +struct QOlmInboundGroupSession +{ +public: + //! Creates a new instance of `OlmInboundGroupSession`. + static std::variant<OlmInboundGroupSession, OlmGroupSessionError> create(const QString &key); +private: + OlmInboundGroupSession *m_groupSession + QByteArray m_buffer; +}; + |