f4c7e12ea6
Summary: Added primitive support for the mpriscontrol plugin on Windows by simulating VK_MEDIA key presses. I took a look into `ISystemMediaTransportControls`, but there doesn't seem to query it since it's per app. Leaving simulating key presses our only option for now. Completes T10000 Reviewers: kdeconnect, #kde_connect, albertvaka Reviewed By: #kde_connect, albertvaka Subscribers: albertvaka Tags: #kde_connect, #windows Maniphest Tasks: T10000 Differential Revision: https://phabricator.kde.org/D17702
29 lines
No EOL
718 B
CMake
29 lines
No EOL
718 B
CMake
if(WIN32)
|
|
set(kdeconnect_mpriscontrol_SRCS
|
|
mpriscontrolplugin-win.cpp
|
|
)
|
|
else()
|
|
set(kdeconnect_mpriscontrol_SRCS
|
|
mpriscontrolplugin.cpp
|
|
)
|
|
|
|
qt5_add_dbus_interface(
|
|
kdeconnect_mpriscontrol_SRCS
|
|
mprisdbusinterface.xml
|
|
mprisdbusinterface
|
|
)
|
|
|
|
qt5_add_dbus_interface(
|
|
kdeconnect_mpriscontrol_SRCS
|
|
propertiesInterface.xml
|
|
propertiesdbusinterface
|
|
)
|
|
endif()
|
|
|
|
kdeconnect_add_plugin(kdeconnect_mpriscontrol JSON kdeconnect_mpriscontrol.json SOURCES ${kdeconnect_mpriscontrol_SRCS})
|
|
|
|
if(WIN32)
|
|
target_link_libraries(kdeconnect_mpriscontrol kdeconnectcore)
|
|
else()
|
|
target_link_libraries(kdeconnect_mpriscontrol Qt5::DBus kdeconnectcore)
|
|
endif() |