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:
Gioacchino Mazzurco 2017-02-21 12:02:27 +01:00
parent fcdb3d6c88
commit 1376b9f031
5 changed files with 455 additions and 300 deletions

View file

@ -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