diff --git a/docs/html/functions.html b/docs/html/functions.html
index 8a011234..49a2961b 100644
--- a/docs/html/functions.html
+++ b/docs/html/functions.html
@@ -241,7 +241,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
: mrmailbox_t
mrmailbox_configure_and_connect()
-: mrmailbox_t
+: mrmailbox_t
mrmailbox_configure_cancel()
: mrmailbox_t
diff --git a/docs/html/functions_func.html b/docs/html/functions_func.html
index dac0ff2d..4c01f9aa 100644
--- a/docs/html/functions_func.html
+++ b/docs/html/functions_func.html
@@ -158,7 +158,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
: mrmailbox_t
mrmailbox_configure_and_connect()
-: mrmailbox_t
+: mrmailbox_t
mrmailbox_configure_cancel()
: mrmailbox_t
diff --git a/docs/html/globals.html b/docs/html/globals.html
index 17044df7..7934fa1e 100644
--- a/docs/html/globals.html
+++ b/docs/html/globals.html
@@ -91,9 +91,6 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
MR_EVENT_CHAT_MODIFIED
: mrevent.h
-MR_EVENT_CONFIGURE_ENDED
-: mrevent.h
-
MR_EVENT_CONFIGURE_PROGRESS
: mrevent.h
diff --git a/docs/html/globals_defs.html b/docs/html/globals_defs.html
index 69a399bb..626cf01a 100644
--- a/docs/html/globals_defs.html
+++ b/docs/html/globals_defs.html
@@ -91,9 +91,6 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
MR_EVENT_CHAT_MODIFIED
: mrevent.h
-MR_EVENT_CONFIGURE_ENDED
-: mrevent.h
-
MR_EVENT_CONFIGURE_PROGRESS
: mrevent.h
diff --git a/docs/html/index.html b/docs/html/index.html
index d29b4141..e1fbf1f8 100644
--- a/docs/html/index.html
+++ b/docs/html/index.html
@@ -83,7 +83,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
Let's start.
First of all, you have to define a function that is called by the library on specific events (eg. when the configuration is done or when fresh messages arrive). Your function should look like the following:
#include <mrmailbox.h>
uintptr_t my_delta_handler(
mrmailbox_t* nb,
int event, uintptr_t data1, uintptr_t data2)
{
return 0;
}
After that, you can create and configure a mrmailbox_t object easily as follows:
-If this works, you'll receive the event MR_EVENT_CONFIGURE_ENDED with data1
set to 1
- and you can start sending your first message:
+After that, you can send your first message:
Now, go to the testing address (bob) and you should have received a normal email. Answer this email in any email program with "Got it!" and you will get the message from delta as follows:
for( size_t i = 0; i < carray_count(msglist); i++ )
{
uint32_t msg_id = carray_get_uint32(msglist, i);
printf(
"message %i: %s\n", i+1, msg->
m_text);
}
This will output the following two lines:
Message 1: Hi, here is my first message!
Message 2: Got it!
I think, you got the idea. For further reading, please dive into the mrmailbox_t class.
diff --git a/docs/html/mrchat_8h_source.html b/docs/html/mrchat_8h_source.html
index 4634eff3..97eec32f 100644
--- a/docs/html/mrchat_8h_source.html
+++ b/docs/html/mrchat_8h_source.html
@@ -90,7 +90,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
52 #define MR_CHAT_ID_DEADDROP 1 53 #define MR_CHAT_ID_TO_DEADDROP 2 54 #define MR_CHAT_ID_TRASH 3 55 #define MR_CHAT_ID_MSGS_IN_CREATION 4 56 #define MR_CHAT_ID_STARRED 5 57 #define MR_CHAT_ID_ARCHIVED_LINK 6 58 #define MR_CHAT_ID_LAST_SPECIAL 9 70 #define MR_CHAT_TYPE_UNDEFINED 0 71 #define MR_CHAT_TYPE_NORMAL 100 72 #define MR_CHAT_TYPE_GROUP 120 93 int mrchat_load_from_db__ (
mrchat_t*, uint32_t
id);
94 int mrchat_update_param__ (
mrchat_t*);
96 #define MR_CHAT_PREFIX "Chat:" 97 #define MR_CHATS_FOLDER "Chats" int m_type
Chat type.
Definition: mrchat.h:69
-
An object representing a single mailbox.
Definition: mrmailbox.h:179
+
An object representing a single mailbox.
Definition: mrmailbox.h:178
void mrchat_unref(mrchat_t *chat)
Free a chat object.
Definition: mrchat.c:65
char * m_draft_text
NULL if unset.
Definition: mrchat.h:77
mrmailbox_t * m_mailbox
!= NULL
Definition: mrchat.h:78
diff --git a/docs/html/mrchatlist_8h_source.html b/docs/html/mrchatlist_8h_source.html
index 66215e75..34ccedc1 100644
--- a/docs/html/mrchatlist_8h_source.html
+++ b/docs/html/mrchatlist_8h_source.html
@@ -92,7 +92,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
23 #ifndef __MRCHATLIST_H__ 24 #define __MRCHATLIST_H__ 47 #define MR_CHATLIST_IDS_PER_RESULT 2 49 carray* m_chatNlastmsg_ids;
62 int mrchatlist_load_from_db__ (
mrchatlist_t*,
int listflags,
const char* query);
mrmailbox_t * m_mailbox
The mailbox, the chatlist belongs to.
Definition: mrchatlist.h:44
An object representing a single chatlist in memory.
Definition: mrchatlist.h:42
mrpoortext_t * mrchatlist_get_summary(mrchatlist_t *chatlist, size_t index, mrchat_t *chat)
Get a summary for a chatlist index.
Definition: mrchatlist.c:205
-
An object representing a single mailbox.
Definition: mrmailbox.h:179
+
An object representing a single mailbox.
Definition: mrmailbox.h:178
void mrchatlist_empty(mrchatlist_t *chatlist)
Empty a chatlist object.
Definition: mrchatlist.c:83
uint32_t mrchatlist_get_msg_id(mrchatlist_t *chatlist, size_t index)
Get a single message ID of a chatlist.
Definition: mrchatlist.c:155
An object representing text with some attributes.
Definition: mrpoortext.h:35
diff --git a/docs/html/mrevent_8h.html b/docs/html/mrevent_8h.html
index 6e6c581a..4a15ef3b 100644
--- a/docs/html/mrevent_8h.html
+++ b/docs/html/mrevent_8h.html
@@ -126,11 +126,8 @@ Macros
#define | MR_EVENT_CONTACTS_CHANGED 2030 |
| Contact(s) created, renamed, blocked or deleted. More...
|
|
-
#define | MR_EVENT_CONFIGURE_ENDED 2040 |
-
| Configurartion enden. More...
|
-
|
#define | MR_EVENT_CONFIGURE_PROGRESS 2041 |
-
| Inform about the configuration progress started by mrmailbox_configure_and_connect(). More...
|
+
| Inform about the configuration progress started by mrmailbox_configure_and_connect(). More...
|
|
#define | MR_EVENT_IMEX_ENDED 2050 |
| Import/export done. More...
|
@@ -181,29 +178,6 @@ Macros
- Returns
- 0
-
-
-
-
-
-
-
- #define MR_EVENT_CONFIGURE_ENDED 2040 |
-
-
-
-
-
Configurartion enden.
-
You'll get this event from a call to mrmailbox_configure_and_connect()
-
- Parameters
-
-
- data1 | 0=failed-not-connected, 1=configured-and-connected |
- data2 | 0 |
-
-
-
-
- Returns
- 0
-
@@ -216,7 +190,7 @@ Macros
-
Inform about the configuration progress started by mrmailbox_configure_and_connect().
+
Inform about the configuration progress started by mrmailbox_configure_and_connect().
As we want to get rid of the threads in the core, this event may be deleted.
- Parameters
-
diff --git a/docs/html/mrevent_8h_source.html b/docs/html/mrevent_8h_source.html
index 61294e00..88bfe171 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. 49 #define MR_EVENT_INFO 100 63 #define MR_EVENT_WARNING 300 76 #define MR_EVENT_ERROR 400 89 #define MR_EVENT_MSGS_CHANGED 2000 102 #define MR_EVENT_INCOMING_MSG 2005 115 #define MR_EVENT_MSG_DELIVERED 2010 128 #define MR_EVENT_MSG_READ 2015 140 #define MR_EVENT_CHAT_MODIFIED 2020 152 #define MR_EVENT_CONTACTS_CHANGED 2030 165 #define MR_EVENT_CONFIGURE_ENDED 2040 178 #define MR_EVENT_CONFIGURE_PROGRESS 2041 191 #define MR_EVENT_IMEX_ENDED 2050 203 #define MR_EVENT_IMEX_PROGRESS 2051 220 #define MR_EVENT_IMEX_FILE_WRITTEN 2052 239 #define MR_EVENT_IS_OFFLINE 2081 253 #define MR_EVENT_GET_STRING 2091 270 #define MR_EVENT_GET_QUANTITY_STRING 2092 284 #define MR_EVENT_HTTP_GET 2100 299 #define MR_EVENT_WAKE_LOCK 2110
+Go to the documentation of this file. 49 #define MR_EVENT_INFO 100 63 #define MR_EVENT_WARNING 300 76 #define MR_EVENT_ERROR 400 89 #define MR_EVENT_MSGS_CHANGED 2000 102 #define MR_EVENT_INCOMING_MSG 2005 115 #define MR_EVENT_MSG_DELIVERED 2010 128 #define MR_EVENT_MSG_READ 2015 140 #define MR_EVENT_CHAT_MODIFIED 2020 152 #define MR_EVENT_CONTACTS_CHANGED 2030 165 #define MR_EVENT_CONFIGURE_PROGRESS 2041 178 #define MR_EVENT_IMEX_ENDED 2050 190 #define MR_EVENT_IMEX_PROGRESS 2051 207 #define MR_EVENT_IMEX_FILE_WRITTEN 2052 226 #define MR_EVENT_IS_OFFLINE 2081 240 #define MR_EVENT_GET_STRING 2091 257 #define MR_EVENT_GET_QUANTITY_STRING 2092 271 #define MR_EVENT_HTTP_GET 2100 286 #define MR_EVENT_WAKE_LOCK 2110