kwin/org.kde.kwin.Effects.xml
Martin Gräßlin e3271ec2e1 [kwin] Add isEffectSupported method to Effects DBus interface
EffectsHandlerImpl::isEffectsSupported performs the check whether the
effect with the given name is supported by the current compositor.

The check is the following:
* if effect is already loaded, it is supported
* if the effect cannot be found, it is not supported
* if it's a scripted effect, it's always supported
* if it's a built-in effect, we ask BuiltInEffects::supported
* for all other effects we resolve the library and the supported
  method

The idea behind providing this functionality in the DBus interface is
to allow filtering in the effects KCM for the effects which are
supported by the current compositor.

In addition a areEffectsSupported method is added which takes a
list of names and returns a list of bools.

REVIEW: 116665
2014-03-12 08:39:40 +01:00

48 lines
1.8 KiB
XML

<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
<interface name="org.kde.kwin.Effects">
<property name="activeEffects" type="as" access="read"/>
<property name="loadedEffects" type="as" access="read"/>
<property name="listOfEffects" type="as" access="read"/>
<method name="reconfigureEffect">
<arg name="name" type="s" direction="in"/>
</method>
<method name="loadEffect">
<arg type="b" direction="out"/>
<arg name="name" type="s" direction="in"/>
<arg name="checkDefault" type="b" direction="in"/>
</method>
<method name="loadEffect">
<arg type="b" direction="out"/>
<arg name="name" type="s" direction="in"/>
</method>
<method name="toggleEffect">
<arg name="name" type="s" direction="in"/>
</method>
<method name="unloadEffect">
<arg name="name" type="s" direction="in"/>
</method>
<method name="isEffectLoaded">
<arg type="b" direction="out"/>
<arg name="name" type="s" direction="in"/>
</method>
<method name="isEffectSupported">
<arg type="b" direction="out"/>
<arg name="name" type="s" direction="in"/>
</method>
<method name="areEffectsSupported">
<arg type="ab" direction="out"/>
<annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList&lt;bool&gt;"/>
<arg name="names" type="as" direction="in"/>
</method>
<method name="supportInformation">
<arg type="s" direction="out"/>
<arg name="name" type="s" direction="in"/>
</method>
<method name="debug">
<arg type="s" direction="out"/>
<arg name="name" type="s" direction="in"/>
<arg name="name" type="s" direction="in"/>
</method>
</interface>
</node>