diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-09-11 00:22:17 +0200 |
---|---|---|
committer | Javier <javier@pcjavier.(none)> | 2011-09-11 00:22:17 +0200 |
commit | ff57a31b95c48d75e49641177a8805193ea7ddaf (patch) | |
tree | 6ce607bcc4813bc8fbd15f841754a4a77f013e3d /main.cpp | |
download | glol-ff57a31b95c48d75e49641177a8805193ea7ddaf.tar.gz glol-ff57a31b95c48d75e49641177a8805193ea7ddaf.zip |
Initial import.
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..d112d28 --- /dev/null +++ b/main.cpp @@ -0,0 +1,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(); +} |