parent
9374864711
commit
806e836df5
@ -1,5 +1,5 @@
|
||||
all:
|
||||
#rm -f pepadaptop.h main
|
||||
/usr/bin/dbusxx-xml2cpp pep-introspect.xml --adaptor=pep-server-glue.h
|
||||
g++ -I/usr/include -I/usr/include/dbus-c++-1 -I. -ldbus-c++-1 pep-server.cpp -o main
|
||||
/usr/bin/dbusxx-xml2cpp pep-introspect.xml --adaptor=pep-server-glue.h --proxy=pep-client.h
|
||||
g++ -DNDEBUG -I/usr/include -I/usr/include/dbus-c++-1 -I. -Itypes -ldbus-c++-1 types/*.cpp pep-server.cpp -o main
|
||||
|
||||
|
@ -0,0 +1,80 @@
|
||||
|
||||
/*
|
||||
* This file was automatically generated by dbusxx-xml2cpp; DO NOT EDIT!
|
||||
*/
|
||||
|
||||
#ifndef __dbusxx__pep_client_h__PROXY_MARSHAL_H
|
||||
#define __dbusxx__pep_client_h__PROXY_MARSHAL_H
|
||||
|
||||
#include <dbus-c++/dbus.h>
|
||||
#include <cassert>
|
||||
#include "pEpDBusMessage.h"
|
||||
#include "pEpDBusStringList.h"
|
||||
#include "pEpDBusRating.h"
|
||||
#include "pEpDBusEncryptionFlags.h"
|
||||
#include "pEpDBusStatus.h"
|
||||
#include "pEpDBusMessage.h"
|
||||
|
||||
namespace security {
|
||||
|
||||
class pep_proxy
|
||||
: public ::DBus::InterfaceProxy
|
||||
{
|
||||
public:
|
||||
|
||||
pep_proxy()
|
||||
: ::DBus::InterfaceProxy("security.pep")
|
||||
{
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
/* properties exported by this interface */
|
||||
public:
|
||||
|
||||
/* methods exported by this interface,
|
||||
* this functions will invoke the corresponding methods on the remote objects
|
||||
*/
|
||||
void decryptMessage(const pEpDBusMessage& src, const pEpDBusStringList& keylist, const pEpDBusRating& rating, const pEpDBusEncryptionFlags& flags, pEpDBusStatus& status, pEpDBusMessage& dst)
|
||||
{
|
||||
::DBus::CallMessage call;
|
||||
::DBus::MessageIter wi = call.writer();
|
||||
|
||||
::DBus::Variant _src;
|
||||
_src << src;
|
||||
wi << _src;
|
||||
::DBus::Variant _keylist;
|
||||
_keylist << keylist;
|
||||
wi << _keylist;
|
||||
::DBus::Variant _rating;
|
||||
_rating << rating;
|
||||
wi << _rating;
|
||||
::DBus::Variant _flags;
|
||||
_flags << flags;
|
||||
wi << _flags;
|
||||
call.member("decryptMessage");
|
||||
::DBus::Message ret = invoke_method (call);
|
||||
::DBus::MessageIter ri = ret.reader();
|
||||
|
||||
::DBus::Variant _status;
|
||||
ri >> _status;
|
||||
status << _status;
|
||||
::DBus::Variant _dst;
|
||||
ri >> _dst;
|
||||
dst << _dst;
|
||||
}
|
||||
|
||||
|
||||
public:
|
||||
|
||||
/* signal handlers for this interface
|
||||
*/
|
||||
|
||||
private:
|
||||
|
||||
/* unmarshalers (to unpack the DBus message before calling the actual signal handler)
|
||||
*/
|
||||
};
|
||||
|
||||
}
|
||||
#endif //__dbusxx__pep_client_h__PROXY_MARSHAL_H
|
@ -1,16 +1,25 @@
|
||||
<?xml version="1.0" ?>
|
||||
<node name="/security/pep/">
|
||||
<interface name="security.pep">
|
||||
<method name="decrypt_message">
|
||||
<arg direction="in" name="status">
|
||||
<annotation name="org.freedesktop.DBus.Object" value="PEP_STATUS" />
|
||||
<method name="decryptMessage">
|
||||
<arg direction="out" name="status" type="v">
|
||||
<annotation name="org.freedesktop.DBus.Object" value="pEpDBusStatus" />
|
||||
</arg>
|
||||
<arg direction="out" name="dst" type="v">
|
||||
<annotation name="org.freedesktop.DBus.Object" value="pEpDBusMessage" />
|
||||
</arg>
|
||||
<arg direction="in" name="src" type="v">
|
||||
<annotation name="org.freedesktop.DBus.Object" value="pEpDBusMessage" />
|
||||
</arg>
|
||||
<arg direction="in" name="keylist" type="v">
|
||||
<annotation name="org.freedesktop.DBus.Object" value="pEpDBusStringList" />
|
||||
</arg>
|
||||
<arg direction="in" name="rating" type="v">
|
||||
<annotation name="org.freedesktop.DBus.Object" value="pEpDBusRating" />
|
||||
</arg>
|
||||
<arg direction="in" name="flags" type="v">
|
||||
<annotation name="org.freedesktop.DBus.Object" value="pEpDBusEncryptionFlags" />
|
||||
</arg>
|
||||
<!--
|
||||
<arg direction="in" type="b" name="src" />
|
||||
<arg direction="out" type="b" name="dst" />
|
||||
<arg direction="out" type="b" name="rating" />
|
||||
<arg direction="out" type="(b)" name="flags" />
|
||||
-->
|
||||
</method>
|
||||
</interface>
|
||||
</node>
|
||||
|
@ -0,0 +1,5 @@
|
||||
#include "pEpDBusEncryptionFlags.h"
|
||||
|
||||
pEpDBusEncryptionFlags::pEpDBusEncryptionFlags() {}
|
||||
|
||||
DBus::Variant& operator<<(DBus::Variant&, const pEpDBusEncryptionFlags&) {}
|
@ -0,0 +1,13 @@
|
||||
#ifndef PEP_DBUS_ENCRYPTION_FLAG_H
|
||||
#define PEP_DBUS_ENCRYPTION_FLAG_H
|
||||
|
||||
#include <dbus-c++/types.h>
|
||||
|
||||
class pEpDBusEncryptionFlags : public DBus::Variant
|
||||
{
|
||||
public:
|
||||
pEpDBusEncryptionFlags();
|
||||
friend DBus::Variant& operator<<(DBus::Variant&, const pEpDBusEncryptionFlags&);
|
||||
};
|
||||
|
||||
#endif
|
@ -0,0 +1,6 @@
|
||||
#include "pEpDBusMessage.h"
|
||||
|
||||
pEpDBusMessage::pEpDBusMessage() {}
|
||||
|
||||
DBus::Variant& operator<<(DBus::Variant&, const pEpDBusMessage&) {}
|
||||
|
@ -0,0 +1,13 @@
|
||||
#ifndef PEP_DBUS_MESSAGE_H
|
||||
#define PEP_DBUS_MESSAGE_H
|
||||
|
||||
#include <dbus-c++/types.h>
|
||||
|
||||
class pEpDBusMessage : public DBus::Variant
|
||||
{
|
||||
public:
|
||||
pEpDBusMessage();
|
||||
friend DBus::Variant& operator<<(DBus::Variant&, const pEpDBusMessage&);
|
||||
};
|
||||
|
||||
#endif
|
@ -0,0 +1,6 @@
|
||||
#include "pEpDBusRating.h"
|
||||
|
||||
pEpDBusRating::pEpDBusRating() {}
|
||||
|
||||
DBus::Variant& operator<<(DBus::Variant&, const pEpDBusRating&) {}
|
||||
|
@ -0,0 +1,13 @@
|
||||
#ifndef PEP_DBUS_RATING_H
|
||||
#define PEP_DBUS_RATING_H
|
||||
|
||||
#include <dbus-c++/types.h>
|
||||
|
||||
class pEpDBusRating : public DBus::Variant
|
||||
{
|
||||
public:
|
||||
pEpDBusRating();
|
||||
friend DBus::Variant& operator<<(DBus::Variant&, const pEpDBusRating&);
|
||||
};
|
||||
|
||||
#endif
|
@ -0,0 +1,5 @@
|
||||
#include "pEpDBusStatus.h"
|
||||
|
||||
pEpDBusStatus::pEpDBusStatus() {}
|
||||
|
||||
DBus::Variant& operator<<(DBus::Variant&, const pEpDBusStatus&) {}
|
@ -0,0 +1,13 @@
|
||||
#ifndef PEP_DBUS_STATUS_H
|
||||
#define PEP_DBUS_STATUS_H
|
||||
|
||||
#include <dbus-c++/types.h>
|
||||
|
||||
class pEpDBusStatus : public DBus::Variant
|
||||
{
|
||||
public:
|
||||
pEpDBusStatus();
|
||||
friend DBus::Variant& operator<<(DBus::Variant&, const pEpDBusStatus&);
|
||||
};
|
||||
|
||||
#endif
|
@ -0,0 +1,5 @@
|
||||
#include "pEpDBusStringList.h"
|
||||
|
||||
pEpDBusStringList::pEpDBusStringList() {}
|
||||
|
||||
DBus::Variant& operator<<(DBus::Variant&, const pEpDBusStringList&) {}
|
@ -0,0 +1,13 @@
|
||||
#ifndef PEP_DBUS_STRING_LIST_H
|
||||
#define PEP_DBUS_STRING_LIST_H
|
||||
|
||||
#include <dbus-c++/types.h>
|
||||
|
||||
class pEpDBusStringList : public DBus::Variant
|
||||
{
|
||||
public:
|
||||
pEpDBusStringList();
|
||||
friend DBus::Variant& operator<<(DBus::Variant&, const pEpDBusStringList&);
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Reference in new issue