summaryrefslogtreecommitdiff
path: root/main.cpp
blob: d112d28ec5b44af3bc798f3bc2e3a16a9b7b76f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <QtCore/QCoreApplication>
#include <QtCore/QDebug>
#include <QtDBus/QDBusConnection>

#include "fakeproperty.h"
#include "fakepropertyadaptor.h"

int main(int argc, char *argv[])
{
	QCoreApplication a(argc, argv);
	QDBusConnection bus = QDBusConnection::sessionBus();
	FakeProperty *property = new FakeProperty("Screen.TopEdge", QString("top"));
	FakePropertyAdaptor *adaptor = new FakePropertyAdaptor(property);

	bus.registerObject(adaptor->objectPath(), property);
	bus.registerService("com.javispedro.glol");

    return a.exec();
}