~mterry/+junk/u8.2

« back to all changes in this revision

Viewing changes to plugins/Unity/DashCommunicator/dbusdashcommunicatorservice.cpp

  • Committer: Michael Terry
  • Date: 2014-11-17 14:56:04 UTC
  • mfrom: (1317.1.118 unity8)
  • Revision ID: michael.terry@canonical.com-20141117145604-96dn9p5nwkifq2f4
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include <QDebug>
22
22
 
23
23
DBusDashCommunicatorService::DBusDashCommunicatorService(QObject *parent):
24
 
    QObject(parent)
 
24
    UnityDBusObject("/com/canonical/UnityDash", "com.canonical.UnityDash", false, parent)
25
25
{
26
 
    QDBusConnection connection = QDBusConnection::sessionBus();
27
 
 
28
 
    connection.registerService("com.canonical.UnityDash");
29
 
    connection.registerObject("/com/canonical/UnityDash", this, QDBusConnection::ExportScriptableSlots);
30
26
}
31
27
 
32
28
DBusDashCommunicatorService::~DBusDashCommunicatorService()
33
29
{
34
30
}
35
31
 
36
 
void DBusDashCommunicatorService::SetCurrentScope(const QString &scopeId, bool animate, bool isSwipe)
 
32
void DBusDashCommunicatorService::SetCurrentScope(int index, bool animate, bool isSwipe)
37
33
{
38
 
    Q_EMIT setCurrentScopeRequested(scopeId, animate, isSwipe);
 
34
    Q_EMIT setCurrentScopeRequested(index, animate, isSwipe);
39
35
}