diff --git a/docs/html/mrchat_8h_source.html b/docs/html/mrchat_8h_source.html index 074250a0..4634eff3 100644 --- a/docs/html/mrchat_8h_source.html +++ b/docs/html/mrchat_8h_source.html @@ -89,18 +89,18 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
mrchat.h
-
1 /*******************************************************************************
2  *
3  * Delta Chat Core
4  * Copyright (C) 2017 Björn Petersen
5  * Contact: r10s@b44t.com, http://b44t.com
6  *
7  * This program is free software: you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License as published by the Free Software
9  * Foundation, either version 3 of the License, or (at your option) any later
10  * version.
11  *
12  * This program is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
15  * details.
16  *
17  * You should have received a copy of the GNU General Public License along with
18  * this program. If not, see http://www.gnu.org/licenses/ .
19  *
20  ******************************************************************************/
21 
22 
23 #ifndef __MRCHAT_H__
24 #define __MRCHAT_H__
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 
30 typedef struct mrmailbox_t mrmailbox_t;
31 typedef struct mrparam_t mrparam_t;
32 
33 
39 typedef struct mrchat_t
40 {
41  #define MR_CHAT_ID_DEADDROP 1 /* messages send from unknown/unwanted users to us, chats_contacts is not set up. This group may be shown normally. */
42  #define MR_CHAT_ID_TO_DEADDROP 2 /* messages send from us to unknown/unwanted users (this may happen when deleting chats or when using CC: in the email-program) */
43  #define MR_CHAT_ID_TRASH 3 /* messages that should be deleted get this chat_id; the messages are deleted from the working thread later then. This is also needed as rfc724_mid should be preset as long as the message is not deleted on the server (otherwise it is downloaded again) */
44  #define MR_CHAT_ID_MSGS_IN_CREATION 4 /* a message is just in creation but not yet assigned to a chat (eg. we may need the message ID to set up blobs; this avoids unready message to be send and shown) */
45  #define MR_CHAT_ID_STARRED 5 /* virtual chat containing all starred messages */
46  #define MR_CHAT_ID_ARCHIVED_LINK 6 /* a link at the end of the chatlist, if present the UI should show the button "Archived chats" */
47  #define MR_CHAT_ID_LAST_SPECIAL 9 /* larger chat IDs are "real" chats, their messages are "real" messages. */
48  uint32_t m_id;
50  #define MR_CHAT_TYPE_UNDEFINED 0
51  #define MR_CHAT_TYPE_NORMAL 100 /* a normal chat is a chat with a single contact, chats_contacts contains one record for the user, MR_CONTACT_ID_SELF is not added. */
52  #define MR_CHAT_TYPE_GROUP 120 /* a group chat, chats_contacts conain all group members, incl. MR_CONTACT_ID_SELF */
53  int m_type;
55  char* m_name;
57  char* m_draft_text;
59  int m_archived;
63  char* m_grpid; /* NULL if unset */
64 } mrchat_t;
65 
66 
67 mrchat_t* mrchat_new (mrmailbox_t*);
68 void mrchat_empty (mrchat_t*);
69 void mrchat_unref (mrchat_t*);
71 
72 /* library-internal */
73 int mrchat_load_from_db__ (mrchat_t*, uint32_t id);
74 int mrchat_update_param__ (mrchat_t*);
75 
76 #define MR_CHAT_PREFIX "Chat:" /* you MUST NOT modify this or the following strings */
77 #define MR_CHATS_FOLDER "Chats" /* if we want to support Gma'l-labels - "Chats" is a reserved word for Gma'l */
78 
79 
80 #ifdef __cplusplus
81 } /* /extern "C" */
82 #endif
83 #endif /* __MRCHAT_H__ */
int m_type
Chat type, one of the MR_CHAT_TYPE_* constants.
Definition: mrchat.h:53
+
1 /*******************************************************************************
2  *
3  * Delta Chat Core
4  * Copyright (C) 2017 Björn Petersen
5  * Contact: r10s@b44t.com, http://b44t.com
6  *
7  * This program is free software: you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License as published by the Free Software
9  * Foundation, either version 3 of the License, or (at your option) any later
10  * version.
11  *
12  * This program is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
15  * details.
16  *
17  * You should have received a copy of the GNU General Public License along with
18  * this program. If not, see http://www.gnu.org/licenses/ .
19  *
20  ******************************************************************************/
21 
22 
23 #ifndef __MRCHAT_H__
24 #define __MRCHAT_H__
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 
30 typedef struct mrmailbox_t mrmailbox_t;
31 typedef struct mrparam_t mrparam_t;
32 
33 
39 typedef struct mrchat_t
40 {
51  uint32_t m_id;
52  #define MR_CHAT_ID_DEADDROP 1
53  #define MR_CHAT_ID_TO_DEADDROP 2 /* messages send from us to unknown/unwanted users (this may happen when deleting chats or when using CC: in the email-program) */
54  #define MR_CHAT_ID_TRASH 3 /* messages that should be deleted get this chat_id; the messages are deleted from the working thread later then. This is also needed as rfc724_mid should be preset as long as the message is not deleted on the server (otherwise it is downloaded again) */
55  #define MR_CHAT_ID_MSGS_IN_CREATION 4 /* a message is just in creation but not yet assigned to a chat (eg. we may need the message ID to set up blobs; this avoids unready message to be send and shown) */
56  #define MR_CHAT_ID_STARRED 5
57  #define MR_CHAT_ID_ARCHIVED_LINK 6
58  #define MR_CHAT_ID_LAST_SPECIAL 9 /* larger chat IDs are "real" chats, their messages are "real" messages. */
59 
60 
69  int m_type;
70  #define MR_CHAT_TYPE_UNDEFINED 0
71  #define MR_CHAT_TYPE_NORMAL 100
72  #define MR_CHAT_TYPE_GROUP 120
73 
74 
75  char* m_name;
77  char* m_draft_text;
79  int m_archived;
83  char* m_grpid; /* NULL if unset */
84 } mrchat_t;
85 
86 
87 mrchat_t* mrchat_new (mrmailbox_t*);
88 void mrchat_empty (mrchat_t*);
89 void mrchat_unref (mrchat_t*);
91 
92 /* library-internal */
93 int mrchat_load_from_db__ (mrchat_t*, uint32_t id);
94 int mrchat_update_param__ (mrchat_t*);
95 
96 #define MR_CHAT_PREFIX "Chat:" /* you MUST NOT modify this or the following strings */
97 #define MR_CHATS_FOLDER "Chats" /* if we want to support Gma'l-labels - "Chats" is a reserved word for Gma'l */
98 
99 
100 #ifdef __cplusplus
101 } /* /extern "C" */
102 #endif
103 #endif /* __MRCHAT_H__ */
int m_type
Chat type.
Definition: mrchat.h:69
An object representing a single mailbox.
Definition: mrmailbox.h:179
void mrchat_unref(mrchat_t *chat)
Free a chat object.
Definition: mrchat.c:65
-
char * m_draft_text
NULL if unset.
Definition: mrchat.h:57
-
mrmailbox_t * m_mailbox
!= NULL
Definition: mrchat.h:58
-
mrparam_t * m_param
!= NULL
Definition: mrchat.h:60
+
char * m_draft_text
NULL if unset.
Definition: mrchat.h:77
+
mrmailbox_t * m_mailbox
!= NULL
Definition: mrchat.h:78
+
mrparam_t * m_param
!= NULL
Definition: mrchat.h:80
void mrchat_empty(mrchat_t *chat)
Empty a chat object.
Definition: mrchat.c:86
-
int m_archived
1=chat archived, this state should always be shown the UI, eg.
Definition: mrchat.h:59
-
char * m_name
NULL if unset.
Definition: mrchat.h:55
+
int m_archived
1=chat archived, this state should always be shown the UI, eg.
Definition: mrchat.h:79
+
char * m_name
NULL if unset.
Definition: mrchat.h:75
An object for handling key=value parameter lists.
Definition: mrparam.h:36
-
time_t m_draft_timestamp
0 if there is no draft
Definition: mrchat.h:56
-
uint32_t m_id
Chat ID under which this object is available in the database.
Definition: mrchat.h:48
+
time_t m_draft_timestamp
0 if there is no draft
Definition: mrchat.h:76
+
uint32_t m_id
Chat ID under which the chat is filed in the database.
Definition: mrchat.h:51
An object representing a single chat in memory.
Definition: mrchat.h:39
char * mrchat_get_subtitle(mrchat_t *chat)
Get a subtitle for a chat.
Definition: mrchat.c:120
diff --git a/docs/html/mrcontact_8h_source.html b/docs/html/mrcontact_8h_source.html index e2ec2ebf..a65fefe6 100644 --- a/docs/html/mrcontact_8h_source.html +++ b/docs/html/mrcontact_8h_source.html @@ -89,17 +89,17 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
mrcontact.h
-
1 /*******************************************************************************
2  *
3  * Delta Chat Core
4  * Copyright (C) 2017 Björn Petersen
5  * Contact: r10s@b44t.com, http://b44t.com
6  *
7  * This program is free software: you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License as published by the Free Software
9  * Foundation, either version 3 of the License, or (at your option) any later
10  * version.
11  *
12  * This program is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
15  * details.
16  *
17  * You should have received a copy of the GNU General Public License along with
18  * this program. If not, see http://www.gnu.org/licenses/ .
19  *
20  ******************************************************************************/
21 
22 
23 #ifndef __MRCONTACT_H__
24 #define __MRCONTACT_H__
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 
30 typedef struct mrsqlite3_t mrsqlite3_t;
31 
32 
38 typedef struct mrcontact_t
39 {
40  #define MR_CONTACT_ID_SELF 1
41  #define MR_CONTACT_ID_SYSTEM 2
42  #define MR_CONTACT_ID_LAST_SPECIAL 9
43  uint32_t m_id;
45  char* m_name;
46  char* m_authname;
47  char* m_addr;
48  int m_blocked;
51  int m_origin;
52 } mrcontact_t;
53 
54 
55 mrcontact_t* mrcontact_new (); /* the returned pointer is ref'd and must be unref'd after usage */
58 
59 
60 /* contact origins */
61 #define MR_ORIGIN_UNSET 0
62 #define MR_ORIGIN_INCOMING_UNKNOWN_FROM 0x10 /* From: of incoming messages of unknown sender */
63 #define MR_ORIGIN_INCOMING_UNKNOWN_CC 0x20 /* Cc: of incoming messages of unknown sender */
64 #define MR_ORIGIN_INCOMING_UNKNOWN_TO 0x40 /* To: of incoming messages of unknown sender */
65 #define MR_ORIGIN_INCOMING_REPLY_TO 0x100 /* Reply-To: of incoming message of known sender */
66 #define MR_ORIGIN_INCOMING_CC 0x200 /* Cc: of incoming message of known sender */
67 #define MR_ORIGIN_INCOMING_TO 0x400 /* additional To:'s of incoming message of known sender */
68 #define MR_ORIGIN_CREATE_CHAT 0x800 /* a chat was manually created for this user, but no message yet sent */
69 #define MR_ORIGIN_OUTGOING_BCC 0x1000 /* message send by us */
70 #define MR_ORIGIN_OUTGOING_CC 0x2000 /* message send by us */
71 #define MR_ORIGIN_OUTGOING_TO 0x4000 /* message send by us */
72 #define MR_ORIGIN_INTERNAL 0x40000 /* internal use */
73 #define MR_ORIGIN_ADRESS_BOOK 0x80000 /* address is in our address book */
74 #define MR_ORIGIN_MANUALLY_CREATED 0x100000 /* contact added by mrmailbox_create_contact() */
75 
76 #define MR_ORIGIN_MIN_CONTACT_LIST (MR_ORIGIN_INCOMING_REPLY_TO) /* contacts with at least this origin value are shown in the contact list */
77 #define MR_ORIGIN_MIN_VERIFIED (MR_ORIGIN_INCOMING_REPLY_TO) /* contacts with at least this origin value are verified and known not to be spam */
78 #define MR_ORIGIN_MIN_START_NEW_NCHAT (0x7FFFFFFF) /* contacts with at least this origin value start a new "normal" chat, defaults to off */
79 
80 
81 /* library-internal */
82 char* mrcontact_get_first_name (const char* full_name);
83 void mrcontact_normalize_name (char* full_name);
84 int mrcontact_load_from_db__ (mrcontact_t*, mrsqlite3_t*, uint32_t contact_id);
85 
86 
87 #ifdef __cplusplus
88 } /* /extern "C" */
89 #endif
90 #endif /* __MRCONTACT_H__ */
char * mrcontact_get_first_name(const char *full_name)
Get the first name.
Definition: mrcontact.c:99
+
1 /*******************************************************************************
2  *
3  * Delta Chat Core
4  * Copyright (C) 2017 Björn Petersen
5  * Contact: r10s@b44t.com, http://b44t.com
6  *
7  * This program is free software: you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License as published by the Free Software
9  * Foundation, either version 3 of the License, or (at your option) any later
10  * version.
11  *
12  * This program is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
15  * details.
16  *
17  * You should have received a copy of the GNU General Public License along with
18  * this program. If not, see http://www.gnu.org/licenses/ .
19  *
20  ******************************************************************************/
21 
22 
23 #ifndef __MRCONTACT_H__
24 #define __MRCONTACT_H__
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 
30 typedef struct mrsqlite3_t mrsqlite3_t;
31 
32 
38 typedef struct mrcontact_t
39 {
48  uint32_t m_id;
49  #define MR_CONTACT_ID_SELF 1
50  #define MR_CONTACT_ID_LAST_SPECIAL 9
51 
52  char* m_name;
53  char* m_authname;
54  char* m_addr;
55  int m_blocked;
58  int m_origin;
59 } mrcontact_t;
60 
61 
62 mrcontact_t* mrcontact_new (); /* the returned pointer is ref'd and must be unref'd after usage */
65 
66 
67 /* contact origins */
68 #define MR_ORIGIN_UNSET 0
69 #define MR_ORIGIN_INCOMING_UNKNOWN_FROM 0x10 /* From: of incoming messages of unknown sender */
70 #define MR_ORIGIN_INCOMING_UNKNOWN_CC 0x20 /* Cc: of incoming messages of unknown sender */
71 #define MR_ORIGIN_INCOMING_UNKNOWN_TO 0x40 /* To: of incoming messages of unknown sender */
72 #define MR_ORIGIN_INCOMING_REPLY_TO 0x100 /* Reply-To: of incoming message of known sender */
73 #define MR_ORIGIN_INCOMING_CC 0x200 /* Cc: of incoming message of known sender */
74 #define MR_ORIGIN_INCOMING_TO 0x400 /* additional To:'s of incoming message of known sender */
75 #define MR_ORIGIN_CREATE_CHAT 0x800 /* a chat was manually created for this user, but no message yet sent */
76 #define MR_ORIGIN_OUTGOING_BCC 0x1000 /* message send by us */
77 #define MR_ORIGIN_OUTGOING_CC 0x2000 /* message send by us */
78 #define MR_ORIGIN_OUTGOING_TO 0x4000 /* message send by us */
79 #define MR_ORIGIN_INTERNAL 0x40000 /* internal use */
80 #define MR_ORIGIN_ADRESS_BOOK 0x80000 /* address is in our address book */
81 #define MR_ORIGIN_MANUALLY_CREATED 0x100000 /* contact added by mrmailbox_create_contact() */
82 
83 #define MR_ORIGIN_MIN_CONTACT_LIST (MR_ORIGIN_INCOMING_REPLY_TO) /* contacts with at least this origin value are shown in the contact list */
84 #define MR_ORIGIN_MIN_VERIFIED (MR_ORIGIN_INCOMING_REPLY_TO) /* contacts with at least this origin value are verified and known not to be spam */
85 #define MR_ORIGIN_MIN_START_NEW_NCHAT (0x7FFFFFFF) /* contacts with at least this origin value start a new "normal" chat, defaults to off */
86 
87 
88 /* library-internal */
89 char* mrcontact_get_first_name (const char* full_name);
90 void mrcontact_normalize_name (char* full_name);
91 int mrcontact_load_from_db__ (mrcontact_t*, mrsqlite3_t*, uint32_t contact_id);
92 
93 
94 #ifdef __cplusplus
95 } /* /extern "C" */
96 #endif
97 #endif /* __MRCONTACT_H__ */
char * mrcontact_get_first_name(const char *full_name)
Get the first name.
Definition: mrcontact.c:99
An object representing a single contact in memory.
Definition: mrcontact.h:38
void mrcontact_empty(mrcontact_t *ths)
Empty a contact object.
Definition: mrcontact.c:65
mrcontact_t * mrcontact_new()
Create a new contact object in memory.
Definition: mrcontact.c:32
void mrcontact_unref(mrcontact_t *ths)
Free a contact object.
Definition: mrcontact.c:49
void mrcontact_normalize_name(char *full_name)
Normalize a name in-place.
Definition: mrcontact.c:130
-
char * m_authname
may be NULL or empty, this is the name authorized by the sender, only this name may be speaded to oth...
Definition: mrcontact.h:46
-
int m_blocked
Blocked state.
Definition: mrcontact.h:48
-
char * m_addr
may be NULL or empty
Definition: mrcontact.h:47
-
char * m_name
may be NULL or empty, this name should not be spreaded as it may be "Daddy" and so on; initially set ...
Definition: mrcontact.h:45
-
uint32_t m_id
The contact ID.
Definition: mrcontact.h:43
+
char * m_authname
may be NULL or empty, this is the name authorized by the sender, only this name may be speaded to oth...
Definition: mrcontact.h:53
+
int m_blocked
Blocked state.
Definition: mrcontact.h:55
+
char * m_addr
may be NULL or empty
Definition: mrcontact.h:54
+
char * m_name
may be NULL or empty, this name should not be spreaded as it may be "Daddy" and so on; initially set ...
Definition: mrcontact.h:52
+
uint32_t m_id
The contact ID.
Definition: mrcontact.h:48
+ + +
+
+ + + + +
#define MR_EVENT_INCOMING_MSG   2005
+
+ +

