File: echo-server.h

package info (click to toggle)
dbus-c%2B%2B 0.9.0-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,872 kB
  • sloc: sh: 10,179; cpp: 7,702; makefile: 359; xml: 335; ansic: 110
file content (29 lines) | stat: -rw-r--r-- 616 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef __DEMO_ECHO_SERVER_H
#define __DEMO_ECHO_SERVER_H

#include <dbus-c++/dbus.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