blob: 15bef488a1df1de9e24c3cc99bab981a64889129 [file] [log] [blame]
Misha Krieger-Raynauldaddd6fe2022-10-22 12:46:04 -04001/*
2 * Copyright (C) 2022 Savoir-faire Linux Inc.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Affero General Public License as
6 * published by the Free Software Foundation; either version 3 of the
7 * License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Affero General Public License for more details.
13 *
14 * You should have received a copy of the GNU Affero General Public
15 * License along with this program. If not, see
16 * <https://www.gnu.org/licenses/>.
17 */
Misha Krieger-Raynauld68a9b562022-10-28 19:47:46 -040018/**
19 * Signals emitted by the Jami daemon.
20 *
21 * The definition of signals can be found in `daemon/bin/nodejs/callback.h`.
22 */
Misha Krieger-Raynauldaddd6fe2022-10-22 12:46:04 -040023export enum JamiSignal {
Misha Krieger-Raynauld68a9b562022-10-28 19:47:46 -040024 // libjami::ConfigurationSignal
Misha Krieger-Raynauldaddd6fe2022-10-22 12:46:04 -040025 AccountsChanged = 'AccountsChanged',
26 AccountDetailsChanged = 'AccountDetailsChanged',
27 RegistrationStateChanged = 'RegistrationStateChanged',
idillon3e378fd2022-12-23 11:48:12 -050028 ComposingStatusChanged = 'ComposingStatusChanged',
Michelle Sepkap Simedd82cbf2022-11-17 23:31:49 -050029 IncomingTrustRequest = 'IncomingTrustRequest',
Misha Krieger-Raynauldaddd6fe2022-10-22 12:46:04 -040030 ContactAdded = 'ContactAdded',
31 ContactRemoved = 'ContactRemoved',
32 ExportOnRingEnded = 'ExportOnRingEnded',
33 NameRegistrationEnded = 'NameRegistrationEnded',
34 RegisteredNameFound = 'RegisteredNameFound',
35 VolatileDetailsChanged = 'VolatileDetailsChanged',
36 KnownDevicesChanged = 'KnownDevicesChanged',
37 IncomingAccountMessage = 'IncomingAccountMessage',
38 AccountMessageStatusChanged = 'AccountMessageStatusChanged',
39
Misha Krieger-Raynauld68a9b562022-10-28 19:47:46 -040040 // libjami::CallSignal
Misha Krieger-Raynauldaddd6fe2022-10-22 12:46:04 -040041 StateChange = 'StateChange',
42 IncomingMessage = 'IncomingMessage',
43 IncomingCall = 'IncomingCall',
44 IncomingCallWithMedia = 'IncomingCallWithMedia',
45 MediaChangeRequested = 'MediaChangeRequested',
46
Misha Krieger-Raynauld68a9b562022-10-28 19:47:46 -040047 // libjami::ConversationSignal
Misha Krieger-Raynauldaddd6fe2022-10-22 12:46:04 -040048 ConversationLoaded = 'ConversationLoaded',
49 MessagesFound = 'MessagesFound',
50 MessageReceived = 'MessageReceived',
51 ConversationProfileUpdated = 'ConversationProfileUpdated',
52 ConversationRequestReceived = 'ConversationRequestReceived',
53 ConversationRequestDeclined = 'ConversationRequestDeclined',
54 ConversationReady = 'ConversationReady',
55 ConversationRemoved = 'ConversationRemoved',
56 ConversationMemberEvent = 'ConversationMemberEvent',
57 OnConversationError = 'OnConversationError',
58 OnConferenceInfosUpdated = 'OnConferenceInfosUpdated',
59}