There is a fresh message.

+

Typically, the user will show an notification when receiving this message.

Parameters
+ + + +
data1chat_id
data2msg_id
+
+
+
Returns
0
+
@@ -231,6 +250,50 @@ Macros
Returns
0
+ + + +
+
+ + + + +
#define MR_EVENT_MSG_DELIVERED   2010
+
+ +

A single message is send successfully (state changed from MR_STATE_OUT_PENDING to MR_STATE_OUT_DELIVERED, see mrmsg_t::m_state).

+
Parameters
+ + + +
data1chat_id
data2msg_id
+
+
+
Returns
0
+ +
+
+ +
+
+ + + + +
#define MR_EVENT_MSG_READ   2015
+
+ +

A single message is read by the receiver (state changed from MR_STATE_OUT_DELIVERED to MR_STATE_OUT_MDN_RCVD, see mrmsg_t::m_state).

+
Parameters
+ + + +
data1chat_id
data2msg_id
+
+
+
Returns
0
+
@@ -243,8 +306,16 @@ Macros
-

one or more messages changed for some reasons in the database - added or removed.

-

For added messages: data1=chat_id, data2=msg_id

+

One or more messages changed for some reasons in the database.

+

Messages may be added or removed.

+
Parameters
+ + + +
data1chat_id for single added messages
data2msg_id for single added messages
+
+
+
Returns
0
@@ -262,7 +333,7 @@ Macros

