org.dharkael.Flameshot.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
  2. <node>
  3. <interface name="org.dharkael.Flameshot">
  4. <!--
  5. graphicCapture:
  6. @path: the path where the screenshot will be saved. When the argument is empty the program will ask for a path graphically.
  7. @delay: delay time in milliseconds.
  8. @id: identificator of the call.
  9. Open the user interface used to capture the screen. Sends a captureTaken signal with the raw image after closing the GUI
  10. due to a capture taken. It could send a captureFailed signal if the screenshot can't be retrieved.
  11. -->
  12. <method name="graphicCapture">
  13. <arg name="path" type="s" direction="in"/>
  14. <arg name="delay" type="i" direction="in"/>
  15. <arg name="id" type="i" direction="in"/>
  16. </method>
  17. <!--
  18. fullScreen:
  19. @path: the path where the screenshot will be saved. When the argument is empty the program will ask for a path graphically.
  20. @toClipboard: Whether to copy the screenshot to clipboard or not.
  21. @delay: delay time in milliseconds, both return the @id defined in the call of this method.
  22. @id: identificator of the call.
  23. Takes a screenshot of the whole screen and sends a captureTaken signal with the raw image or a captureFailed signal.
  24. -->
  25. <method name="fullScreen">
  26. <arg name="path" type="s" direction="in"/>
  27. <arg name="toClipboard" type="b" direction="in"/>
  28. <arg name="delay" type="i" direction="in"/>
  29. <arg name="id" type="i" direction="in"/>
  30. </method>
  31. <!--
  32. captureScreen:
  33. @number: number of the screen to be captured.
  34. @path: the path where the screenshot will be saved. When the argument is empty the program will ask for a path graphically.
  35. @toClipboard: Whether to copy the screenshot to clipboard or not.
  36. @delay: delay time in milliseconds, both return the @id defined in the call of this method.
  37. @id: identificator of the call.
  38. Takes a screenshot of the whole screen and sends a captureTaken signal with the raw image or a captureFailed signal.
  39. -->
  40. <method name="captureScreen">
  41. <arg name="number" type="i" direction="in"/>
  42. <arg name="path" type="s" direction="in"/>
  43. <arg name="toClipboard" type="b" direction="in"/>
  44. <arg name="delay" type="i" direction="in"/>
  45. <arg name="id" type="i" direction="in"/>
  46. </method>
  47. <!--
  48. openConfig:
  49. Opens the configuration window.
  50. -->
  51. <method name="openConfig">
  52. <annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/>
  53. </method>
  54. <!--
  55. trayIconEnabled:
  56. @enabled: The new state for the trayIcon.
  57. Enable or disable the trayIcon.
  58. -->
  59. <method name="trayIconEnabled">
  60. <arg name="enabled" type="b" direction="in"/>
  61. <annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/>
  62. </method>
  63. <!--
  64. autostartEnabled:
  65. @enabled: The new state for the autostart.
  66. Enable or disable the autostart of the program.
  67. -->
  68. <method name="autostartEnabled">
  69. <arg name="enabled" type="b" direction="in"/>
  70. <annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/>
  71. </method>
  72. <!--
  73. captureTaken:
  74. @id: identificator of the call.
  75. @rawImage: raw image in PNG format.
  76. Successful capture signal returning the image.
  77. -->
  78. <signal name="captureTaken">
  79. <arg name="id" type="i" direction="out"/>
  80. <arg name="rawImage" type="ay" direction="out"/>
  81. </signal>
  82. <!--
  83. captureFailed:
  84. @id: identificator of the call.
  85. Whenever the capture fails.
  86. -->
  87. <signal name="captureFailed">
  88. <arg name="id" type="i" direction="out"/>
  89. </signal>
  90. </interface>
  91. </node>