StatusNotifierItem.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <!-- Based on:
  2. https://invent.kde.org/frameworks/knotifications/-/blob/master/src/org.kde.StatusNotifierItem.xml
  3. -->
  4. <interface name="org.kde.StatusNotifierItem">
  5. <property name="Category" type="s" access="read"/>
  6. <property name="Id" type="s" access="read"/>
  7. <property name="Title" type="s" access="read"/>
  8. <property name="Status" type="s" access="read"/>
  9. <property name="WindowId" type="i" access="read"/>
  10. <!-- An additional path to add to the theme search path to find the icons specified above. -->
  11. <property name="IconThemePath" type="s" access="read"/>
  12. <property name="Menu" type="o" access="read"/>
  13. <property name="ItemIsMenu" type="b" access="read"/>
  14. <!-- main icon -->
  15. <!-- names are preferred over pixmaps -->
  16. <property name="IconName" type="s" access="read"/>
  17. <!--struct containing width, height and image data-->
  18. <property name="IconPixmap" type="a(iiay)" access="read">
  19. <annotation name="org.qtproject.QtDBus.QtTypeName" value="KDbusImageVector"/>
  20. </property>
  21. <property name="OverlayIconName" type="s" access="read"/>
  22. <property name="OverlayIconPixmap" type="a(iiay)" access="read">
  23. <annotation name="org.qtproject.QtDBus.QtTypeName" value="KDbusImageVector"/>
  24. </property>
  25. <!-- Requesting attention icon -->
  26. <property name="AttentionIconName" type="s" access="read"/>
  27. <!--same definition as image-->
  28. <property name="AttentionIconPixmap" type="a(iiay)" access="read">
  29. <annotation name="org.qtproject.QtDBus.QtTypeName" value="KDbusImageVector"/>
  30. </property>
  31. <property name="AttentionMovieName" type="s" access="read"/>
  32. <!-- tooltip data -->
  33. <!--(iiay) is an image-->
  34. <!-- We disable this as we don't support tooltip, so no need to go through it
  35. <property name="ToolTip" type="(sa(iiay)ss)" access="read">
  36. <annotation name="org.qtproject.QtDBus.QtTypeName" value="KDbusToolTipStruct"/>
  37. </property>
  38. -->
  39. <!-- interaction: the systemtray wants the application to do something -->
  40. <method name="ContextMenu">
  41. <!-- we're passing the coordinates of the icon, so the app knows where to put the popup window -->
  42. <arg name="x" type="i" direction="in"/>
  43. <arg name="y" type="i" direction="in"/>
  44. </method>
  45. <method name="Activate">
  46. <arg name="x" type="i" direction="in"/>
  47. <arg name="y" type="i" direction="in"/>
  48. </method>
  49. <method name="ProvideXdgActivationToken">
  50. <arg name="token" type="s" direction="in"/>
  51. </method>
  52. <method name="SecondaryActivate">
  53. <arg name="x" type="i" direction="in"/>
  54. <arg name="y" type="i" direction="in"/>
  55. </method>
  56. <method name="XAyatanaSecondaryActivate">
  57. <arg name="timestamp" type="u" direction="in"/>
  58. </method>
  59. <method name="Scroll">
  60. <arg name="delta" type="i" direction="in"/>
  61. <arg name="orientation" type="s" direction="in"/>
  62. </method>
  63. <!-- Signals: the client wants to change something in the status
  64. <signal name="NewTitle">
  65. </signal>
  66. <signal name="NewIcon">
  67. </signal>
  68. <signal name="NewAttentionIcon">
  69. </signal>
  70. <signal name="NewOverlayIcon">
  71. </signal>
  72. -->
  73. <!-- We disable this as we don't support tooltip, so no need to go through it
  74. <signal name="NewToolTip">
  75. </signal>
  76. -->
  77. <!--
  78. <signal name="NewStatus">
  79. <arg name="status" type="s"/>
  80. </signal>
  81. -->
  82. <!-- The following items are not supported by specs, but widely used
  83. <signal name="NewIconThemePath">
  84. <arg type="s" name="icon_theme_path" direction="out" />
  85. </signal>
  86. <signal name="NewMenu"></signal>
  87. -->
  88. <!-- ayatana labels -->
  89. <!-- These are commented out because GDBusProxy would otherwise require them,
  90. but they are not available for KDE indicators
  91. -->
  92. <!--<signal name="XAyatanaNewLabel">
  93. <arg type="s" name="label" direction="out" />
  94. <arg type="s" name="guide" direction="out" />
  95. </signal>
  96. <property name="XAyatanaLabel" type="s" access="read" />
  97. <property name="XAyatanaLabelGuide" type="s" access="read" />-->
  98. </interface>