#include #include #include #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(); }