diff --git a/docs/html/annotated.html b/docs/html/annotated.html index 3adc0376..187b3233 100644 --- a/docs/html/annotated.html +++ b/docs/html/annotated.html @@ -99,7 +99,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/classes.html b/docs/html/classes.html index d7181dc1..1a17f00f 100644 --- a/docs/html/classes.html +++ b/docs/html/classes.html @@ -97,7 +97,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html b/docs/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html index af000d9d..147078d8 100644 --- a/docs/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html +++ b/docs/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html @@ -99,7 +99,7 @@ Files diff --git a/docs/html/files.html b/docs/html/files.html index a2f72908..85301d03 100644 --- a/docs/html/files.html +++ b/docs/html/files.html @@ -120,7 +120,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/functions.html b/docs/html/functions.html index ac2088c2..fd052873 100644 --- a/docs/html/functions.html +++ b/docs/html/functions.html @@ -469,7 +469,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/functions_func.html b/docs/html/functions_func.html index 5d6308da..63240bb5 100644 --- a/docs/html/functions_func.html +++ b/docs/html/functions_func.html @@ -383,7 +383,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/functions_type.html b/docs/html/functions_type.html index 7d6714bf..e79ab9c1 100644 --- a/docs/html/functions_type.html +++ b/docs/html/functions_type.html @@ -97,7 +97,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/functions_vars.html b/docs/html/functions_vars.html index c1b882a8..7f2fc113 100644 --- a/docs/html/functions_vars.html +++ b/docs/html/functions_vars.html @@ -184,7 +184,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/globals.html b/docs/html/globals.html index e4647035..6ea969e1 100644 --- a/docs/html/globals.html +++ b/docs/html/globals.html @@ -88,12 +88,6 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
Here is a list of all documented file members with links to the documentation:
diff --git a/docs/html/globals_defs.html b/docs/html/globals_defs.html index 2f67c23b..fb2fca2b 100644 --- a/docs/html/globals_defs.html +++ b/docs/html/globals_defs.html @@ -88,12 +88,6 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
 
diff --git a/docs/html/index.html b/docs/html/index.html index e2273ff8..3bebad07 100644 --- a/docs/html/index.html +++ b/docs/html/index.html @@ -108,7 +108,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/mraheader_8h_source.html b/docs/html/mraheader_8h_source.html index 8b1537e5..18a52b58 100644 --- a/docs/html/mraheader_8h_source.html +++ b/docs/html/mraheader_8h_source.html @@ -92,7 +92,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
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 __MRAHEADER_H__
24 #define __MRAHEADER_H__
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 
30 #include "mrkey.h"
31 
32 
36 typedef struct mraheader_t
37 {
38  char* m_addr;
39  mrkey_t* m_public_key; /* != NULL */
40  int m_prefer_encrypt; /* YES, NO or NOPREFERENCE if attribute is missing */
41 } mraheader_t;
42 
43 
44 mraheader_t* mraheader_new (); /* the returned pointer is ref'd and must be unref'd after usage */
45 mraheader_t* mraheader_new_from_imffields(const char* wanted_from, const struct mailimf_fields* mime);
46 void mraheader_empty (mraheader_t*);
47 void mraheader_unref (mraheader_t*);
48 
49 int mraheader_set_from_string (mraheader_t*, const char* header_str);
50 
51 char* mraheader_render (const mraheader_t*);
52 
53 
54 #ifdef __cplusplus
55 } /* /extern "C" */
56 #endif
57 #endif /* __MRAHEADER_H__ */
diff --git a/docs/html/mrapeerstate_8h_source.html b/docs/html/mrapeerstate_8h_source.html index 2b6f6678..ac96ecf9 100644 --- a/docs/html/mrapeerstate_8h_source.html +++ b/docs/html/mrapeerstate_8h_source.html @@ -92,7 +92,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
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 __MRAPEERSTATE_H__
24 #define __MRAPEERSTATE_H__
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 
30 #include "mrkey.h"
31 
32 
33 typedef struct mraheader_t mraheader_t;
34 
35 
36 #define MRA_PE_NOPREFERENCE 0 /* prefer-encrypt states */
37 #define MRA_PE_MUTUAL 1
38 #define MRA_PE_GOSSIP 2
39 #define MRA_PE_RESET 20
40 
41 
45 typedef struct mrapeerstate_t
46 {
48  char* m_addr;
49  time_t m_last_seen;
50  time_t m_last_seen_autocrypt;
51  mrkey_t* m_public_key;
52  int m_prefer_encrypt;
53 
54  #define MRA_SAVE_LAST_SEEN 0x01
55  #define MRA_SAVE_ALL 0x02
56  int m_to_save;
57 } mrapeerstate_t;
58 
59 
60 mrapeerstate_t* mrapeerstate_new (); /* the returned pointer is ref'd and must be unref'd after usage */
61 void mrapeerstate_unref (mrapeerstate_t*);
62 
63 int mrapeerstate_init_from_header (mrapeerstate_t*, const mraheader_t*, time_t message_time);
64 int mrapeerstate_degrade_encryption(mrapeerstate_t*, time_t message_time);
65 int mrapeerstate_apply_header (mrapeerstate_t*, const mraheader_t*, time_t message_time); /*returns 1 on changes*/
66 
67 int mrapeerstate_load_from_db__ (mrapeerstate_t*, mrsqlite3_t*, const char* addr);
68 int mrapeerstate_save_to_db__ (const mrapeerstate_t*, mrsqlite3_t*, int create);
69 
70 
71 #ifdef __cplusplus
72 } /* /extern "C" */
73 #endif
74 #endif /* __MRAPEERSTATE_H__ */
75 
diff --git a/docs/html/mrchat_8h_source.html b/docs/html/mrchat_8h_source.html index 058bf48e..c83b8124 100644 --- a/docs/html/mrchat_8h_source.html +++ b/docs/html/mrchat_8h_source.html @@ -106,7 +106,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/mrchatlist_8h_source.html b/docs/html/mrchatlist_8h_source.html index 60bb8d9b..70d3fe49 100644 --- a/docs/html/mrchatlist_8h_source.html +++ b/docs/html/mrchatlist_8h_source.html @@ -103,7 +103,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/mrcontact_8h_source.html b/docs/html/mrcontact_8h_source.html index c8431613..9d56443c 100644 --- a/docs/html/mrcontact_8h_source.html +++ b/docs/html/mrcontact_8h_source.html @@ -103,7 +103,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/mrdehtml_8h_source.html b/docs/html/mrdehtml_8h_source.html index 81c0de2e..f7b8af67 100644 --- a/docs/html/mrdehtml_8h_source.html +++ b/docs/html/mrdehtml_8h_source.html @@ -92,7 +92,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
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 __MRDEHTML_H__
24 #define __MRDEHTML_H__
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 
30 /*** library-internal *********************************************************/
31 
32 char* mr_dehtml(char* buf_terminated); /* mr_dehtml() returns way too many lineends; however, an optimisation on this issue is not needed as the lineends are typically remove in further processing by the caller */
33 
34 
35 #ifdef __cplusplus
36 } /* /extern "C" */
37 #endif
38 #endif /* __MRDEHTML_H__ */
39 
diff --git a/docs/html/mrevent_8h.html b/docs/html/mrevent_8h.html index f5bee2da..e26c91b4 100644 --- a/docs/html/mrevent_8h.html +++ b/docs/html/mrevent_8h.html @@ -170,14 +170,6 @@ Macros #define MR_EVENT_WAKE_LOCK   2110  acquire wakeLock (data1=1) or release it (data1=0), the backend does not make nested or unsynchronized calls
  - -#define MR_ERR_SELF_NOT_IN_GROUP   1 - Error code.
-  - -#define MR_ERR_NONETWORK   2 - Error code.

Detailed Description

The following constants are used as events reported to the callback given to mrmailbox_new().

