Dbus interface work in progress

This commit is contained in:
Albert Vaca 2013-06-25 18:06:51 +02:00
parent 6e53c5b9c7
commit 55eacba63b
2 changed files with 15 additions and 0 deletions

8
daemon/device.cpp Normal file
View file

@ -0,0 +1,8 @@
#include "device.h"
Device::Device(const QString& id, const QString& name) {
mDeviceId = id;
mDeviceName = name;
QDBusConnection::sessionBus().registerObject("module/androidshine/Devices/"+id, this);
}

7
kcm.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
#Source bashrc to define environment variables
#http://techbase.kde.org/Getting_Started/Build/Environment
. ~/.bashrc
kcmshell4 kdeconnect-kcm &