blob: 3bfcfdfe446b0710263ce6ce37445bc3affcacec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
[Build]
* Dependencies:
# ubuntu
$ aptitude install qt4-dev-tools qt4-qmake libqt4-core libqt4-dbus libqt4-xml
* Build instructions
$ mkdir build && cd build
$ cmake ..
$ make
* Call test helper (starts client and server)
$ cd build
$ ../run-test.py
* Generate adapter/proxy
# only needed if changes on Introspections XMLs happend
# source introspection file
# ../position-api/EnhancedPosition/genivi.EnhancedPosition.xml
$ ./gen-dbus.sh
[Documentation on the Web]
* CMake Qt Tutorial:
http://developer.qt.nokia.com/quarterly/view/using_cmake_to_build_qt_projects
* QtDBus Tutorial:
http://www.developer.nokia.com/Community/Wiki/QtDbus_quick_tutorial
* Found afterwards some good example :(
https://github.com/rohityadav/cmakeqt/tree/master/src
* Official example code: Qt, DBus
http://doc.qt.nokia.com/4.7-snapshot/dbus-dbus-chat.html
* Blogs: Complex types mapped to custom types
http://laurii.info/2007/03/dbus-and-qt-programming/
* Techtutorial from KDE (Custom Types in D-Bus)
http://techbase.kde.org/Development/Tutorials/D-Bus/CustomTypes
[qdbusxml2cpp]
* proxy (client):
$ qdbusxml2cpp -v -c DemoIf -p demoif.h:demoif.cpp com.nokia.Demo.xml
* stub (server):
$ qdbusxml2cpp -c DemoIfAdaptor -a demoifadaptor.h:demoifadaptor.cpp com.nokia.Demo.xml
|