Updated dbus API. Now it sends a signal with every capture, it may be captureFailed or a captureTaken which contains the raw image bytes in png format. You have to add an id to the screenshot calls so it will be returned as a way to know the origin of the signal.
79 lines
2.7 KiB
XML
79 lines
2.7 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.dharkael.Flameshot">
|
|
|
|
<!--
|
|
graphicCapture:
|
|
@path: the path where the screenshot will be saved. When the argument is empty the program will ask for a path graphically.
|
|
@delay: delay time in milliseconds.
|
|
@id: identificator of the call.
|
|
|
|
Open the user interface used to capture the screen. Sends a captureTaken signal with the raw image after closing the GUI
|
|
due to a capture taken. It could send a captureFailed signal if the screenshot cant be retrieved.
|
|
-->
|
|
<method name="graphicCapture">
|
|
<arg name="path" type="s" direction="in"/>
|
|
<arg name="delay" type="i" direction="in"/>
|
|
<arg name="id" type="i" direction="in"/>
|
|
</method>
|
|
|
|
<!--
|
|
fullScreenRaw:
|
|
@path: the path where the screenshot will be saved. When the argument is empty the program will ask for a path graphically.
|
|
@toClipboard: Whether to copy the screenshot to clipboard or not.
|
|
@delay: delay time in milliseconds, both return the @id defined in the call of this method.
|
|
@id: identificator of the call.
|
|
|
|
Takes a screenshot of the whole screen and sends a captureTaken signal with the raw image or a captureFailed signal.
|
|
-->
|
|
<method name="fullScreen">
|
|
<arg name="path" type="s" direction="in"/>
|
|
<arg name="toClipboard" type="b" direction="in"/>
|
|
<arg name="delay" type="i" direction="in"/>
|
|
<arg name="id" type="i" direction="in"/>
|
|
</method>
|
|
|
|
<!--
|
|
openConfig:
|
|
|
|
Opens the configuration window.
|
|
-->
|
|
<method name="openConfig">
|
|
<annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/>
|
|
</method>
|
|
|
|
<!--
|
|
trayIconEnabled:
|
|
@enabled: The new state fot the trayIcon.
|
|
|
|
Enable or disable the trayIcon.
|
|
-->
|
|
<method name="trayIconEnabled">
|
|
<arg name="enabled" type="b" direction="in"/>
|
|
<annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/>
|
|
</method>
|
|
|
|
<!--
|
|
captureTaken:
|
|
@id: identificator of the call.
|
|
@rawImage: raw image in PNG format.
|
|
|
|
Successful capture signal returning the image.
|
|
-->
|
|
<signal name="captureTaken">
|
|
<arg name="id" type="i" direction="out"/>
|
|
<arg name="rawImage" type="ay" direction="out"/>
|
|
</signal>
|
|
|
|
<!--
|
|
captureFailed:
|
|
@id: identificator of the call.
|
|
|
|
Whenever the capture fails.
|
|
-->
|
|
<signal name="captureFailed">
|
|
<arg name="id" type="i" direction="out"/>
|
|
</signal>
|
|
</interface>
|
|
</node>
|