Passed to the callback given to mrmailbox_new(). This event should not be reported using a popup or something like that.

Parameters
- +
data10
data2Info string
data2Warning string
diff --git a/docs/html/mrevent_8h_source.html b/docs/html/mrevent_8h_source.html index 245a94d2..65ce5472 100644 --- a/docs/html/mrevent_8h_source.html +++ b/docs/html/mrevent_8h_source.html @@ -89,7 +89,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
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 
70 #define MR_EVENT_MSGS_CHANGED 2000
71 
72 
75 #define MR_EVENT_INCOMING_MSG 2005
76 
77 
80 #define MR_EVENT_MSG_DELIVERED 2010
81 
82 
85 #define MR_EVENT_MSG_READ 2015
86 
87 
89 #define MR_EVENT_CHAT_MODIFIED 2020
90 
91 
93 #define MR_EVENT_CONTACTS_CHANGED 2030
94 
95 
98 #define MR_EVENT_CONFIGURE_ENDED 2040
99 
100 
102 #define MR_EVENT_CONFIGURE_PROGRESS 2041
103 
104 
107 #define MR_EVENT_IMEX_ENDED 2050
108 
109 
111 #define MR_EVENT_IMEX_PROGRESS 2051
112 
113 
116 #define MR_EVENT_IMEX_FILE_WRITTEN 2052
117 
118 
119 /* The following events are functions that should be provided by the frontends */
120 
121 
124 #define MR_EVENT_IS_ONLINE 2080
125 
126 
129 #define MR_EVENT_GET_STRING 2091
130 
131 
134 #define MR_EVENT_GET_QUANTITY_STRING 2092
135 
136 
139 #define MR_EVENT_HTTP_GET 2100
140 
143 #define MR_EVENT_WAKE_LOCK 2110
144 
145 
146 #ifdef __cplusplus
147 } /* /extern "C" */
148 #endif
149 #endif /* __MREVENT_H__ */
150 
+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 
110 #define MR_EVENT_CHAT_MODIFIED 2020
111 
112 
114 #define MR_EVENT_CONTACTS_CHANGED 2030
115 
116 
119 #define MR_EVENT_CONFIGURE_ENDED 2040
120 
121 
123 #define MR_EVENT_CONFIGURE_PROGRESS 2041
124 
125 
128 #define MR_EVENT_IMEX_ENDED 2050
129 
130 
132 #define MR_EVENT_IMEX_PROGRESS 2051
133 
134 
137 #define MR_EVENT_IMEX_FILE_WRITTEN 2052
138 
139 
140 /* The following events are functions that should be provided by the frontends */
141 
142 
145 #define MR_EVENT_IS_ONLINE 2080
146 
147 
150 #define MR_EVENT_GET_STRING 2091
151 
152 
155 #define MR_EVENT_GET_QUANTITY_STRING 2092
156 
157 
160 #define MR_EVENT_HTTP_GET 2100
161 
164 #define MR_EVENT_WAKE_LOCK 2110
165 
166 
167 #ifdef __cplusplus
168 } /* /extern "C" */
169 #endif
170 #endif /* __MREVENT_H__ */
171