~aleteoryx/muditaos

ref: 39e6f1b18a93471342a4f8cce3810dee0e7948be muditaos/source/MessageType.hpp -rw-r--r-- 10.1 KiB
39e6f1b1 — RobertPiet [EGD-5902] Phone Modes Windows 4 years ago
                                                                                
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#ifndef SOURCE_MESSAGETYPE_HPP_
#define SOURCE_MESSAGETYPE_HPP_

enum class MessageType
{

    MessageTypeUninitialized = 0,
    // eink messages
    EinkMessage,
    // gui messages
    GUIMessage,
    GUIFocusInfo, ///< information about application that gained focus
    // DB messages
    DBServiceEvents,

    DBServiceNotification, ///< Common service-db notification message.
    DBServiceBackup,

    DBSettingsGet,    ///< get current settings from database
    DBSettingsUpdate, ///< update settings

    DBSMSAdd,                         ///< Add new sms record
    DBSMSRemove,                      ///< Remove specified SMS record
    DBSMSUpdate,                      ///< Update specified SMS record
    DBSMSGetSMSLimitOffset,           ///< Get SMS records by limit,offset
    DBSMSGetSMSLimitOffsetByThreadID, ///< Get SMS records by limit,offset with specified ThreadID field
    DBSMSGetLastRecord,               ///< Get last edited record
    DBSMSGetCount,                    ///< Get all sms count

    DBThreadGet,            ///< Get thread by ID
    DBThreadGetForContact,  ///< Get thread between 2 contacts
    DBThreadRemove,         ///< Remove thread by ID
    DBThreadGetLimitOffset, ///< Get Thread record by limit,offset
    DBThreadGetCount,       ///< get Thread count
    DBThreadUpdate,         ///< Thread update

    DBSMSTemplateAdd,            ///< Add new sms template record
    DBSMSTemplateRemove,         ///< Remove selected sms template record
    DBSMSTemplateUpdate,         ///< Update selected sms template record
    DBSMSTemplateGetLimitOffset, ///< Get sms templates records by limit,offset
    DBSMSTemplateGetCount,       ///< Get sms templates reocrds count

    DBContactVerify, ///< checks database for a contact that has the same name (primary+" "+alternative) or phone number
                     ///< 1 or phone number 2 or speed dial key
    DBContactGetByName, ///< used to ask for a contact with specified primary and alternative name.
    DBContactSearch,
    DBContactGetByID,        ///< used to ask for a contact with specified id
    DBContactGetBySpeedDial, ///< used to ask for a contact with specified speed dial key assigned
    DBContactGetByNumber,    ///< used to ask for a contact with specified primary or secondary phone number
    DBContactMatchByNumber,  ///< used to best match with a single contact using a phone number (primary or secondary)
    DBContactAdd,            ///< Add contact record
    DBContactRemove,         ///< Remove contact remove
    DBContactUpdate,         ///< Update contact remove
    DBContactGetLimitOffset, ///< Get contact records by limit,offset
    DBContactGetCount,       ///< Get contacts count
    DBContactBlock,
    DBAlarmAdd,            ///< Add alarm record
    DBAlarmRemove,         ///< Remove alarm remove
    DBAlarmUpdate,         ///< Update alarm remove
    DBAlarmGetLimitOffset, ///< Get alarm records by limit,offset
    DBAlarmGetCount,       ///< Get alarm count
    DBAlarmGetNext,        ///< Get alarm, closest or equal to current timestamp.

    DBCountryCode,
    DBQuery,

    // Cellular messages
    CellularStateRequest,       ///< cellular change state request, only for use by cellular
    CellularNotification,       ///< Async notification message
    CellularAnswerIncomingCall, ///< Answer incoming call
    CellularHangupCall,         ///< Hang up call
    CellularRinging,
    CellularIncomingCall,
    CellularCallerId,
    CellularCallRequest,      ///< Call request
    CellularPowerStateChange, ///< Change power state of the module

    CellularListCurrentCalls,
    CellularSimProcedure,        // Broadcast on sim state changed
    CellularSimResponse,         // Send to PIN window (show, error state, hide)
    CellularSimVerifyPinRequest, // Send from PIN window with PIN, PUK, ... number
    CellularSetVoLTE,
    CellularSetFlightMode,

    CellularPacketData, ///< for all PacketData messages

    CellularGetOwnNumber,
    CellularGetIMSI,
    CellularGetNetworkInfo,
    CellularStartOperatorsScan,
    CellularOperatorsScanResult,
    CellularNetworkInfoResult,
    CellularSelectAntenna,
    CellularSetScanMode,
    CellularGetScanMode,
    CellularGetScanModeResult,
    CellularGetFirmwareVersion,       ///< Asks for current firmware version
    CellularGetFirmwareVersionResult, ///< Returns current firmware version
    CellularGetChannel,               ///< Asks for channel, requres chnnel name
    CellularGetChannelResponse,       ///< Returns channel (and it's name)
    CellularGetCSQ,
    CellularGetCREG,
    CellularGetNWINFO,
    CellularGetAntenna,
    CellularTransmitDtmfTones,
    CellularUSSDRequest,
    CellularTimeUpdated,
    CellularSimState,
    CellularMMIData,
    CellularNewIncomingSMS,

