Commit 0f79d46f15370b2087646bbda7c7914a4e340f83
- Diff rendering mode:
- inline
- side by side
daemon/org.kde.Synaptiks.xml
(4 / 0)
|   | |||
| 9 | 9 | <method name="touchpadNotAvailableMessage"> | |
| 10 | 10 | <arg type="s" direction="out"/> | |
| 11 | 11 | </method> | |
| 12 | <method name="builtConfiguration"> | ||
| 13 | <arg type="a{sv}" direction="out"/> | ||
| 14 | <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="QVariantMap"/> | ||
| 15 | </method> | ||
| 12 | 16 | </interface> | |
| 13 | 17 | </node> |
daemon/synaptiksdaemon.cpp
(10 / 0)
|   | |||
| 384 | 384 | } | |
| 385 | 385 | } | |
| 386 | 386 | ||
| 387 | QVariantMap SynaptiksDaemon::builtConfiguration() const { | ||
| 388 | QVariantMap config; | ||
| 389 | config["version"] = SYNAPTIKS_VERSION; | ||
| 390 | #ifdef HAVE_XINPUT2 | ||
| 391 | config["xinput2"] = true; | ||
| 392 | #else /* HAVE_XINPUT2 */ | ||
| 393 | config["xinput2"] = false; | ||
| 394 | #endif /* HAVE_XINPUT2 */ | ||
| 395 | return config; | ||
| 396 | } | ||
| 387 | 397 | ||
| 388 | 398 | void SynaptiksDaemon::setTouchpadProperty(const char *name, | |
| 389 | 399 | const QVariant &value) { |
daemon/synaptiksdaemon.h
(14 / 0)
|   | |||
| 116 | 116 | */ | |
| 117 | 117 | Q_SCRIPTABLE QString touchpadNotAvailableMessage() const; | |
| 118 | 118 | ||
| 119 | /** | ||
| 120 | * @brief Return the build configuration of synaptiks. | ||
| 121 | * | ||
| 122 | * Exported over D-Bus. | ||
| 123 | * | ||
| 124 | * The return value is a map, currently containing the following | ||
| 125 | * keys: | ||
| 126 | * | ||
| 127 | * @li @c "version": The version as QString | ||
| 128 | * @li @c "xinput2": A boolean indicating, whether XInput2 support | ||
| 129 | * is enabled | ||
| 130 | */ | ||
| 131 | Q_SCRIPTABLE QVariantMap builtConfiguration() const; | ||
| 132 | |||
| 119 | 133 | private Q_SLOTS: | |
| 120 | 134 | /** | |
| 121 | 135 | * @brief Show the current state of the touchpad. |

