diff --git a/docs/html/index.html b/docs/html/index.html
index b89f5173..d29b4141 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:
+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:
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/mrevent_8h.html b/docs/html/mrevent_8h.html
index 25b3336e..e86565fa 100644
--- a/docs/html/mrevent_8h.html
+++ b/docs/html/mrevent_8h.html
@@ -120,29 +120,23 @@ Macros
#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). More...
|
|
-
-#define | MR_EVENT_CHAT_MODIFIED 2020 |
- | group name/image changed or members added/removed
|
+#define | MR_EVENT_CHAT_MODIFIED 2020 |
+ | Group name/image changed or members added/removed. More...
|
|
-
-#define | MR_EVENT_CONTACTS_CHANGED 2030 |
- | contact(s) created, renamed, blocked or deleted
|
+#define | MR_EVENT_CONTACTS_CHANGED 2030 |
+ | Contact(s) created, renamed, blocked or deleted. More...
|
|
-
-#define | MR_EVENT_CONFIGURE_ENDED 2040 |
- | connection state changed, data1=0:failed-not-connected, 1:configured-and-connected
|
+#define | MR_EVENT_CONFIGURE_ENDED 2040 |
+ | Configurartion enden. More...
|
|
-
-#define | MR_EVENT_CONFIGURE_PROGRESS 2041 |
- | data1=percent
|
+#define | MR_EVENT_CONFIGURE_PROGRESS 2041 |
+ | Inform about the configuration progress. More...
|
|
-
-#define | MR_EVENT_IMEX_ENDED 2050 |
- | mrmailbox_imex() done: data1=0:failed, 1=success
|
+#define | MR_EVENT_IMEX_ENDED 2050 |
+ | Import/export done. More...
|
|
-
-#define | MR_EVENT_IMEX_PROGRESS 2051 |
- | data1=permille
|
+#define | MR_EVENT_IMEX_PROGRESS 2051 |
+ | Inform about the import/export progress. More...
|
|
#define | MR_EVENT_IMEX_FILE_WRITTEN 2052 |
| file written, event may be needed to make the file public to some system services. More...
|
@@ -171,6 +165,94 @@ Macros
The following constants are used as events reported to the callback given to mrmailbox_new().
+
+
+
+
+
+ #define MR_EVENT_CHAT_MODIFIED 2020 |
+
+
+
+
+
Group name/image changed or members added/removed.
+
- Parameters
-
+
+ data1 | chat_id |
+ data2 | 0 |
+
+
+
+
- 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
+
+
+
+
+
+
+
+
+ #define MR_EVENT_CONFIGURE_PROGRESS 2041 |
+
+
+
+
+
Inform about the configuration progress.
+
As we want to get rid of the threads in the core, this event may be deleted.
- Parameters
-
+
+ data1 | permille |
+ data2 | 0 |
+
+
+
+
- Returns
- 0
+
+
+
+
+
+
+
+
+ #define MR_EVENT_CONTACTS_CHANGED 2030 |
+
+
+
+
+
Contact(s) created, renamed, blocked or deleted.
+
- Parameters
-
+
+
+
+
- Returns
- 0
+
+
+
@@ -191,6 +273,28 @@ Macros
- Returns
- 0
+
+
+
+
+
+
+
+ #define MR_EVENT_IMEX_ENDED 2050 |
+
+
+
+
+
Import/export done.
+
You'll get this event from a call to mrmailbox_imex(). As we want to get rid of the threads in the core, this event may be deleted.
- Parameters
-
+
+ data1 | 0:failed, 1=success |
+ data2 | 0 |
+
+
+
+
- Returns
- 0
+
@@ -206,6 +310,28 @@ Macros
file written, event may be needed to make the file public to some system services.
data1=file name, data2=mime type
+
+
+
+
+
+
+
+ #define MR_EVENT_IMEX_PROGRESS 2051 |
+
+
+
+
+
Inform about the import/export progress.
+
- Parameters
-
+
+ data1 | permille |
+ data2 | 0 |
+
+
+
+
- Returns
- 0
+
diff --git a/docs/html/mrevent_8h_source.html b/docs/html/mrevent_8h_source.html
index 65ce5472..be90241b 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. 44 #define MR_EVENT_INFO 100 55 #define MR_EVENT_WARNING 300 65 #define MR_EVENT_ERROR 400 76 #define MR_EVENT_MSGS_CHANGED 2000 86 #define MR_EVENT_INCOMING_MSG 2005 96 #define MR_EVENT_MSG_DELIVERED 2010 106 #define MR_EVENT_MSG_READ 2015 110 #define MR_EVENT_CHAT_MODIFIED 2020 114 #define MR_EVENT_CONTACTS_CHANGED 2030 119 #define MR_EVENT_CONFIGURE_ENDED 2040 123 #define MR_EVENT_CONFIGURE_PROGRESS 2041 128 #define MR_EVENT_IMEX_ENDED 2050 132 #define MR_EVENT_IMEX_PROGRESS 2051 137 #define MR_EVENT_IMEX_FILE_WRITTEN 2052 145 #define MR_EVENT_IS_ONLINE 2080 150 #define MR_EVENT_GET_STRING 2091 155 #define MR_EVENT_GET_QUANTITY_STRING 2092 160 #define MR_EVENT_HTTP_GET 2100 164 #define MR_EVENT_WAKE_LOCK 2110
+Go to the documentation of this file. 44 #define MR_EVENT_INFO 100 55 #define MR_EVENT_WARNING 300 65 #define MR_EVENT_ERROR 400 76 #define MR_EVENT_MSGS_CHANGED 2000 86 #define MR_EVENT_INCOMING_MSG 2005 96 #define MR_EVENT_MSG_DELIVERED 2010 106 #define MR_EVENT_MSG_READ 2015 115 #define MR_EVENT_CHAT_MODIFIED 2020 124 #define MR_EVENT_CONTACTS_CHANGED 2030 134 #define MR_EVENT_CONFIGURE_ENDED 2040 144 #define MR_EVENT_CONFIGURE_PROGRESS 2041 154 #define MR_EVENT_IMEX_ENDED 2050 163 #define MR_EVENT_IMEX_PROGRESS 2051 168 #define MR_EVENT_IMEX_FILE_WRITTEN 2052 176 #define MR_EVENT_IS_ONLINE 2080 181 #define MR_EVENT_GET_STRING 2091 186 #define MR_EVENT_GET_QUANTITY_STRING 2092 191 #define MR_EVENT_HTTP_GET 2100 195 #define MR_EVENT_WAKE_LOCK 2110