Commit 0f79d46f15370b2087646bbda7c7914a4e340f83

  • avatar
  • swiesner <swiesner @283d02a7-25f6-0310…ecb5cbfe19da.>
  • Sun Jun 13 13:03:10 CEST 2010
Added DBus method to query built-time configuration

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/playground/utils/synaptiks@1137523 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
  
99 <method name="touchpadNotAvailableMessage">
1010 <arg type="s" direction="out"/>
1111 </method>
12 <method name="builtConfiguration">
13 <arg type="a{sv}" direction="out"/>
14 <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="QVariantMap"/>
15 </method>
1216 </interface>
1317</node>
  
384384 }
385385}
386386
387QVariantMap 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}
387397
388398void SynaptiksDaemon::setTouchpadProperty(const char *name,
389399 const QVariant &value) {
  
116116 */
117117 Q_SCRIPTABLE QString touchpadNotAvailableMessage() const;
118118
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
119133 private Q_SLOTS:
120134 /**
121135 * @brief Show the current state of the touchpad.