forked from quickshell/quickshell
dbus: create property helper classes
Handles asynchronous property updates, part of the work for StatusNotifierItems.
This commit is contained in:
parent
8529a2eb22
commit
8e530b6b77
6 changed files with 530 additions and 0 deletions
22
src/dbus/CMakeLists.txt
Normal file
22
src/dbus/CMakeLists.txt
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue