GODT-1344: notifications for ApiCertError and NoActiveKeyForRecipient.

Phase 1: added the two event in bridge-gui-tester.
Phase 2: implemented QML notifications.
This commit is contained in:
Xavier Michelon
2022-10-12 09:42:52 +02:00
parent 9035dc6bf7
commit b2efed71d3
6 changed files with 106 additions and 29 deletions

View File

@ -1382,9 +1382,12 @@ void GRPCClient::processMailEvent(MailEvent const &event)
switch (event.event_case())
{
case MailEvent::kNoActiveKeyForRecipientEvent:
this->logTrace("Mail event received: kNoActiveKeyForRecipientEvent.");
emit noActiveKeyForRecipient(QString::fromStdString(event.noactivekeyforrecipientevent().email()));
{
QString const email = QString::fromStdString(event.noactivekeyforrecipientevent().email());
this->logTrace(QString("Mail event received: NoActiveKeyForRecipient (email = %1).").arg(email));
emit noActiveKeyForRecipient(email);
break;
}
case MailEvent::kAddressChanged:
this->logTrace("Mail event received: AddressChanged.");
emit addressChanged(QString::fromStdString(event.addresschanged().address()));