#include <offlinemsgengine.h>
Definition at line 37 of file offlinemsgengine.h.
◆ CompletionFn
◆ OfflineMsgEngine()
OfflineMsgEngine::OfflineMsgEngine |
( |
| ) |
|
|
default |
◆ addSentCoreMessage()
Add a message which has been saved to history, and which has been sent to the peer.
OfflineMsgEngine will track this message's receipt. If the friend goes offline then comes back before the receipt is received, OfflineMsgEngine will also resend the message, updating history and chatlog once received.
- Parameters
-
[in] | receipt | the toxcore message ID, corresponding to expected receipt ID |
[in] | messageID | database RowId of the message, used to eventually mark messages as received in history |
[in] | msg | chat message line in the chatlog, used to eventually set the message's receieved timestamp |
Definition at line 74 of file offlinemsgengine.cpp.
◆ addSentExtendedMessage()
◆ addUnsentMessage()
void OfflineMsgEngine::addUnsentMessage |
( |
Message const & |
message, |
|
|
CompletionFn |
completionCallback |
|
) |
| |
Add a message which has been saved to history, but not sent yet to the peer.
OfflineMsgEngine will send this message once the friend becomes online again, then track its receipt, updating history and chatlog once received.
- Parameters
-
[in] | messageID | database RowId of the message, used to eventually mark messages as received in history |
[in] | msg | chat message line in the chatlog, used to eventually set the message's receieved timestamp |
Definition at line 58 of file offlinemsgengine.cpp.
◆ onExtendedReceiptReceived
◆ onReceiptReceived
void OfflineMsgEngine::onReceiptReceived |
( |
ReceiptNum |
receipt | ) |
|
|
slot |
Notification that the message is now delivered.
- Parameters
-
[in] | receipt | Toxcore message ID which the receipt is for. |
Definition at line 37 of file offlinemsgengine.cpp.
◆ removeAllMessages()
◆ extendedReceiptResolver
◆ mutex
CompatibleRecursiveMutex OfflineMsgEngine::mutex |
|
private |
◆ receiptResolver
◆ unsentMessages
The documentation for this class was generated from the following files: