DBus interface in order to connect DBus applications to the p≡p engine.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
668 B

  1. #ifndef PEP_DBUS_ADAPTER_H
  2. #define PEP_DBUS_ADAPTER_H
  3. #ifdef HAVE_CONFIG_H
  4. #include <config.h>
  5. #endif
  6. #include <unistd.h>
  7. #include <stdlib.h>
  8. #include <stdio.h>
  9. #include <limits.h>
  10. #include <iostream>
  11. #include <vector>
  12. #include <pEp/pEpEngine.h>
  13. #include <pEp/message_cache.hh>
  14. #include <pEp/mime.h>
  15. #include "pep-server-glue.h"
  16. namespace pEp {
  17. class pEpDBusAdapter
  18. : public security::pep_adaptor
  19. {
  20. public:
  21. pEpDBusAdapter();
  22. ~pEpDBusAdapter();
  23. // Message API
  24. void decrypt_message(const std::string& src, int32_t& status, std::string& dst, std::vector< std::string >& keylist, int32_t& flags);
  25. private:
  26. PEP_SESSION mSession;
  27. };
  28. }
  29. #endif