1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#pragma once
//! All errors that could be caused by an operation regarding an `QOlmAccount`.
//! Errors are named exactly like the ones in libolm.
enum OlmAccountError {
BadAccountKey,
BadMessageKeyId,
InvalidBase64,
NotEnoughRandom,
OutputBufferTooSmall,
Unknown,
};
//! All errors that could be caused by an operation regarding an `QOlmSession`.
//! Errors are named exactly like the ones in libolm.
enum OlmSessionError {
BadAccountKey,
BadMessageFormat,
BadMessageKeyId,
BadMessageMac,
BadMessageVersion,
InvalidBase64,
NotEnoughRandom,
OutputBufferTooSmall,
Unknown,
};
//! All errors that could be caused by an operation
//! regarding QOlmOutboundGroupSession and QOlmInboundGroupSession.
//! Errors are named exactly like the ones in libolm.
enum OlmGroupSessionError {
BadAccountKey,
BadMessageFormat,
BadMessageMac,
BadMessageVersion,
BadSessionKey,
InvalidBase64,
NotEnoughRandom,
OutputBufferTooSmall,
UnknownMessageIndex,
Unknown,
};
|