    DBNotesAdd,            ///< Add new note's record
    DBNotesRemove,         ///< Remove selected note's record
    DBNotesUpdate,         ///< Update selected note's record
    DBNotesGetLimitOffset, ///< Get notes records by limit,offset
    DBNotesGetCount,       ///< Get notes reocrds count

    DBCalllogAdd,            ///< Add new note's record
    DBCalllogRemove,         ///< Remove selected note's record
    DBCalllogUpdate,         ///< Update selected note's record
    DBCalllogGetLimitOffset, ///< Get Calllog records by limit,offset
    DBCalllogGetCount,       ///< Get Calllog reocrds count

    // Audio service messages
    AudioMessage,

    // application manager
    APMGeneric,
    APMAction,          ///< Used to send an action request to application manager.
    APMCheckAppRunning, ///< check if application is running in application manager
    APMSwitch,          ///< request to switch to given application, optionally also to specified window
    APMSwitchPrevApp,   ///< Request to switch to previous application.
    APMConfirmSwitch,   ///< Used when application confirms that it is loosing focus and also when application confirms
                        ///< that is has gained focus
    APMConfirmClose,    ///< Sent by application to confirm completion of the close procedure
    APMConfirmWindowSwitch, ///<
    APMRegister,       ///< when application finishes initHandler it is sending this messag to inform whether init was
                       ///< successful or not.
    APMInit,           ///< Send by application to confirm completion its initialisation process
    APMDelayedClose,   ///< this message is sent internally from and to application manager to close specified
                       ///< application.
    APMChangeLanguage, ///< this message is sent from any application to inform application manager that it should send
                       ///< gui rebuild command to all applications in background and currently active application.
    APMClose, ///< this message will trigger application manager to close itself, all running applications gui and eink
              ///< services.
    APMPreventBlocking,   ///< Prevents application manager from initializing device blocking.
    APMInitPowerSaveMode, ///< This message is sent to application manager from desktop when locking timeout has
                          ///< triggered or user explicitly locked the phone.

    // keyboard messages
    KBDKeyEvent,

    AppMessage, ///< generic application message
    AppAction,  ///< application action request.
    AppSwitch,  ///< application receives this message from application manager. It a signal to gain or loose focus.
    AppSwitchWindow, ///< This is internal message transmitted within application to change window. Additional command
                     ///< and data are transmitted with it.
    AppInputEvent,   ///< used after key event translation to send input event to application
    AppRefresh,
    AppRebuild, ///< message used to notify application that it should recreate it's GUI (i.e. language has beed changed
                ///< by the user)
    AppClose,
    AppFocus,
    AppFocusLost,

    EVMFocusApplication,
    EVMKeyboardProfile,

    // Power manager
    PMChangePowerMode,
    // System manager
    DeviceRegistration,

    // System manager
    SystemManagerCpuFrequency,
    SystemManagerRegistration,

    // rtc messages
    EVMMinuteUpdated, ///< This message is send to current focused application on every minute time change.
    EVMTimeUpdated,   ///< This message is send on every time update.
    // Torch messages
    EVMTorchStateMessage,

    // cellular messages
    EVMGetBoard,
    EVMModemStatus,
    EVMRingIndicator,

    // bluetooth messages
    BluetoothRequest,
    BluetoothScanResult,
    BluetoothAddrResult,
    BluetoothPairResult,
    BluetoothAudioRegister,
    BluetoothDeviceMetadata,
    BluetoothRequestStream,
    BluetoothDeviceDisconnected,

    // bluetooth proxy
    BluetoothProxyStart,
    BluetoothProxyStop,
    BluetoothProxyOutputVolumeCtrl,
    BluetoothProxyInputGainCtrl,
    BluetoothProxyOutputPathCtrl,
    BluetoothProxyInputPathCtrl,

    LwIP_request,
    EVM_GPIO,
    SIMTrayEvent,

    // service-desktop  messages
    UpdateOS,
    Backup,
    Restore,
    Factory,
    DeveloperModeRequest,
    PasscodeRequest,
    TransferTimer,

    USBConnected,
    USBConfigured,
    USBDisconnected,
    USBSecurityOn,
    USBSecurityOff,
    USBHandshake,

    ScreenPasscodeRequest,
    ScreenPasscodeUnlocked,

    // FOTA messages
    HttpRequest,
    HttpResponse,
    FotaConfigureAPN,
    FotaInternetConnect,
    FotaInternetDisconnect,
    FotaInternetNotification,
    FotaStart,
    FotaProgress,
    FotaFinished,

    // Time messages
    TimersProcessingStart,
    TimersProcessingStop,
    ReloadTimers,

    StateChange,
    // antenna messages
    AntennaChanged,
    AntennaCSQChange,
    AntennaLockService,
    AntennaGetLockState,
    AntennaLockNotification,
    Settings,
    FileContentModified,
    FileIndexer,

    // Screen frontlight control messages
    ScreenLightControlAction,
    ScreenLightControlParameters,
    ScreenLightControlParametersResponse,

    // Vibra messages
    VibraPulseMessage,

    // Quotes messages
    Quotes,
};

#endif /* SOURCE_MESSAGETYPE_HPP_ */