~laney/telephony-service/humanity-not-gnome

« back to all changes in this revision

Viewing changes to approver/main.cpp

  • Committer: CI Train Bot
  • Author(s): Tiago Salem Herrmann
  • Date: 2015-01-16 10:27:56 UTC
  • mfrom: (989.1.9 fix-1398427)
  • Revision ID: ci-train-bot@canonical.com-20150116102756-79cmbxy3n9lvdov6
Expose HandleMediaKey(bool doubleClick) to DBus. Fixes: #1398427
Approved by: Michał Sawicz, Gustavo Pichorim Boiko

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    qputenv("UBUNTU_PLATFORM_API_BACKEND", "touch_mirclient");
59
59
#endif
60
60
 
61
 
    // register the approver
62
 
    Approver *approver = new Approver();
63
 
    QObject::connect(TelepathyHelper::instance(), &TelepathyHelper::setupReady, [approver]() {
 
61
    QObject::connect(TelepathyHelper::instance(), &TelepathyHelper::setupReady, []() {
 
62
        // register the approver
 
63
        TelepathyHelper::instance()->registerChannelObserver("TelephonyServiceObserver");
 
64
        Approver *approver = new Approver();
64
65
        TelepathyHelper::instance()->registerClient(approver, "TelephonyServiceApprover");
65
 
        TelepathyHelper::instance()->registerChannelObserver("TelephonyServiceObserver");
66
66
    });
67
67
 
68
68
    return app.exec();