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 
184 #define MR_EVENT_IMEX_PROGRESS 2051
185 
186 
200 #define MR_EVENT_IMEX_FILE_WRITTEN 2052
201 
202 
203 /*******************************************************************************
204  * The following events are functions that should be provided by the frontends
205  ******************************************************************************/
206 
207 
219 #define MR_EVENT_IS_OFFLINE 2081
220 
221 
233 #define MR_EVENT_GET_STRING 2091
234 
235 
250 #define MR_EVENT_GET_QUANTITY_STRING 2092
251 
252 
264 #define MR_EVENT_HTTP_GET 2100
265 
279 #define MR_EVENT_WAKE_LOCK 2110
280 
281 
282 #ifdef __cplusplus
283 } /* /extern "C" */
284 #endif
285 #endif /* __MREVENT_H__ */
286