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 
44 #define MR_EVENT_INFO 100
45 
46 
55 #define MR_EVENT_WARNING 300
56 
57 
65 #define MR_EVENT_ERROR 400
66 
67 
76 #define MR_EVENT_MSGS_CHANGED 2000
77 
78 
86 #define MR_EVENT_INCOMING_MSG 2005
87 
88 
96 #define MR_EVENT_MSG_DELIVERED 2010
97 
98 
106 #define MR_EVENT_MSG_READ 2015
107 
108 
115 #define MR_EVENT_CHAT_MODIFIED 2020
116 
117 
124 #define MR_EVENT_CONTACTS_CHANGED 2030
125 
126 
134 #define MR_EVENT_CONFIGURE_ENDED 2040
135 
136 
144 #define MR_EVENT_CONFIGURE_PROGRESS 2041
145 
146 
154 #define MR_EVENT_IMEX_ENDED 2050
155 
156 
163 #define MR_EVENT_IMEX_PROGRESS 2051
164 
165 
168 #define MR_EVENT_IMEX_FILE_WRITTEN 2052
169 
170 
171 /* The following events are functions that should be provided by the frontends */
172 
173 
176 #define MR_EVENT_IS_ONLINE 2080
177 
178 
181 #define MR_EVENT_GET_STRING 2091
182 
183 
186 #define MR_EVENT_GET_QUANTITY_STRING 2092
187 
188 
191 #define MR_EVENT_HTTP_GET 2100
192 
195 #define MR_EVENT_WAKE_LOCK 2110
196 
197 
198 #ifdef __cplusplus
199 } /* /extern "C" */
200 #endif
201 #endif /* __MREVENT_H__ */
202