Advertisement
Guest User

Untitled

a guest
Apr 27th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. #ifndef MAILHTTPCLIENTPROXY_HPP
  2. #define MAILHTTPCLIENTPROXY_HPP
  3.  
  4. #include <QObject>
  5. #include <AbstractMailHttpClient.hpp>
  6.  
  7. #include <gsl/gsl>
  8.  
  9. class MailHttpClientProxy : public AbstractMailHttpClient
  10. {
  11. Q_OBJECT
  12.  
  13. public:
  14. MailHttpClientProxy(gsl::not_null<AbstractMailHttpClient*> client, QObject *parent = nullptr);
  15.  
  16. void sendCreateMailboxRequest(const QString &email,
  17. const QString &password) override;
  18. void sendUploadRsaRequest(const QString &email,
  19. const QString &password,
  20. const QByteArray &rsaKey) override;
  21. void sendUploadEccRequest(const QString &email,
  22. const QString &password,
  23. const QByteArray &eccKey) override;
  24. void sendUploadEcc448Request(const QString &email,
  25. const QString &password,
  26. const QByteArray &ecc448Key) override;
  27. void sendEmailRequest(const QString &from,
  28. const QString &password,
  29. const QString &receiptId,
  30. const QStringList &recipients,
  31. const QByteArray &body) override;
  32. void sendSearchKeysRequest(const QString &email) override;
  33.  
  34. private:
  35. AbstractMailHttpClient *_client;
  36. };
  37.  
  38. #endif // MAILHTTPCLIENTPROXY_HPP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement