~thomas-voss/dbus-cpp/refactor-core-dbus-object

« back to all changes in this revision

Viewing changes to examples/ofono/main.cpp

  • Committer: thomas-voss
  • Date: 2014-04-01 20:53:57 UTC
  • Revision ID: thomas.voss@canonical.com-20140401205357-1n4xf4fue3myva8f
And the major refactorings are in.

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
    std::thread t {std::bind(&dbus::Bus::run, bus)};
98
98
 
99
99
    auto ofono = dbus::Service::use_service(bus, "org.ofono");
100
 
    auto obj = ofono->object_for_path(dbus::types::ObjectPath("/org/ofono"));
 
100
    auto obj = dbus::Object::Stub::create(
 
101
                ofono,
 
102
                dbus::types::ObjectPath("/org/ofono"));
101
103
    
102
104
    /*auto incoming_message_signal = obj->get_signal<org::ofono::MessageManager::Signals::IncomingMessage>();
103
105
    incoming_message_signal->connect([](const std::tuple<std::string, std::map<std::string, dbus::types::Variant<dbus::types::Any>>>& arg)