~thomas-voss/unity-system-compositor/fallback-gracefully-if-hw-api-is-missing-take-2

« back to all changes in this revision

Viewing changes to src/dbus_connection_thread.h

  • Committer: CI Train Bot
  • Author(s): CI Train Bot, Kevin DuBois, Alexandros Frantzis
  • Date: 2016-01-21 17:58:56 UTC
  • mfrom: (200.45.12 0.3)
  • Revision ID: ci-train-bot@canonical.com-20160121175856-m9rosowob03a105o
ReleaseĀ 0.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#ifndef USC_DBUS_CONNECTION_THREAD_H_
20
20
#define USC_DBUS_CONNECTION_THREAD_H_
21
21
 
22
 
#include "dbus_connection_handle.h"
23
 
#include "dbus_event_loop.h"
24
 
 
25
22
#include <thread>
26
23
 
27
24
namespace usc
28
25
{
29
26
 
 
27
class DBusEventLoop;
30
28
class DBusConnectionThread
31
29
{
32
30
public:
33
 
    DBusConnectionThread(std::string const& address);
 
31
    DBusConnectionThread(std::shared_ptr<DBusEventLoop> const& thread);
34
32
    ~DBusConnectionThread();
35
 
    DBusConnectionHandle const& connection() const;
36
33
    DBusEventLoop & loop();
37
34
 
38
35
private:
39
 
    DBusConnectionHandle dbus_connection;
40
 
    DBusEventLoop dbus_event_loop;
 
36
    std::shared_ptr<DBusEventLoop> dbus_event_loop;
41
37
    std::thread dbus_loop_thread;
42
38
};
43
39