| Ed Tanous | c9b5521 | 2017-06-12 13:25:51 -0700 | [diff] [blame] | 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 | string process_name_; | 
|  | 17 | string path_; | 
|  | 18 | string interface_; | 
|  | 19 |  | 
|  | 20 | public: | 
|  | 21 | endpoint(const string& process_name, const string& path, | 
|  | 22 | const string& interface) | 
|  | 23 | : process_name_(process_name), path_(path), interface_(interface) {} | 
|  | 24 |  | 
|  | 25 | const string& get_path() const { return path_; } | 
|  | 26 |  | 
|  | 27 | const string& get_interface() const { return interface_; } | 
|  | 28 |  | 
|  | 29 | const string& get_process_name() const { return process_name_; } | 
|  | 30 | }; | 
|  | 31 |  | 
|  | 32 | }  // namespace dbus | 
|  | 33 |  | 
|  | 34 | #endif  // DBUS_ENDPOINT_HPP |