mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
a5c38428e3
current LC API first. No idea if it's workable w/o doing the other direction the way Koos did, but I figure it's better than trying to get a few thousand of untested LoC with completely new APIs working (and may be perhaps backportable), especially since I did a lot of the work before and can adapt it. This commit does: - Update the SDK headers for some of the new functions/enums - Handle the LC requests in the part, and forward them via DBus to the viewer - Similarly, have the viewer properly unpack and pass to the scripting engine - The scripting code for now merely does some API initialization, no actual work. svn path=/trunk/KDE/kdebase/apps/; revision=1116993
66 lines
2.1 KiB
XML
66 lines
2.1 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.nsplugins.Instance">
|
|
<method name="shutdown">
|
|
</method>
|
|
<method name="setupWindow">
|
|
<arg name="winId" type="i" direction="in"/>
|
|
<arg name="w" type="i" direction="in"/>
|
|
<arg name="h" type="i" direction="in"/>
|
|
</method>
|
|
<method name="resizePlugin">
|
|
<arg name="pluginWinId" type="i" direction="in"/>
|
|
<arg name="w" type="i" direction="in"/>
|
|
<arg name="h" type="i" direction="in"/>
|
|
</method>
|
|
<method name="javascriptResult">
|
|
<arg name="id" type="i" direction="in"/>
|
|
<arg name="result" type="s" direction="in"/>
|
|
</method>
|
|
<method name="gotFocusIn">
|
|
</method>
|
|
<method name="gotFocusOut">
|
|
</method>
|
|
|
|
|
|
<!-- Live connect stuff. We use 't' (uint64) for objids, to map
|
|
the LiveCOnnectExtension's ambiguous ulong.
|
|
|
|
Results are encoded as:
|
|
struct NSLiveConnectResult {
|
|
bool success;
|
|
int type;
|
|
quint64 objid;
|
|
QString value;
|
|
};
|
|
|
|
So (bits)
|
|
-->
|
|
<method name="lcGet">
|
|
<annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="NSLiveConnectResult"/>
|
|
<arg type="(bits)" direction="out"/>
|
|
<arg name="objid" type="t" />
|
|
<arg name="field" type="s" />
|
|
</method>
|
|
|
|
<method name="lcPut">
|
|
<arg type="b" direction="out"/>
|
|
<arg name="objid" type="t" />
|
|
<arg name="field" type="s" />
|
|
<arg name="value" type="s" />
|
|
</method>
|
|
|
|
<method name="lcCall">
|
|
<annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="NSLiveConnectResult"/>
|
|
<arg type="(bits)" direction="out"/>
|
|
<arg name="objid" type="t" />
|
|
<arg name="field" type="s" />
|
|
<arg name="args" type="as" />
|
|
</method>
|
|
|
|
<method name="lcUnregister">
|
|
<arg name="objid" type="t" />
|
|
</method>
|
|
</interface>
|
|
</node>
|
|
<!--- kate: indent-width 4; replace-tabs on; tab-width 4; space-indent on; -->
|