libQuotient
A Qt library for building matrix clients
qolmmessage.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2021 Alexey Andreyev <aa13q@ya.ru>
2 //
3 // SPDX-License-Identifier: LGPL-2.1-or-later
4 
5 #pragma once
6 
7 #include <Quotient/quotient_export.h>
8 
9 #include <QtCore/QByteArray>
10 #include <qobjectdefs.h>
11 #include <olm/olm.h>
12 
13 namespace Quotient {
14 
15 /*! \brief A wrapper around an olm encrypted message
16  *
17  * This class encapsulates a Matrix olm encrypted message,
18  * passed in either of 2 forms: a general message or a pre-key message.
19  *
20  * The class provides functions to get a type and the ciphertext.
21  */
23  Q_GADGET
24 public:
25  enum Type {
28  };
29  Q_ENUM(Type)
30 
32 
34 
37 
38 private:
40 };
41 
42 } //namespace Quotient