Files
pilotclient/samples/miscdbus
2024-11-16 21:40:55 +01:00
..
2024-11-16 21:40:55 +01:00
2024-11-16 21:40:55 +01:00
2024-11-16 21:40:55 +01:00

# SPDX-FileCopyrightText: Copyright (C) swift Project Community / Contributors
# SPDX-License-Identifier: CC0-1.0

Starting: dbus-daemon.exe --session
- blocks CMD (sometimes daemon continues to run when pressing CTRL/C)
- does not start without directory session.d, i.e. ..\Qt\Qt5.1.0DBus\qtbase\etc\dbus-1\session.d

!!! The includes are set in the qmake file, there are the header files
!!! which are used in the interface
qdbuscpp2xml testservice.h -x misc_cpp2xml.dll -o MiscTest.Testservice.xml
qdbuscpp2xml datacontext.h -x misc_cpp2xml.dll -o MiscTest.Datacontext.xml
Set search path for plugins: env.var. QT_PLUGIN_PATH

Done automatically (qmake), but if required manually
Interface: qdbusxml2cpp swiftbus.testservice.xml -p itestservice
Adaptor: qdbusxml2cpp swiftbus.testservice.xml -a atestservice

-- Removed after changing to "handwritten" interface

# Causes nmake to run qdbusxml2cpp to automatically generate the dbus adaptor and interface classes,
# then automatically adds them to the sources to compile
# DBUS_ADAPTORS += MiscTest.Testservice.xml MiscTest.Datacontext.xml
# DBUS_INTERFACES += MiscTest.Testservice.xml MiscTest.Datacontext.xml
# DBUS_INTERFACES += MiscTest.Datacontext.xml
# QDBUSXML2CPP_INTERFACE_HEADER_FLAGS = -i misc/miscallvalueclasses.h
# QDBUSXML2CPP_ADAPTOR_HEADER_FLAGS = -i misc/miscallvalueclasses.h