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.

32 lines
663 B

  1. #ifndef PEP_DBUS_SERVER_H
  2. #define PEP_DBUS_SERVER_H
  3. #include <dbus-c++/dbus.h>
  4. #include <pEp/message_cache.hh>
  5. #include "pep-server-glue.h"
  6. struct _pEpSession;
  7. namespace pEp {
  8. class Server
  9. : public security::pep_adaptor,
  10. public DBus::IntrospectableAdaptor,
  11. public DBus::ObjectAdaptor
  12. {
  13. public:
  14. Server(DBus::Connection &connection);
  15. ~Server();
  16. // Message API
  17. void decryptMessage(const pEpDBusMessage& src, const pEpDBusStringList& keylist, const pEpDBusRating& rating,
  18. const pEpDBusEncryptionFlags& flags, pEpDBusStatus& status, pEpDBusMessage& dst);
  19. private:
  20. struct _pEpSession* mSession;
  21. };
  22. }
  23. #endif//__DEMO_ASYNC_SERVER_H