add echo_ecore example

This commit is contained in:
Andreas Volz 2011-11-17 12:01:38 +01:00
parent 4ac8b072e3
commit 2185408cfa
19 changed files with 2467 additions and 1 deletions

View file

@ -0,0 +1,32 @@
#ifndef __DEMO_ECHO_SERVER_H
#define __DEMO_ECHO_SERVER_H
#include <dbus-c++/dbus.h>
#include <dbus-c++/ecore-integration.h>
#include <Ecore.h>
#include "echo-server-glue.h"
class EchoServer
: public org::freedesktop::DBus::EchoDemo_adaptor,
public DBus::IntrospectableAdaptor,
public DBus::ObjectAdaptor
{
public:
EchoServer(DBus::Connection &connection);
int32_t Random();
std::string Hello(const std::string &name);
DBus::Variant Echo(const DBus::Variant &value);
std::vector< uint8_t > Cat(const std::string &file);
int32_t Sum(const std::vector<int32_t> & ints);
std::map< std::string, std::string > Info();
};
#endif//__DEMO_ECHO_SERVER_H