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 
89 #define MR_EVENT_MSGS_CHANGED 2000
90 
91 
102 #define MR_EVENT_INCOMING_MSG 2005
103 
104 
115 #define MR_EVENT_MSG_DELIVERED 2010
116 
117 
128 #define MR_EVENT_MSG_READ 2015
129 
130 
140 #define MR_EVENT_CHAT_MODIFIED 2020
141 
142 
152 #define MR_EVENT_CONTACTS_CHANGED 2030
153 
154 
164 #define MR_EVENT_CONFIGURE_PROGRESS 2041
165 
166 
177 #define MR_EVENT_IMEX_ENDED 2050
178 
179 
189 #define MR_EVENT_IMEX_PROGRESS 2051
190 
191 
206 #define MR_EVENT_IMEX_FILE_WRITTEN 2052
207 
208 
209 /*******************************************************************************
210  * The following events are functions that should be provided by the frontends
211  ******************************************************************************/
212 
213 
225 #define MR_EVENT_IS_OFFLINE 2081
226 
227 
239 #define MR_EVENT_GET_STRING 2091
240 
241 
256 #define MR_EVENT_GET_QUANTITY_STRING 2092
257 
258 
270 #define MR_EVENT_HTTP_GET 2100
271 
285 #define MR_EVENT_WAKE_LOCK 2110
286 
287 
288 #ifdef __cplusplus
289 } /* /extern "C" */
290 #endif
291 #endif /* __MREVENT_H__ */
292