~canonical-platform-qa/autopilot-qt/wily_fix-unittests

« back to all changes in this revision

Viewing changes to driver/dbus_adaptor.cpp

  • Committer: Tarmac
  • Author(s): Thomi Richards
  • Date: 2013-11-05 20:56:34 UTC
  • mfrom: (73.1.2 trunk-add-version-print)
  • Revision ID: tarmac-20131105205634-urg2ayd03yeumdsi
Make Qt backend report wire protocol version when it starts. Fixes: https://bugs.launchpad.net/bugs/1248293.

Approved by Christopher Lee, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
#include <QDebug>
19
19
 
 
20
QString AutopilotAdaptor::WIRE_PROTO_VERSION("1.4");
20
21
/*
21
22
 * Implementation of adaptor class AutopilotAdaptor
22
23
 */
51
52
void AutopilotAdaptor::GetVersion(const QDBusMessage &message)
52
53
{
53
54
    QDBusMessage reply =  message.createReply();
54
 
    reply << QVariant(QString("1.4"));
 
55
    reply << QVariant(AutopilotAdaptor::WIRE_PROTO_VERSION);
55
56
    QDBusConnection::sessionBus().send(reply);
56
57
}
57
58