dbus: create property helper classes

Handles asynchronous property updates, part of the work for StatusNotifierItems.
This commit is contained in:
outfoxxed 2024-04-04 22:48:58 -07:00
parent 8529a2eb22
commit 8e530b6b77
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
6 changed files with 530 additions and 0 deletions

22
src/dbus/CMakeLists.txt Normal file
View file

@ -0,0 +1,22 @@
set_source_files_properties(org.freedesktop.DBus.Properties.xml PROPERTIES
CLASSNAME DBusPropertiesInterface
#INCLUDE dbus_properties_types.hpp
)
qt_add_dbus_interface(DBUS_INTERFACES
org.freedesktop.DBus.Properties.xml
dbus_properties
)
qt_add_library(quickshell-dbus STATIC
dbusutil.cpp
${DBUS_INTERFACES}
)
# dbus headers
target_include_directories(quickshell-dbus PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_link_libraries(quickshell-dbus PRIVATE ${QT_DEPS})
qs_pch(quickshell-dbus)
#qs_pch(quickshell-dbusplugin)