464027401@qq.com
2021-09-27 b469805b2d0c9b23ca020cf9356ff137205f856c
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
47
48
49
50
51
52
53
54
55
/*
 * Copyright (c) 2010-2019 Belledonne Communications SARL.
 *
 * This file is part of Liblinphone.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
 
#ifndef _L_CHAT_ROOM_ENUMS_H_
#define _L_CHAT_ROOM_ENUMS_H_
 
// =============================================================================
 
#define L_ENUM_VALUES_CHAT_ROOM_STATE(F) \
    F(None /**< Initial state */) \
    F(Instantiated /**< Chat room is now instantiated on local */) \
    F(CreationPending /**< One creation request was sent to the server */) \
    F(Created /**< Chat room was created on the server */) \
    F(CreationFailed /**< Chat room creation failed */) \
    F(TerminationPending /**< Wait for chat room termination */) \
    F(Terminated /**< Chat room exists on server but not in local */) \
    F(TerminationFailed /**< The chat room termination failed */) \
    F(Deleted /**< Chat room was deleted on the server */)
 
//To be deprecated
#define L_ENUM_VALUES_CHAT_ROOM_CAPABILITIES(F) \
    F(None /**< No capabilities. */, 0) \
    F(Basic /**< No server. It&apos;s a direct communication */, 1 << 0) \
    F(RealTimeText /**< Supports RTT */, 1 << 1) \
    F(Conference /**< Use server (supports group chat) */, 1 << 2) \
    F(Proxy /**< Special proxy chat room flag */, 1 << 3) \
    F(Migratable /**< Chat room migratable from Basic to Conference */, 1 << 4) \
    F(OneToOne /**< A communication between two participants (can be Basic or Conference) */, 1 << 5) \
    F(Encrypted /**< Chat room is encrypted */, 1 << 6)
 
#define L_ENUM_VALUES_CHAT_ROOM_BACKEND(F) \
    F(Basic /**< Basic (client-to-client) chat room. */, 1 << 0) \
    F(FlexisipChat /**< Server-based chat room. */, 1 << 1)
 
#define L_ENUM_VALUES_CHAT_ROOM_ENCRYPTION_BACKEND(F) \
    F(None /**< No encryption. */, 0) \
    F(Lime /**< Lime x3dh encryption. */, 1 << 0)
 
#endif // ifndef _L_CHAT_ROOM_ENUMS_H_