blob: 9455fcf17f012b379192928353768573b162a763 [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',
28 ContactAdded = 'ContactAdded',
29 ContactRemoved = 'ContactRemoved',
30 ExportOnRingEnded = 'ExportOnRingEnded',
31 NameRegistrationEnded = 'NameRegistrationEnded',
32 RegisteredNameFound = 'RegisteredNameFound',
33 VolatileDetailsChanged = 'VolatileDetailsChanged',
34 KnownDevicesChanged = 'KnownDevicesChanged',
35 IncomingAccountMessage = 'IncomingAccountMessage',
36 AccountMessageStatusChanged = 'AccountMessageStatusChanged',
37
Misha Krieger-Raynauld68a9b562022-10-28 19:47:46 -040038 // libjami::CallSignal
Misha Krieger-Raynauldaddd6fe2022-10-22 12:46:04 -040039 StateChange = 'StateChange',
40 IncomingMessage = 'IncomingMessage',
41 IncomingCall = 'IncomingCall',
42 IncomingCallWithMedia = 'IncomingCallWithMedia',
43 MediaChangeRequested = 'MediaChangeRequested',
44
Misha Krieger-Raynauld68a9b562022-10-28 19:47:46 -040045 // libjami::ConversationSignal
Misha Krieger-Raynauldaddd6fe2022-10-22 12:46:04 -040046 ConversationLoaded = 'ConversationLoaded',
47 MessagesFound = 'MessagesFound',
48 MessageReceived = 'MessageReceived',
49 ConversationProfileUpdated = 'ConversationProfileUpdated',
50 ConversationRequestReceived = 'ConversationRequestReceived',
51 ConversationRequestDeclined = 'ConversationRequestDeclined',
52 ConversationReady = 'ConversationReady',
53 ConversationRemoved = 'ConversationRemoved',
54 ConversationMemberEvent = 'ConversationMemberEvent',
55 OnConversationError = 'OnConversationError',
56 OnConferenceInfosUpdated = 'OnConferenceInfosUpdated',
57}