Delta Chat Core C-API
mrevent.h
Go to the documentation of this file.
1 /*******************************************************************************
2  *
3  * Delta Chat Core
4  * Contact: r10s@b44t.com, http://b44t.com
5  *
6  * This program is free software: you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License as published by the Free Software
8  * Foundation, either version 3 of the License, or (at your option) any later
9  * version.
10  *
11  * This program is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14  * details.
15  *
16  * You should have received a copy of the GNU General Public License along with
17  * this program. If not, see http://www.gnu.org/licenses/ .
18  *
19  ******************************************************************************/
20 
21 
22 #ifndef __MREVENT_H__
23 #define __MREVENT_H__
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 
49 #define MR_EVENT_INFO 100
50 
51 
63 #define MR_EVENT_WARNING 300
64 
65 
76 #define MR_EVENT_ERROR 400
77 
78 
93 #define MR_EVENT_MSGS_CHANGED 2000
94 
95 
108 #define MR_EVENT_INCOMING_MSG 2005
109 
110 
121 #define MR_EVENT_MSG_DELIVERED 2010
122 
123 
134 #define MR_EVENT_MSG_READ 2015
135 
136 
148 #define MR_EVENT_CHAT_MODIFIED 2020
149 
150 
160 #define MR_EVENT_CONTACTS_CHANGED 2030
161 
162 
172 #define MR_EVENT_CONFIGURE_PROGRESS 2041
173 
174 
185 #define MR_EVENT_IMEX_ENDED 2050
186 
187 
197 #define MR_EVENT_IMEX_PROGRESS 2051
198 
199 
214 #define MR_EVENT_IMEX_FILE_WRITTEN 2052
215 
216 
217 /*******************************************************************************
218  * The following events are functions that should be provided by the frontends
219  ******************************************************************************/
220 
221 
233 #define MR_EVENT_IS_OFFLINE 2081
234 
235 
247 #define MR_EVENT_GET_STRING 2091
248 
249 
264 #define MR_EVENT_GET_QUANTITY_STRING 2092
265 
266 
278 #define MR_EVENT_HTTP_GET 2100
279 
293 #define MR_EVENT_WAKE_LOCK 2110
294 
295 
296 #ifdef __cplusplus
297 } /* /extern "C" */
298 #endif
299 #endif /* __MREVENT_H__ */
300