1 // Copyright (c) Benjamin Kietzman (github.com/bkietz)
2 //
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 
6 #ifndef DBUS_ENDPOINT_HPP
7 #define DBUS_ENDPOINT_HPP
8 
9 #include <dbus/dbus.h>
10 #include <dbus/element.hpp>
11 #include <dbus/message.hpp>
12 
13 namespace dbus {
14 
15 class endpoint
16 {
17   string process_name_;
18   string path_;
19   string interface_;
20 
21 public:
22   endpoint(
23       const string& process_name,
24       const string& path,
25       const string& interface)
26     : process_name_(process_name),
27       path_(path),
28       interface_(interface)
29   {
30   }
31 
32   const string& get_path() const
33   {
34     return path_;
35   }
36 
37   const string& get_interface() const
38   {
39     return interface_;
40   }
41 
42   const string& get_process_name() const
43   {
44     return process_name_;
45   }
46 
47 };
48 
49 } // namespace dbus
50 
51 #endif // DBUS_ENDPOINT_HPP
52