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.
 

33 lines
887 B

#ifndef PEP_DBUS_MESSAGE_H
#define PEP_DBUS_MESSAGE_H
#include <dbus-c++/types.h>
#include <pEp/message.h>
class pEpDBusMessage : public DBus::Variant
{
public:
explicit pEpDBusMessage();
explicit pEpDBusMessage(message);
message& operator >> (message &m);
message& operator << (message &m);
DBus::Variant& operator << (DBus::Variant &v);
//const DBus::Signature signature() const;
friend DBus::Variant& operator << (DBus::Variant&, const pEpDBusMessage&);
friend DBus::Variant& operator >> (DBus::Variant&, const pEpDBusMessage&);
friend message& operator << (message &m, const pEpDBusMessage&);
friend message& operator >> (message &m, const pEpDBusMessage&);
//friend std::string operator << (DBus::Variant&, const pEpDBusMessage&);
private:
void omnom_pEp_message(message m);
message spit_out_pEp_message();
};
#endif