@@ -281,7 +273,7 @@ Macros
diff --git a/docs/html/mrevent_8h_source.html b/docs/html/mrevent_8h_source.html index 8e538ddc..6c3829d2 100644 --- a/docs/html/mrevent_8h_source.html +++ b/docs/html/mrevent_8h_source.html @@ -89,10 +89,10 @@ 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 /*******************************************************************************
147  * Events
148  ******************************************************************************/
149 
150 
152 #define MR_ERR_SELF_NOT_IN_GROUP 1
153 
154 
156 #define MR_ERR_NONETWORK 2
157 
158 
159 
160 #ifdef __cplusplus
161 } /* /extern "C" */
162 #endif
163 #endif /* __MREVENT_H__ */
164 
+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 
diff --git a/docs/html/mrimap_8h_source.html b/docs/html/mrimap_8h_source.html index 8981af56..f7d3baaa 100644 --- a/docs/html/mrimap_8h_source.html +++ b/docs/html/mrimap_8h_source.html @@ -93,7 +93,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/mrjob_8h_source.html b/docs/html/mrjob_8h_source.html index bf82294b..9f5fe9e1 100644 --- a/docs/html/mrjob_8h_source.html +++ b/docs/html/mrjob_8h_source.html @@ -94,7 +94,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/mrkey_8h_source.html b/docs/html/mrkey_8h_source.html index c5ec0fbf..4f6a5912 100644 --- a/docs/html/mrkey_8h_source.html +++ b/docs/html/mrkey_8h_source.html @@ -93,7 +93,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/mrkeyring_8h_source.html b/docs/html/mrkeyring_8h_source.html index 5511b9b8..59ae7810 100644 --- a/docs/html/mrkeyring_8h_source.html +++ b/docs/html/mrkeyring_8h_source.html @@ -92,7 +92,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
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 __MRKEYRING_H__
24 #define __MRKEYRING_H__
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 
30 typedef struct mrkey_t mrkey_t;
31 
32 
36 typedef struct mrkeyring_t
37 {
40  mrkey_t** m_keys;
41  int m_count;
42  int m_allocated;
43 } mrkeyring_t;
44 
45 mrkeyring_t* mrkeyring_new ();
46 void mrkeyring_unref();
47 
48 void mrkeyring_add (mrkeyring_t*, mrkey_t*); /* the reference counter of the key is increased by one */
49 
50 int mrkeyring_load_self_private_for_decrypting__(mrkeyring_t*, const char* self_addr, mrsqlite3_t* sql);
51 
52 
53 #ifdef __cplusplus
54 } /* /extern "C" */
55 #endif
56 #endif /* __MRKEYRING_H__ */
57 
diff --git a/docs/html/mrloginparam_8h_source.html b/docs/html/mrloginparam_8h_source.html index 786bb912..653f3e41 100644 --- a/docs/html/mrloginparam_8h_source.html +++ b/docs/html/mrloginparam_8h_source.html @@ -92,7 +92,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
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 __MRLOGINPARAM_H__
24 #define __MRLOGINPARAM_H__
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 
33 typedef struct mrloginparam_t
34 {
37  /* IMAP/POP3 - all pointers may be NULL if unset, public read */
38  char* m_addr;
39  char* m_mail_server;
40  char* m_mail_user;
41  char* m_mail_pw;
42  uint16_t m_mail_port;
43 
44  /* SMTP - all pointers may be NULL if unset, public read */
45  char* m_send_server;
46  char* m_send_user;
47  char* m_send_pw;
48  int m_send_port;
49 
50  /* Server options*/
51  #define MR_AUTH_XOAUTH2 0x2
52  #define MR_AUTH_NORMAL 0x4
53  #define MR_AUTH_FLAGS (MR_AUTH_XOAUTH2|MR_AUTH_NORMAL) /* if none of these flags are set, the default is choosen, even if MR_NO_AUTOCONFIG is set */
54 
55  #define MR_IMAP_SOCKET_STARTTLS 0x100
56  #define MR_IMAP_SOCKET_SSL 0x200
57  #define MR_IMAP_SOCKET_PLAIN 0x400
58  #define MR_IMAP_SOCKET_FLAGS (MR_IMAP_SOCKET_STARTTLS|MR_IMAP_SOCKET_SSL|MR_IMAP_SOCKET_PLAIN) /* if none of these flags are set, the default is choosen, even if MR_NO_AUTOCONFIG is set */
59 
60  #define MR_SMTP_SOCKET_STARTTLS 0x10000
61  #define MR_SMTP_SOCKET_SSL 0x20000
62  #define MR_SMTP_SOCKET_PLAIN 0x40000
63  #define MR_SMTP_SOCKET_FLAGS (MR_SMTP_SOCKET_STARTTLS|MR_SMTP_SOCKET_SSL|MR_SMTP_SOCKET_PLAIN) /* if none of these flags are set, the default is choosen, even if MR_NO_AUTOCONFIG is set */
64 
65  #define MR_NO_EXTRA_IMAP_UPLOAD 0x2000000
66  #define MR_NO_MOVE_TO_CHATS 0x4000000
67 
68  int m_server_flags;
69 } mrloginparam_t;
70 
71 
72 mrloginparam_t* mrloginparam_new ();
73 void mrloginparam_unref (mrloginparam_t*);
74 void mrloginparam_empty (mrloginparam_t*); /* clears all data and frees its memory. All pointers are NULL after this function is called. */
75 void mrloginparam_read__ (mrloginparam_t*, mrsqlite3_t*, const char* prefix);
76 void mrloginparam_write__ (const mrloginparam_t*, mrsqlite3_t*, const char* prefix);
77 char* mrloginparam_get_readable (const mrloginparam_t*);
78 
79 
80 #ifdef __cplusplus
81 } /* /extern "C" */
82 #endif
83 #endif /* __MRLOGINPARAM_H__ */
84 
diff --git a/docs/html/mrmailbox_8h_source.html b/docs/html/mrmailbox_8h_source.html index 296a64ec..72fbcc83 100644 --- a/docs/html/mrmailbox_8h_source.html +++ b/docs/html/mrmailbox_8h_source.html @@ -89,7 +89,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
mrmailbox.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 __MRMAILBOX_H__
24 #define __MRMAILBOX_H__
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 
30 #define MR_VERSION_MAJOR 0
31 #define MR_VERSION_MINOR 9
32 #define MR_VERSION_REVISION 7
33 
34 
137 #include <libetpan/libetpan.h> /* defines uint16_t and carray */
138 #include "mrchatlist.h"
139 #include "mrchat.h"
140 #include "mrmsg.h"
141 #include "mrcontact.h"
142 #include "mrpoortext.h"
143 #include "mrparam.h"
144 #include "mrevent.h"
145 
146 typedef struct mrmailbox_t mrmailbox_t;
147 typedef struct mrimap_t mrimap_t;
148 typedef struct mrsmtp_t mrsmtp_t;
149 typedef struct mrsqlite3_t mrsqlite3_t;
150 typedef struct mrjob_t mrjob_t;
151 typedef struct mrmimeparser_t mrmimeparser_t;
152 
153 
169 typedef uintptr_t (*mrmailboxcb_t) (mrmailbox_t*, int event, uintptr_t data1, uintptr_t data2);
170 
171 
179 typedef struct mrmailbox_t
180 {
181  void* m_userdata;
182  char* m_dbfile;
183  char* m_blobdir;
186  mrsqlite3_t* m_sql;
187  mrimap_t* m_imap;
188  mrsmtp_t* m_smtp;
190  pthread_t m_job_thread;
191  pthread_cond_t m_job_cond;
192  pthread_mutex_t m_job_condmutex;
193  int m_job_condflag;
194  int m_job_do_exit;
196  mrmailboxcb_t m_cb;
198  char* m_os_name;
200  uint32_t m_cmdline_sel_chat_id;
202  int m_wake_lock;
203  pthread_mutex_t m_wake_lock_critical;
205  int m_e2ee_enabled;
207  #define MR_LOG_RINGBUF_SIZE 200
208  pthread_mutex_t m_log_ringbuf_critical;
209  char* m_log_ringbuf[MR_LOG_RINGBUF_SIZE];
211  time_t m_log_ringbuf_times[MR_LOG_RINGBUF_SIZE];
213  int m_log_ringbuf_pos;
215 } mrmailbox_t;
216 
217 
218 /* create/open/connect */
219 mrmailbox_t* mrmailbox_new (mrmailboxcb_t, void* userdata, const char* os_name);
220 void mrmailbox_unref (mrmailbox_t*);
221 
222 int mrmailbox_open (mrmailbox_t*, const char* dbfile, const char* blobdir);
223 void mrmailbox_close (mrmailbox_t*);
224 int mrmailbox_is_open (const mrmailbox_t*);
225 
226 int mrmailbox_set_config (mrmailbox_t*, const char* key, const char* value);
227 char* mrmailbox_get_config (mrmailbox_t*, const char* key, const char* def);
228 int mrmailbox_set_config_int (mrmailbox_t*, const char* key, int32_t value);
229 int32_t mrmailbox_get_config_int (mrmailbox_t*, const char* key, int32_t def);
230 char* mrmailbox_get_blobdir (mrmailbox_t*);
231 char* mrmailbox_get_version_str (void);
232 
233 void mrmailbox_configure_and_connect(mrmailbox_t*);
234 void mrmailbox_configure_cancel (mrmailbox_t*);
235 int mrmailbox_is_configured (mrmailbox_t*);
236 
237 void mrmailbox_connect (mrmailbox_t*);
238 void mrmailbox_disconnect (mrmailbox_t*);
239 
240 int mrmailbox_restore (mrmailbox_t*, time_t seconds_to_restore); /* not really implemented */
241 char* mrmailbox_get_info (mrmailbox_t*);
242 
243 
244 /* Handle chatlists */
245 #define MR_GCL_ARCHIVED_ONLY 0x01
246 #define MR_GCL_NO_SPECIALS 0x02
247 mrchatlist_t* mrmailbox_get_chatlist (mrmailbox_t*, int flags, const char* query);
248 
249 
250 /* Handle chats */
251 uint32_t mrmailbox_create_chat_by_contact_id (mrmailbox_t*, uint32_t contact_id);
252 uint32_t mrmailbox_get_chat_id_by_contact_id (mrmailbox_t*, uint32_t contact_id);
253 
254 uint32_t mrmailbox_send_text_msg (mrmailbox_t*, uint32_t chat_id, const char* text_to_send);
255 uint32_t mrmailbox_send_msg (mrmailbox_t*, uint32_t chat_id, mrmsg_t*);
256 void mrmailbox_set_draft (mrmailbox_t*, uint32_t chat_id, const char*);
257 
258 #define MR_GCM_ADDDAYMARKER 0x01
259 carray* mrmailbox_get_chat_msgs (mrmailbox_t*, uint32_t chat_id, uint32_t flags, uint32_t marker1before);
260 int mrmailbox_get_total_msg_count (mrmailbox_t*, uint32_t chat_id);
261 int mrmailbox_get_fresh_msg_count (mrmailbox_t*, uint32_t chat_id);
262 carray* mrmailbox_get_fresh_msgs (mrmailbox_t*);
263 void mrmailbox_marknoticed_chat (mrmailbox_t*, uint32_t chat_id);
264 carray* mrmailbox_get_chat_media (mrmailbox_t*, uint32_t chat_id, int msg_type, int or_msg_type);
265 uint32_t mrmailbox_get_next_media (mrmailbox_t*, uint32_t curr_msg_id, int dir);
266 
267 void mrmailbox_archive_chat (mrmailbox_t*, uint32_t chat_id, int archive);
268 void mrmailbox_delete_chat (mrmailbox_t*, uint32_t chat_id);
269 
270 carray* mrmailbox_get_chat_contacts (mrmailbox_t*, uint32_t chat_id);
271 carray* mrmailbox_search_msgs (mrmailbox_t*, uint32_t chat_id, const char* query);
272 
273 mrchat_t* mrmailbox_get_chat (mrmailbox_t*, uint32_t chat_id);
274 
275 
276 /* Handle group chats */
277 uint32_t mrmailbox_create_group_chat (mrmailbox_t*, const char* name);
278 int mrmailbox_is_contact_in_chat (mrmailbox_t*, uint32_t chat_id, uint32_t contact_id);
279 int mrmailbox_add_contact_to_chat (mrmailbox_t*, uint32_t chat_id, uint32_t contact_id);
280 int mrmailbox_remove_contact_from_chat (mrmailbox_t*, uint32_t chat_id, uint32_t contact_id);
281 int mrmailbox_set_chat_name (mrmailbox_t*, uint32_t chat_id, const char* name);
282 int mrmailbox_set_chat_image (mrmailbox_t*, uint32_t chat_id, const char* image);
283 
284 
285 /* Handle messages */
286 char* mrmailbox_get_msg_info (mrmailbox_t*, uint32_t msg_id);
287 void mrmailbox_delete_msgs (mrmailbox_t*, const uint32_t* msg_ids, int msg_cnt);
288 void mrmailbox_forward_msgs (mrmailbox_t*, const uint32_t* msg_ids, int msg_cnt, uint32_t chat_id);
289 void mrmailbox_marknoticed_contact (mrmailbox_t*, uint32_t contact_id);
290 void mrmailbox_markseen_msgs (mrmailbox_t*, const uint32_t* msg_ids, int msg_cnt);
291 void mrmailbox_star_msgs (mrmailbox_t*, const uint32_t* msg_ids, int msg_cnt, int star);
292 mrmsg_t* mrmailbox_get_msg (mrmailbox_t*, uint32_t msg_id);
293 
294 
295 
296 /* Handle contacts */
297 uint32_t mrmailbox_create_contact (mrmailbox_t*, const char* name, const char* addr);
298 int mrmailbox_add_address_book (mrmailbox_t*, const char*);
299 carray* mrmailbox_get_known_contacts (mrmailbox_t*, const char* query);
300 int mrmailbox_get_blocked_count (mrmailbox_t*);
301 carray* mrmailbox_get_blocked_contacts (mrmailbox_t*);
302 void mrmailbox_block_contact (mrmailbox_t*, uint32_t contact_id, int block);
303 char* mrmailbox_get_contact_encrinfo (mrmailbox_t*, uint32_t contact_id);
304 int mrmailbox_delete_contact (mrmailbox_t*, uint32_t contact_id);
305 mrcontact_t* mrmailbox_get_contact (mrmailbox_t*, uint32_t contact_id);
306 
307 
308 /* logging */
309 void mrmailbox_log_error (mrmailbox_t*, int code, const char* msg, ...);
310 void mrmailbox_log_error_if (int* condition, mrmailbox_t*, int code, const char* msg, ...);
311 void mrmailbox_log_warning (mrmailbox_t*, int code, const char* msg, ...);
312 void mrmailbox_log_info (mrmailbox_t*, int code, const char* msg, ...);
313 void mrmailbox_log_vprintf (mrmailbox_t*, int event, int code, const char* msg, va_list);
314 int mrmailbox_get_thread_index (void);
315 
316 
317 /* library private */
318 uint32_t mrmailbox_send_msg_i__ (mrmailbox_t*, mrchat_t*, const mrmsg_t*, time_t);
319 void mrmailbox_connect_to_imap (mrmailbox_t*, mrjob_t*);
320 void mrmailbox_wake_lock (mrmailbox_t*);
321 void mrmailbox_wake_unlock (mrmailbox_t*);
322 int mrmailbox_poke_eml_file (mrmailbox_t*, const char* file);
323 int mrmailbox_is_reply_to_known_message__ (mrmailbox_t*, mrmimeparser_t*);
324 int mrmailbox_is_reply_to_messenger_message__ (mrmailbox_t*, mrmimeparser_t*);
325 time_t mrmailbox_correct_bad_timestamp__ (mrmailbox_t* ths, uint32_t chat_id, uint32_t from_id, time_t desired_timestamp, int is_fresh_msg);
326 void mrmailbox_add_or_lookup_contacts_by_mailbox_list__(mrmailbox_t* ths, struct mailimf_mailbox_list* mb_list, int origin, carray* ids, int* check_self);
327 void mrmailbox_add_or_lookup_contacts_by_address_list__(mrmailbox_t* ths, struct mailimf_address_list* adr_list, int origin, carray* ids, int* check_self);
328 int mrmailbox_get_archived_count__ (mrmailbox_t*);
329 int mrmailbox_reset_tables (mrmailbox_t*, int bits); /* reset tables but leaves server configuration, 1=jobs, 2=e2ee, 8=rest but server config */
330 size_t mrmailbox_get_real_contact_cnt__ (mrmailbox_t*);
331 uint32_t mrmailbox_add_or_lookup_contact__ (mrmailbox_t*, const char* display_name /*can be NULL*/, const char* addr_spec, int origin, int* sth_modified);
332 int mrmailbox_get_contact_origin__ (mrmailbox_t*, uint32_t id, int* ret_blocked);
333 int mrmailbox_is_contact_blocked__ (mrmailbox_t*, uint32_t id);
334 int mrmailbox_real_contact_exists__ (mrmailbox_t*, uint32_t id);
335 int mrmailbox_contact_addr_equals__ (mrmailbox_t*, uint32_t contact_id, const char* other_addr);
336 void mrmailbox_scaleup_contact_origin__ (mrmailbox_t*, uint32_t contact_id, int origin);
337 
338 
339 /* library private: end-to-end-encryption */
340 #define MR_E2EE_DEFAULT_ENABLED 1
341 #define MR_MDNS_DEFAULT_ENABLED 1
342 
343 typedef struct mrmailbox_e2ee_helper_t {
344  int m_encryption_successfull;
345  void* m_cdata_to_free;
346 } mrmailbox_e2ee_helper_t;
347 
348 void mrmailbox_e2ee_encrypt (mrmailbox_t*, const clist* recipients_addr, int e2ee_guaranteed, int encrypt_to_self, struct mailmime* in_out_message, mrmailbox_e2ee_helper_t*);
349 int mrmailbox_e2ee_decrypt (mrmailbox_t*, struct mailmime* in_out_message, int* ret_validation_errors); /* returns 1 if sth. was decrypted, 0 in other cases */
350 void mrmailbox_e2ee_thanks (mrmailbox_e2ee_helper_t*); /* frees data referenced by "mailmime" but not freed by mailmime_free(). After calling mre2ee_unhelp(), in_out_message cannot be used any longer! */
351 int mrmailbox_ensure_secret_key_exists (mrmailbox_t*); /* makes sure, the private key exists, needed only for exporting keys and the case no message was sent before */
352 
353 
354 /*******************************************************************************
355  * Import/export and Tools
356  ******************************************************************************/
357 
358 
359 #define MR_IMEX_CANCEL 0
360 #define MR_IMEX_EXPORT_SELF_KEYS 1
361 #define MR_IMEX_IMPORT_SELF_KEYS 2
362 #define MR_IMEX_EXPORT_BACKUP 11
363 #define MR_IMEX_IMPORT_BACKUP 12
364 #define MR_IMEX_EXPORT_SETUP_MESSAGE 20
365 #define MR_BAK_PREFIX "delta-chat"
366 #define MR_BAK_SUFFIX "bak"
367 void mrmailbox_imex (mrmailbox_t*, int what, const char* param1, const char* setup_code);
368 char* mrmailbox_imex_has_backup (mrmailbox_t*, const char* dir);
369 int mrmailbox_check_password (mrmailbox_t*, const char* pw);
370 char* mrmailbox_create_setup_code (mrmailbox_t*);
371 int mrmailbox_poke_spec (mrmailbox_t*, const char* spec);
372 void mrmailbox_heartbeat (mrmailbox_t*);
373 
374 
375 /* carray tools, already defined are things as
376 unsigned unt carray_count() */
377 uint32_t carray_get_uint32 (carray*, unsigned int index);
378 
379 
380 /* deprecated functions */
381 mrchat_t* mrchatlist_get_chat_by_index (mrchatlist_t*, size_t index); /* deprecated - use mrchatlist_get_chat_id_by_index() */
382 mrmsg_t* mrchatlist_get_msg_by_index (mrchatlist_t*, size_t index); /* deprecated - use mrchatlist_get_msg_id_by_index() */
383 int mrchat_set_draft (mrchat_t*, const char* msg); /* deprecated - use mrmailbox_set_draft() instead */
384 
385 
386 /* library-internal */
387 void mrmailbox_unarchive_chat__ (mrmailbox_t*, uint32_t chat_id);
388 size_t mrmailbox_get_chat_cnt__ (mrmailbox_t*);
389 uint32_t mrmailbox_create_or_lookup_nchat_by_contact_id__(mrmailbox_t*, uint32_t contact_id);
390 uint32_t mrmailbox_lookup_real_nchat_by_contact_id__(mrmailbox_t*, uint32_t contact_id);
391 int mrmailbox_get_total_msg_count__ (mrmailbox_t*, uint32_t chat_id);
392 int mrmailbox_get_fresh_msg_count__ (mrmailbox_t*, uint32_t chat_id);
393 uint32_t mrmailbox_get_last_deaddrop_fresh_msg__(mrmailbox_t*);
394 void mrmailbox_send_msg_to_smtp (mrmailbox_t*, mrjob_t*);
395 void mrmailbox_send_msg_to_imap (mrmailbox_t*, mrjob_t*);
396 int mrmailbox_add_contact_to_chat__ (mrmailbox_t*, uint32_t chat_id, uint32_t contact_id);
397 int mrmailbox_is_contact_in_chat__ (mrmailbox_t*, uint32_t chat_id, uint32_t contact_id);
398 int mrmailbox_get_chat_contact_count__ (mrmailbox_t*, uint32_t chat_id);
399 int mrmailbox_group_explicitly_left__ (mrmailbox_t*, const char* grpid);
400 void mrmailbox_set_group_explicitly_left__ (mrmailbox_t*, const char* grpid);
401 
402 size_t mrmailbox_get_real_msg_cnt__ (mrmailbox_t*); /* the number of messages assigned to real chat (!=deaddrop, !=trash) */
403 size_t mrmailbox_get_deaddrop_msg_cnt__ (mrmailbox_t*);
404 int mrmailbox_rfc724_mid_cnt__ (mrmailbox_t*, const char* rfc724_mid);
405 int mrmailbox_rfc724_mid_exists__ (mrmailbox_t*, const char* rfc724_mid, char** ret_server_folder, uint32_t* ret_server_uid);
406 void mrmailbox_update_server_uid__ (mrmailbox_t*, const char* rfc724_mid, const char* server_folder, uint32_t server_uid);
407 void mrmailbox_update_msg_chat_id__ (mrmailbox_t*, uint32_t msg_id, uint32_t chat_id);
408 void mrmailbox_update_msg_state__ (mrmailbox_t*, uint32_t msg_id, int state);
409 void mrmailbox_delete_msg_on_imap (mrmailbox_t* mailbox, mrjob_t* job);
410 int mrmailbox_mdn_from_ext__ (mrmailbox_t*, uint32_t from_id, const char* rfc724_mid, uint32_t* ret_chat_id, uint32_t* ret_msg_id); /* returns 1 if an event should be send */
411 void mrmailbox_send_mdn (mrmailbox_t*, mrjob_t* job);
412 void mrmailbox_markseen_msg_on_imap (mrmailbox_t* mailbox, mrjob_t* job);
413 void mrmailbox_markseen_mdn_on_imap (mrmailbox_t* mailbox, mrjob_t* job);
414 
415 
416 #ifdef __cplusplus
417 } /* /extern "C" */
418 #endif
419 #endif /* __MRMAILBOX_H__ */
int mrmailbox_add_address_book(mrmailbox_t *mailbox, const char *adr_book)
Add a number of contacts.
Definition: mrmailbox.c:4032
+
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 __MRMAILBOX_H__
24 #define __MRMAILBOX_H__
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 
30 #define MR_VERSION_MAJOR 0
31 #define MR_VERSION_MINOR 9
32 #define MR_VERSION_REVISION 7
33 
34 
137 #include <libetpan/libetpan.h> /* defines uint16_t and carray */
138 #include "mrchatlist.h"
139 #include "mrchat.h"
140 #include "mrmsg.h"
141 #include "mrcontact.h"
142 #include "mrpoortext.h"
143 #include "mrparam.h"
144 #include "mrevent.h"
145 
146 typedef struct mrmailbox_t mrmailbox_t;
147 typedef struct mrimap_t mrimap_t;
148 typedef struct mrsmtp_t mrsmtp_t;
149 typedef struct mrsqlite3_t mrsqlite3_t;
150 typedef struct mrjob_t mrjob_t;
151 typedef struct mrmimeparser_t mrmimeparser_t;
152 
153 
169 typedef uintptr_t (*mrmailboxcb_t) (mrmailbox_t*, int event, uintptr_t data1, uintptr_t data2);
170 
171 
179 typedef struct mrmailbox_t
180 {
181  void* m_userdata;
182  char* m_dbfile;
183  char* m_blobdir;
186  mrsqlite3_t* m_sql;
187  mrimap_t* m_imap;
188  mrsmtp_t* m_smtp;
190  pthread_t m_job_thread;
191  pthread_cond_t m_job_cond;
192  pthread_mutex_t m_job_condmutex;
193  int m_job_condflag;
194  int m_job_do_exit;
196  mrmailboxcb_t m_cb;
198  char* m_os_name;
200  uint32_t m_cmdline_sel_chat_id;
202  int m_wake_lock;
203  pthread_mutex_t m_wake_lock_critical;
205  int m_e2ee_enabled;
207  #define MR_LOG_RINGBUF_SIZE 200
208  pthread_mutex_t m_log_ringbuf_critical;
209  char* m_log_ringbuf[MR_LOG_RINGBUF_SIZE];
211  time_t m_log_ringbuf_times[MR_LOG_RINGBUF_SIZE];
213  int m_log_ringbuf_pos;
215 } mrmailbox_t;
216 
217 
218 /* create/open/connect */
219 mrmailbox_t* mrmailbox_new (mrmailboxcb_t, void* userdata, const char* os_name);
220 void mrmailbox_unref (mrmailbox_t*);
221 
222 int mrmailbox_open (mrmailbox_t*, const char* dbfile, const char* blobdir);
223 void mrmailbox_close (mrmailbox_t*);
224 int mrmailbox_is_open (const mrmailbox_t*);
225 
226 int mrmailbox_set_config (mrmailbox_t*, const char* key, const char* value);
227 char* mrmailbox_get_config (mrmailbox_t*, const char* key, const char* def);
228 int mrmailbox_set_config_int (mrmailbox_t*, const char* key, int32_t value);
229 int32_t mrmailbox_get_config_int (mrmailbox_t*, const char* key, int32_t def);
230 char* mrmailbox_get_blobdir (mrmailbox_t*);
231 char* mrmailbox_get_version_str (void);
232 
233 void mrmailbox_configure_and_connect(mrmailbox_t*);
234 void mrmailbox_configure_cancel (mrmailbox_t*);
235 int mrmailbox_is_configured (mrmailbox_t*);
236 
237 void mrmailbox_connect (mrmailbox_t*);
238 void mrmailbox_disconnect (mrmailbox_t*);
239 
240 int mrmailbox_restore (mrmailbox_t*, time_t seconds_to_restore); /* not really implemented */
241 char* mrmailbox_get_info (mrmailbox_t*);
242 
243 
244 /* Handle chatlists */
245 #define MR_GCL_ARCHIVED_ONLY 0x01
246 #define MR_GCL_NO_SPECIALS 0x02
247 mrchatlist_t* mrmailbox_get_chatlist (mrmailbox_t*, int flags, const char* query);
248 
249 
250 /* Handle chats */
251 uint32_t mrmailbox_create_chat_by_contact_id (mrmailbox_t*, uint32_t contact_id);
252 uint32_t mrmailbox_get_chat_id_by_contact_id (mrmailbox_t*, uint32_t contact_id);
253 
254 uint32_t mrmailbox_send_text_msg (mrmailbox_t*, uint32_t chat_id, const char* text_to_send);
255 uint32_t mrmailbox_send_msg (mrmailbox_t*, uint32_t chat_id, mrmsg_t*);
256 void mrmailbox_set_draft (mrmailbox_t*, uint32_t chat_id, const char*);
257 
258 #define MR_GCM_ADDDAYMARKER 0x01
259 carray* mrmailbox_get_chat_msgs (mrmailbox_t*, uint32_t chat_id, uint32_t flags, uint32_t marker1before);
260 int mrmailbox_get_total_msg_count (mrmailbox_t*, uint32_t chat_id);
261 int mrmailbox_get_fresh_msg_count (mrmailbox_t*, uint32_t chat_id);
262 carray* mrmailbox_get_fresh_msgs (mrmailbox_t*);
263 void mrmailbox_marknoticed_chat (mrmailbox_t*, uint32_t chat_id);
264 carray* mrmailbox_get_chat_media (mrmailbox_t*, uint32_t chat_id, int msg_type, int or_msg_type);
265 uint32_t mrmailbox_get_next_media (mrmailbox_t*, uint32_t curr_msg_id, int dir);
266 
267 void mrmailbox_archive_chat (mrmailbox_t*, uint32_t chat_id, int archive);
268 void mrmailbox_delete_chat (mrmailbox_t*, uint32_t chat_id);
269 
270 carray* mrmailbox_get_chat_contacts (mrmailbox_t*, uint32_t chat_id);
271 carray* mrmailbox_search_msgs (mrmailbox_t*, uint32_t chat_id, const char* query);
272 
273 mrchat_t* mrmailbox_get_chat (mrmailbox_t*, uint32_t chat_id);
274 
275 
276 /* Handle group chats */
277 uint32_t mrmailbox_create_group_chat (mrmailbox_t*, const char* name);
278 int mrmailbox_is_contact_in_chat (mrmailbox_t*, uint32_t chat_id, uint32_t contact_id);
279 int mrmailbox_add_contact_to_chat (mrmailbox_t*, uint32_t chat_id, uint32_t contact_id);
280 int mrmailbox_remove_contact_from_chat (mrmailbox_t*, uint32_t chat_id, uint32_t contact_id);
281 int mrmailbox_set_chat_name (mrmailbox_t*, uint32_t chat_id, const char* name);
282 int mrmailbox_set_chat_image (mrmailbox_t*, uint32_t chat_id, const char* image);
283 
284 
285 /* Handle messages */
286 char* mrmailbox_get_msg_info (mrmailbox_t*, uint32_t msg_id);
287 void mrmailbox_delete_msgs (mrmailbox_t*, const uint32_t* msg_ids, int msg_cnt);
288 void mrmailbox_forward_msgs (mrmailbox_t*, const uint32_t* msg_ids, int msg_cnt, uint32_t chat_id);
289 void mrmailbox_marknoticed_contact (mrmailbox_t*, uint32_t contact_id);
290 void mrmailbox_markseen_msgs (mrmailbox_t*, const uint32_t* msg_ids, int msg_cnt);
291 void mrmailbox_star_msgs (mrmailbox_t*, const uint32_t* msg_ids, int msg_cnt, int star);
292 mrmsg_t* mrmailbox_get_msg (mrmailbox_t*, uint32_t msg_id);
293 
294 
295 /* Handle contacts */
296 uint32_t mrmailbox_create_contact (mrmailbox_t*, const char* name, const char* addr);
297 int mrmailbox_add_address_book (mrmailbox_t*, const char*);
298 carray* mrmailbox_get_known_contacts (mrmailbox_t*, const char* query);
299 int mrmailbox_get_blocked_count (mrmailbox_t*);
300 carray* mrmailbox_get_blocked_contacts (mrmailbox_t*);
301 void mrmailbox_block_contact (mrmailbox_t*, uint32_t contact_id, int block);
302 char* mrmailbox_get_contact_encrinfo (mrmailbox_t*, uint32_t contact_id);
303 int mrmailbox_delete_contact (mrmailbox_t*, uint32_t contact_id);
304 mrcontact_t* mrmailbox_get_contact (mrmailbox_t*, uint32_t contact_id);
305 
306 
307 /* Import/export and Tools */
308 #define MR_IMEX_CANCEL 0
309 #define MR_IMEX_EXPORT_SELF_KEYS 1 /* param1 is a directory where the keys are written to */
310 #define MR_IMEX_IMPORT_SELF_KEYS 2 /* param1 is a directory where the keys are searched in and read from */
311 #define MR_IMEX_EXPORT_BACKUP 11 /* param1 is a directory where the backup is written to */
312 #define MR_IMEX_IMPORT_BACKUP 12 /* param1 is the file with the backup to import */
313 #define MR_IMEX_EXPORT_SETUP_MESSAGE 20 /* param1 is a directory where the setup file is written to */
314 #define MR_BAK_PREFIX "delta-chat"
315 #define MR_BAK_SUFFIX "bak"
316 void mrmailbox_imex (mrmailbox_t*, int what, const char* param1, const char* setup_code);
317 char* mrmailbox_imex_has_backup (mrmailbox_t*, const char* dir);
318 int mrmailbox_check_password (mrmailbox_t*, const char* pw);
319 char* mrmailbox_create_setup_code (mrmailbox_t*);
320 int mrmailbox_poke_spec (mrmailbox_t*, const char* spec);
321 void mrmailbox_heartbeat (mrmailbox_t*);
322 
323 
324 /* logging */
325 void mrmailbox_log_error (mrmailbox_t*, int code, const char* msg, ...);
326 void mrmailbox_log_error_if (int* condition, mrmailbox_t*, int code, const char* msg, ...);
327 void mrmailbox_log_warning (mrmailbox_t*, int code, const char* msg, ...);
328 void mrmailbox_log_info (mrmailbox_t*, int code, const char* msg, ...);
329 void mrmailbox_log_vprintf (mrmailbox_t*, int event, int code, const char* msg, va_list);
330 int mrmailbox_get_thread_index (void);
331 
332 
333 /* error codes */
334 #define MR_ERR_SELF_NOT_IN_GROUP 1
335 #define MR_ERR_NONETWORK 2
336 
337 
338 /* carray tools, already defined are things as
339 unsigned unt carray_count() */
340 uint32_t carray_get_uint32 (carray*, unsigned int index);
341 
342 
343 /* deprecated functions */
344 mrchat_t* mrchatlist_get_chat_by_index (mrchatlist_t*, size_t index); /* deprecated - use mrchatlist_get_chat_id_by_index() */
345 mrmsg_t* mrchatlist_get_msg_by_index (mrchatlist_t*, size_t index); /* deprecated - use mrchatlist_get_msg_id_by_index() */
346 int mrchat_set_draft (mrchat_t*, const char* msg); /* deprecated - use mrmailbox_set_draft() instead */
347 
348 
349 /* library-internal */
350 uint32_t mrmailbox_send_msg_i__ (mrmailbox_t*, mrchat_t*, const mrmsg_t*, time_t);
351 void mrmailbox_connect_to_imap (mrmailbox_t*, mrjob_t*);
352 void mrmailbox_wake_lock (mrmailbox_t*);
353 void mrmailbox_wake_unlock (mrmailbox_t*);
354 int mrmailbox_poke_eml_file (mrmailbox_t*, const char* file);
355 int mrmailbox_is_reply_to_known_message__ (mrmailbox_t*, mrmimeparser_t*);
356 int mrmailbox_is_reply_to_messenger_message__ (mrmailbox_t*, mrmimeparser_t*);
357 time_t mrmailbox_correct_bad_timestamp__ (mrmailbox_t* ths, uint32_t chat_id, uint32_t from_id, time_t desired_timestamp, int is_fresh_msg);
358 void mrmailbox_add_or_lookup_contacts_by_mailbox_list__(mrmailbox_t* ths, struct mailimf_mailbox_list* mb_list, int origin, carray* ids, int* check_self);
359 void mrmailbox_add_or_lookup_contacts_by_address_list__(mrmailbox_t* ths, struct mailimf_address_list* adr_list, int origin, carray* ids, int* check_self);
360 int mrmailbox_get_archived_count__ (mrmailbox_t*);
361 int mrmailbox_reset_tables (mrmailbox_t*, int bits); /* reset tables but leaves server configuration, 1=jobs, 2=e2ee, 8=rest but server config */
362 size_t mrmailbox_get_real_contact_cnt__ (mrmailbox_t*);
363 uint32_t mrmailbox_add_or_lookup_contact__ (mrmailbox_t*, const char* display_name /*can be NULL*/, const char* addr_spec, int origin, int* sth_modified);
364 int mrmailbox_get_contact_origin__ (mrmailbox_t*, uint32_t id, int* ret_blocked);
365 int mrmailbox_is_contact_blocked__ (mrmailbox_t*, uint32_t id);
366 int mrmailbox_real_contact_exists__ (mrmailbox_t*, uint32_t id);
367 int mrmailbox_contact_addr_equals__ (mrmailbox_t*, uint32_t contact_id, const char* other_addr);
368 void mrmailbox_scaleup_contact_origin__ (mrmailbox_t*, uint32_t contact_id, int origin);
369 void mrmailbox_unarchive_chat__ (mrmailbox_t*, uint32_t chat_id);
370 size_t mrmailbox_get_chat_cnt__ (mrmailbox_t*);
371 uint32_t mrmailbox_create_or_lookup_nchat_by_contact_id__ (mrmailbox_t*, uint32_t contact_id);
372 uint32_t mrmailbox_lookup_real_nchat_by_contact_id__ (mrmailbox_t*, uint32_t contact_id);
373 int mrmailbox_get_total_msg_count__ (mrmailbox_t*, uint32_t chat_id);
374 int mrmailbox_get_fresh_msg_count__ (mrmailbox_t*, uint32_t chat_id);
375 uint32_t mrmailbox_get_last_deaddrop_fresh_msg__ (mrmailbox_t*);
376 void mrmailbox_send_msg_to_smtp (mrmailbox_t*, mrjob_t*);
377 void mrmailbox_send_msg_to_imap (mrmailbox_t*, mrjob_t*);
378 int mrmailbox_add_contact_to_chat__ (mrmailbox_t*, uint32_t chat_id, uint32_t contact_id);
379 int mrmailbox_is_contact_in_chat__ (mrmailbox_t*, uint32_t chat_id, uint32_t contact_id);
380 int mrmailbox_get_chat_contact_count__ (mrmailbox_t*, uint32_t chat_id);
381 int mrmailbox_group_explicitly_left__ (mrmailbox_t*, const char* grpid);
382 void mrmailbox_set_group_explicitly_left__ (mrmailbox_t*, const char* grpid);
383 size_t mrmailbox_get_real_msg_cnt__ (mrmailbox_t*); /* the number of messages assigned to real chat (!=deaddrop, !=trash) */
384 size_t mrmailbox_get_deaddrop_msg_cnt__ (mrmailbox_t*);
385 int mrmailbox_rfc724_mid_cnt__ (mrmailbox_t*, const char* rfc724_mid);
386 int mrmailbox_rfc724_mid_exists__ (mrmailbox_t*, const char* rfc724_mid, char** ret_server_folder, uint32_t* ret_server_uid);
387 void mrmailbox_update_server_uid__ (mrmailbox_t*, const char* rfc724_mid, const char* server_folder, uint32_t server_uid);
388 void mrmailbox_update_msg_chat_id__ (mrmailbox_t*, uint32_t msg_id, uint32_t chat_id);
389 void mrmailbox_update_msg_state__ (mrmailbox_t*, uint32_t msg_id, int state);
390 void mrmailbox_delete_msg_on_imap (mrmailbox_t* mailbox, mrjob_t* job);
391 int mrmailbox_mdn_from_ext__ (mrmailbox_t*, uint32_t from_id, const char* rfc724_mid, uint32_t* ret_chat_id, uint32_t* ret_msg_id); /* returns 1 if an event should be send */
392 void mrmailbox_send_mdn (mrmailbox_t*, mrjob_t* job);
393 void mrmailbox_markseen_msg_on_imap (mrmailbox_t* mailbox, mrjob_t* job);
394 void mrmailbox_markseen_mdn_on_imap (mrmailbox_t* mailbox, mrjob_t* job);
395 
396 
397 /* library private: end-to-end-encryption */
398 #define MR_E2EE_DEFAULT_ENABLED 1
399 #define MR_MDNS_DEFAULT_ENABLED 1
400 
401 typedef struct mrmailbox_e2ee_helper_t {
402  int m_encryption_successfull;
403  void* m_cdata_to_free;
404 } mrmailbox_e2ee_helper_t;
405 
406 void mrmailbox_e2ee_encrypt (mrmailbox_t*, const clist* recipients_addr, int e2ee_guaranteed, int encrypt_to_self, struct mailmime* in_out_message, mrmailbox_e2ee_helper_t*);
407 int mrmailbox_e2ee_decrypt (mrmailbox_t*, struct mailmime* in_out_message, int* ret_validation_errors); /* returns 1 if sth. was decrypted, 0 in other cases */
408 void mrmailbox_e2ee_thanks (mrmailbox_e2ee_helper_t*); /* frees data referenced by "mailmime" but not freed by mailmime_free(). After calling mre2ee_unhelp(), in_out_message cannot be used any longer! */
409 int mrmailbox_ensure_secret_key_exists (mrmailbox_t*); /* makes sure, the private key exists, needed only for exporting keys and the case no message was sent before */
410 
411 
412 #ifdef __cplusplus
413 } /* /extern "C" */
414 #endif
415 #endif /* __MRMAILBOX_H__ */
int mrmailbox_add_address_book(mrmailbox_t *mailbox, const char *adr_book)
Add a number of contacts.
Definition: mrmailbox.c:4032
uint32_t mrmailbox_create_group_chat(mrmailbox_t *mailbox, const char *chat_name)
Create a new group chat.
Definition: mrmailbox.c:3344
uint32_t mrmailbox_create_contact(mrmailbox_t *mailbox, const char *name, const char *addr)
Add a single contact.
Definition: mrmailbox.c:3996
uint32_t mrmailbox_send_text_msg(mrmailbox_t *mailbox, uint32_t chat_id, const char *text_to_send)
Send a simple text message to the given chat.
Definition: mrmailbox.c:3112
@@ -164,7 +164,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
diff --git a/docs/html/mrmailbox__internal_8h_source.html b/docs/html/mrmailbox__internal_8h_source.html index 52814918..a24ab125 100644 --- a/docs/html/mrmailbox__internal_8h_source.html +++ b/docs/html/mrmailbox__internal_8h_source.html @@ -92,7 +92,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
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 __MRMAILBOX_INTERNAL_H__
24 #define __MRMAILBOX_INTERNAL_H__
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 
30 /* Includes that are used frequently. This file may also be used to create predefined headers. */
31 #include "mrmailbox.h"
32 #include <stdlib.h>
33 #include <string.h>
34 #include "mrsqlite3.h"
35 #include "mrtools.h"
36 #include "mrstock.h"
37 
38 
39 #ifdef __cplusplus
40 } /* /extern "C" */
41 #endif
42 #endif /* __MRMAILBOX_INTERNAL_H__ */
43 
diff --git a/docs/html/mrmimefactory_8h_source.html b/docs/html/mrmimefactory_8h_source.html index ee7591fe..fd0b4242 100644 --- a/docs/html/mrmimefactory_8h_source.html +++ b/docs/html/mrmimefactory_8h_source.html @@ -95,7 +95,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/mrmimeparser_8h_source.html b/docs/html/mrmimeparser_8h_source.html index b0273d44..133c6793 100644 --- a/docs/html/mrmimeparser_8h_source.html +++ b/docs/html/mrmimeparser_8h_source.html @@ -94,7 +94,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/mrmsg_8h_source.html b/docs/html/mrmsg_8h_source.html index a5f585b8..15125c50 100644 --- a/docs/html/mrmsg_8h_source.html +++ b/docs/html/mrmsg_8h_source.html @@ -111,7 +111,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/mrosnative_8h_source.html b/docs/html/mrosnative_8h_source.html index 7f4a485b..69b31098 100644 --- a/docs/html/mrosnative_8h_source.html +++ b/docs/html/mrosnative_8h_source.html @@ -93,7 +93,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/mrparam_8h_source.html b/docs/html/mrparam_8h_source.html index 5fd62510..900c7b25 100644 --- a/docs/html/mrparam_8h_source.html +++ b/docs/html/mrparam_8h_source.html @@ -101,7 +101,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/mrpgp_8h_source.html b/docs/html/mrpgp_8h_source.html index 43ced568..2e64a7cb 100644 --- a/docs/html/mrpgp_8h_source.html +++ b/docs/html/mrpgp_8h_source.html @@ -93,7 +93,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/mrpoortext_8h_source.html b/docs/html/mrpoortext_8h_source.html index bd692023..315c36a8 100644 --- a/docs/html/mrpoortext_8h_source.html +++ b/docs/html/mrpoortext_8h_source.html @@ -99,7 +99,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/mrsaxparser_8h_source.html b/docs/html/mrsaxparser_8h_source.html index c86acd68..355764e4 100644 --- a/docs/html/mrsaxparser_8h_source.html +++ b/docs/html/mrsaxparser_8h_source.html @@ -92,7 +92,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
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 __MRSAXPARSER_H__
24 #define __MRSAXPARSER_H__
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 
30 typedef void (*mrsaxparser_starttag_cb_t) (void* userdata, const char* tag, char** attr);
31 typedef void (*mrsaxparser_endtag_cb_t) (void* userdata, const char* tag);
32 typedef void (*mrsaxparser_text_cb_t) (void* userdata, const char* text, int len); /* len is only informational, text is already null-terminated */
33 
34 
35 typedef struct mrsaxparser_t
36 {
37  mrsaxparser_starttag_cb_t m_starttag_cb;
38  mrsaxparser_endtag_cb_t m_endtag_cb;
39  mrsaxparser_text_cb_t m_text_cb;
40  void* m_userdata;
41 } mrsaxparser_t;
42 
43 
44 void mrsaxparser_init (mrsaxparser_t*, void* userData);
45 void mrsaxparser_set_tag_handler (mrsaxparser_t*, mrsaxparser_starttag_cb_t, mrsaxparser_endtag_cb_t);
46 void mrsaxparser_set_text_handler (mrsaxparser_t*, mrsaxparser_text_cb_t);
47 
48 void mrsaxparser_parse (mrsaxparser_t*, const char* text);
49 
50 const char* mrattr_find (char** attr, const char* key);
51 
52 
53 /*** library-private **********************************************************/
54 
55 
56 #ifdef __cplusplus
57 } /* /extern "C" */
58 #endif
59 #endif /* __MRSAXPARSER_H__ */
60 
diff --git a/docs/html/mrsimplify_8h_source.html b/docs/html/mrsimplify_8h_source.html index 25944b9e..98e1bbfb 100644 --- a/docs/html/mrsimplify_8h_source.html +++ b/docs/html/mrsimplify_8h_source.html @@ -92,7 +92,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
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 __MRSIMPLIFY_H__
24 #define __MRSIMPLIFY_H__
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 
30 /*** library-private **********************************************************/
31 
32 typedef struct mrsimplify_t
33 {
34  int m_is_forwarded;
35 } mrsimplify_t;
36 
37 
38 mrsimplify_t* mrsimplify_new ();
39 void mrsimplify_unref (mrsimplify_t*);
40 
41 /* Simplify and normalise text: Remove quotes, signatures, unnecessary
42 lineends etc.
43 The data returned from Simplify() must be free()'d when no longer used, private */
44 char* mrsimplify_simplify (mrsimplify_t*, const char* txt_unterminated, int txt_bytes, int is_html);
45 
46 
47 #ifdef __cplusplus
48 } /* /extern "C" */
49 #endif
50 #endif /* __MRSIMPLIFY_H__ */
51 
diff --git a/docs/html/mrsmtp_8h_source.html b/docs/html/mrsmtp_8h_source.html index 5ed6075d..efd4a970 100644 --- a/docs/html/mrsmtp_8h_source.html +++ b/docs/html/mrsmtp_8h_source.html @@ -93,7 +93,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/mrsqlite3_8h_source.html b/docs/html/mrsqlite3_8h_source.html index 0e1156fc..cdde7755 100644 --- a/docs/html/mrsqlite3_8h_source.html +++ b/docs/html/mrsqlite3_8h_source.html @@ -93,7 +93,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/mrstock_8h_source.html b/docs/html/mrstock_8h_source.html index 27d4a739..991bd721 100644 --- a/docs/html/mrstock_8h_source.html +++ b/docs/html/mrstock_8h_source.html @@ -93,7 +93,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/mrtools_8h_source.html b/docs/html/mrtools_8h_source.html index a8005067..1755168d 100644 --- a/docs/html/mrtools_8h_source.html +++ b/docs/html/mrtools_8h_source.html @@ -93,7 +93,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/search/all_1.js b/docs/html/search/all_1.js index 8754dc05..2ea9f4e2 100644 --- a/docs/html/search/all_1.js +++ b/docs/html/search/all_1.js @@ -25,8 +25,6 @@ var searchData= ['m_5fto_5fid',['m_to_id',['../structmrmsg__t.html#ad549fc02587ba284fda2bbecd162b16a',1,'mrmsg_t']]], ['m_5ftype',['m_type',['../structmrchat__t.html#a568c4e6fb9633ffe9a76428db16e0201',1,'mrchat_t::m_type()'],['../structmrmsg__t.html#a3896e269c90cbf0f563ab0848fb44c65',1,'mrmsg_t::m_type()']]], ['m_5fuserdata',['m_userdata',['../structmrmailbox__t.html#a6c557153209e128b69301246dbf9e230',1,'mrmailbox_t']]], - ['mr_5ferr_5fnonetwork',['MR_ERR_NONETWORK',['../mrevent_8h.html#a8e9ffe02dccd563904a22f7e3649fcaa',1,'mrevent.h']]], - ['mr_5ferr_5fself_5fnot_5fin_5fgroup',['MR_ERR_SELF_NOT_IN_GROUP',['../mrevent_8h.html#a7ae155c521b9e661c4bae16333d84d7d',1,'mrevent.h']]], ['mr_5fevent_5fchat_5fmodified',['MR_EVENT_CHAT_MODIFIED',['../mrevent_8h.html#a5ac741b81ec97628f44795600c0e4d4c',1,'mrevent.h']]], ['mr_5fevent_5fconfigure_5fended',['MR_EVENT_CONFIGURE_ENDED',['../mrevent_8h.html#a3be5f7ee95e6d0a8066e7a839f38c30f',1,'mrevent.h']]], ['mr_5fevent_5fconfigure_5fprogress',['MR_EVENT_CONFIGURE_PROGRESS',['../mrevent_8h.html#abb0881d4c7c887b8f371cedc471846b5',1,'mrevent.h']]], diff --git a/docs/html/search/defines_0.js b/docs/html/search/defines_0.js index b81db2c6..bb885cba 100644 --- a/docs/html/search/defines_0.js +++ b/docs/html/search/defines_0.js @@ -1,7 +1,5 @@ var searchData= [ - ['mr_5ferr_5fnonetwork',['MR_ERR_NONETWORK',['../mrevent_8h.html#a8e9ffe02dccd563904a22f7e3649fcaa',1,'mrevent.h']]], - ['mr_5ferr_5fself_5fnot_5fin_5fgroup',['MR_ERR_SELF_NOT_IN_GROUP',['../mrevent_8h.html#a7ae155c521b9e661c4bae16333d84d7d',1,'mrevent.h']]], ['mr_5fevent_5fchat_5fmodified',['MR_EVENT_CHAT_MODIFIED',['../mrevent_8h.html#a5ac741b81ec97628f44795600c0e4d4c',1,'mrevent.h']]], ['mr_5fevent_5fconfigure_5fended',['MR_EVENT_CONFIGURE_ENDED',['../mrevent_8h.html#a3be5f7ee95e6d0a8066e7a839f38c30f',1,'mrevent.h']]], ['mr_5fevent_5fconfigure_5fprogress',['MR_EVENT_CONFIGURE_PROGRESS',['../mrevent_8h.html#abb0881d4c7c887b8f371cedc471846b5',1,'mrevent.h']]], diff --git a/docs/html/structmrchat__t-members.html b/docs/html/structmrchat__t-members.html index 6b802b48..5b14c51b 100644 --- a/docs/html/structmrchat__t-members.html +++ b/docs/html/structmrchat__t-members.html @@ -102,7 +102,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/structmrchat__t.html b/docs/html/structmrchat__t.html index 4ec7de3d..722c227c 100644 --- a/docs/html/structmrchat__t.html +++ b/docs/html/structmrchat__t.html @@ -270,7 +270,7 @@ char *  diff --git a/docs/html/structmrchatlist__t-members.html b/docs/html/structmrchatlist__t-members.html index f872598e..c680d17c 100644 --- a/docs/html/structmrchatlist__t-members.html +++ b/docs/html/structmrchatlist__t-members.html @@ -98,7 +98,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/structmrchatlist__t.html b/docs/html/structmrchatlist__t.html index 01c17e9f..8ce3ae23 100644 --- a/docs/html/structmrchatlist__t.html +++ b/docs/html/structmrchatlist__t.html @@ -333,7 +333,7 @@ Public Attributes diff --git a/docs/html/structmrcontact__t-members.html b/docs/html/structmrcontact__t-members.html index f8d4b358..124b7dd1 100644 --- a/docs/html/structmrcontact__t-members.html +++ b/docs/html/structmrcontact__t-members.html @@ -101,7 +101,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/structmrcontact__t.html b/docs/html/structmrcontact__t.html index 9cc1fb79..b950667b 100644 --- a/docs/html/structmrcontact__t.html +++ b/docs/html/structmrcontact__t.html @@ -235,7 +235,7 @@ char *  diff --git a/docs/html/structmrmailbox__t-members.html b/docs/html/structmrmailbox__t-members.html index 860b778e..075dbc09 100644 --- a/docs/html/structmrmailbox__t-members.html +++ b/docs/html/structmrmailbox__t-members.html @@ -157,7 +157,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/structmrmailbox__t.html b/docs/html/structmrmailbox__t.html index e9d4551f..a445cbe0 100644 --- a/docs/html/structmrmailbox__t.html +++ b/docs/html/structmrmailbox__t.html @@ -2712,7 +2712,7 @@ void *  diff --git a/docs/html/structmrmsg__t-members.html b/docs/html/structmrmsg__t-members.html index ac37c2ac..12a8c9c5 100644 --- a/docs/html/structmrmsg__t-members.html +++ b/docs/html/structmrmsg__t-members.html @@ -111,7 +111,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/structmrmsg__t.html b/docs/html/structmrmsg__t.html index 3d5ffdc9..83b0a7bd 100644 --- a/docs/html/structmrmsg__t.html +++ b/docs/html/structmrmsg__t.html @@ -538,7 +538,7 @@ char *  diff --git a/docs/html/structmrparam__t-members.html b/docs/html/structmrparam__t-members.html index 732c3db5..4aa9c926 100644 --- a/docs/html/structmrparam__t-members.html +++ b/docs/html/structmrparam__t-members.html @@ -99,7 +99,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/structmrparam__t.html b/docs/html/structmrparam__t.html index d2a42069..0833ce19 100644 --- a/docs/html/structmrparam__t.html +++ b/docs/html/structmrparam__t.html @@ -408,7 +408,7 @@ Public Member Functions diff --git a/docs/html/structmrpoortext__t-members.html b/docs/html/structmrpoortext__t-members.html index 106082f3..9b99c5cc 100644 --- a/docs/html/structmrpoortext__t-members.html +++ b/docs/html/structmrpoortext__t-members.html @@ -97,7 +97,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/docs/html/structmrpoortext__t.html b/docs/html/structmrpoortext__t.html index d9b3b8ce..bdd796cf 100644 --- a/docs/html/structmrpoortext__t.html +++ b/docs/html/structmrpoortext__t.html @@ -237,7 +237,7 @@ Public Attributes