2
* Copyright © 2015 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 3 as
6
* published by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
* Authored by: Andreas Pokorny <andreas.pokorny@canonical.com>
19
#ifndef USC_DBUS_CONNECTION_THREAD_H_
20
#define USC_DBUS_CONNECTION_THREAD_H_
22
#include "dbus_connection_handle.h"
23
#include "dbus_event_loop.h"
30
class DBusConnectionThread
33
DBusConnectionThread(std::string const& address);
34
~DBusConnectionThread();
35
DBusConnectionHandle const& connection() const;
36
DBusEventLoop & loop();
39
DBusConnectionHandle dbus_connection;
40
DBusEventLoop dbus_event_loop;
41
std::thread dbus_loop_thread;