mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
p3GxsMails expose proper async API
Moved testing code to TestGxsMailClientService RsGxsMailPresignedReceipt and RsGxsMailItem inherit RsGxsMailBaseItem p3GxsMails::sendMail(...) check paramenters and return immediately Added GxsMailsClient::notifySendMailStatus(...) to notify sent mails status Added p3GxsMails::querySendMailStatus(...) so clients can query status
This commit is contained in:
parent
fcdb3d6c88
commit
1376b9f031
5 changed files with 455 additions and 300 deletions
|
@ -1500,7 +1500,8 @@ int RsServer::StartupRetroShare()
|
|||
pqih->addService(gxsmails_ns, true);
|
||||
mConfigMgr->addConfiguration("gxs_mail.cfg", gxsmails_ns);
|
||||
|
||||
new TestGxsMailClientService(*mGxsMails);
|
||||
TestGxsMailClientService* tgms =
|
||||
new TestGxsMailClientService(*mGxsMails, *mGxsIdService);
|
||||
# endif // RS_GXS_MAIL
|
||||
|
||||
// remove pword from memory
|
||||
|
@ -1827,6 +1828,7 @@ int RsServer::StartupRetroShare()
|
|||
# ifdef RS_GXS_MAIL
|
||||
startServiceThread(mGxsMails, "gxs mail");
|
||||
startServiceThread(gxsmails_ns, "gxs mail ns");
|
||||
tgms->start("Gxs Mail Test Service");
|
||||
# endif // RS_GXS_MAIL
|
||||
|
||||
#endif // RS_ENABLE_GXS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue