status_notifier_item.go 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633
  1. // Code generated by dbus-codegen-go DO NOT EDIT.
  2. package notifier
  3. import (
  4. "context"
  5. "errors"
  6. "fmt"
  7. "github.com/godbus/dbus/v5"
  8. "github.com/godbus/dbus/v5/introspect"
  9. )
  10. var (
  11. // Introspection for org.kde.StatusNotifierItem
  12. IntrospectDataStatusNotifierItem = introspect.Interface{
  13. Name: "org.kde.StatusNotifierItem",
  14. Methods: []introspect.Method{{Name: "ContextMenu", Args: []introspect.Arg{
  15. {Name: "x", Type: "i", Direction: "in"},
  16. {Name: "y", Type: "i", Direction: "in"},
  17. }},
  18. {Name: "Activate", Args: []introspect.Arg{
  19. {Name: "x", Type: "i", Direction: "in"},
  20. {Name: "y", Type: "i", Direction: "in"},
  21. }},
  22. {Name: "SecondaryActivate", Args: []introspect.Arg{
  23. {Name: "x", Type: "i", Direction: "in"},
  24. {Name: "y", Type: "i", Direction: "in"},
  25. }},
  26. {Name: "Scroll", Args: []introspect.Arg{
  27. {Name: "delta", Type: "i", Direction: "in"},
  28. {Name: "orientation", Type: "s", Direction: "in"},
  29. }},
  30. },
  31. Signals: []introspect.Signal{{Name: "NewTitle"},
  32. {Name: "NewIcon"},
  33. {Name: "NewAttentionIcon"},
  34. {Name: "NewOverlayIcon"},
  35. {Name: "NewStatus", Args: []introspect.Arg{
  36. {Name: "status", Type: "s", Direction: ""},
  37. }},
  38. {Name: "NewIconThemePath", Args: []introspect.Arg{
  39. {Name: "icon_theme_path", Type: "s", Direction: "out"},
  40. }},
  41. {Name: "NewMenu"},
  42. },
  43. Properties: []introspect.Property{{Name: "Category", Type: "s", Access: "read"},
  44. {Name: "Id", Type: "s", Access: "read"},
  45. {Name: "Title", Type: "s", Access: "read"},
  46. {Name: "Status", Type: "s", Access: "read"},
  47. {Name: "WindowId", Type: "i", Access: "read"},
  48. {Name: "IconThemePath", Type: "s", Access: "read"},
  49. {Name: "Menu", Type: "o", Access: "read"},
  50. {Name: "ItemIsMenu", Type: "b", Access: "read"},
  51. {Name: "IconName", Type: "s", Access: "read"},
  52. {Name: "IconPixmap", Type: "a(iiay)", Access: "read", Annotations: []introspect.Annotation{
  53. {Name: "org.qtproject.QtDBus.QtTypeName", Value: "KDbusImageVector"},
  54. }},
  55. {Name: "OverlayIconName", Type: "s", Access: "read"},
  56. {Name: "OverlayIconPixmap", Type: "a(iiay)", Access: "read", Annotations: []introspect.Annotation{
  57. {Name: "org.qtproject.QtDBus.QtTypeName", Value: "KDbusImageVector"},
  58. }},
  59. {Name: "AttentionIconName", Type: "s", Access: "read"},
  60. {Name: "AttentionIconPixmap", Type: "a(iiay)", Access: "read", Annotations: []introspect.Annotation{
  61. {Name: "org.qtproject.QtDBus.QtTypeName", Value: "KDbusImageVector"},
  62. }},
  63. {Name: "AttentionMovieName", Type: "s", Access: "read"},
  64. {Name: "ToolTip", Type: "(sa(iiay)ss)", Access: "read", Annotations: []introspect.Annotation{
  65. {Name: "org.qtproject.QtDBus.QtTypeName", Value: "KDbusToolTipStruct"},
  66. }},
  67. },
  68. Annotations: []introspect.Annotation{},
  69. }
  70. )
  71. // Signal is a common interface for all signals.
  72. type Signal interface {
  73. Name() string
  74. Interface() string
  75. Sender() string
  76. path() dbus.ObjectPath
  77. values() []interface{}
  78. }
  79. // Emit sends the given signal to the bus.
  80. func Emit(conn *dbus.Conn, s Signal) error {
  81. return conn.Emit(s.path(), s.Interface()+"."+s.Name(), s.values()...)
  82. }
  83. // ErrUnknownSignal is returned by LookupSignal when a signal cannot be resolved.
  84. var ErrUnknownSignal = errors.New("unknown signal")
  85. // LookupSignal converts the given raw D-Bus signal with variable body
  86. // into one with typed structured body or returns ErrUnknownSignal error.
  87. func LookupSignal(signal *dbus.Signal) (Signal, error) {
  88. switch signal.Name {
  89. case InterfaceStatusNotifierItem + "." + "NewTitle":
  90. return &StatusNotifierItem_NewTitleSignal{
  91. sender: signal.Sender,
  92. Path: signal.Path,
  93. Body: &StatusNotifierItem_NewTitleSignalBody{},
  94. }, nil
  95. case InterfaceStatusNotifierItem + "." + "NewIcon":
  96. return &StatusNotifierItem_NewIconSignal{
  97. sender: signal.Sender,
  98. Path: signal.Path,
  99. Body: &StatusNotifierItem_NewIconSignalBody{},
  100. }, nil
  101. case InterfaceStatusNotifierItem + "." + "NewAttentionIcon":
  102. return &StatusNotifierItem_NewAttentionIconSignal{
  103. sender: signal.Sender,
  104. Path: signal.Path,
  105. Body: &StatusNotifierItem_NewAttentionIconSignalBody{},
  106. }, nil
  107. case InterfaceStatusNotifierItem + "." + "NewOverlayIcon":
  108. return &StatusNotifierItem_NewOverlayIconSignal{
  109. sender: signal.Sender,
  110. Path: signal.Path,
  111. Body: &StatusNotifierItem_NewOverlayIconSignalBody{},
  112. }, nil
  113. case InterfaceStatusNotifierItem + "." + "NewStatus":
  114. v0, ok := signal.Body[0].(string)
  115. if !ok {
  116. return nil, fmt.Errorf("prop .Status is %T, not string", signal.Body[0])
  117. }
  118. return &StatusNotifierItem_NewStatusSignal{
  119. sender: signal.Sender,
  120. Path: signal.Path,
  121. Body: &StatusNotifierItem_NewStatusSignalBody{
  122. Status: v0,
  123. },
  124. }, nil
  125. case InterfaceStatusNotifierItem + "." + "NewIconThemePath":
  126. v0, ok := signal.Body[0].(string)
  127. if !ok {
  128. return nil, fmt.Errorf("prop .IconThemePath is %T, not string", signal.Body[0])
  129. }
  130. return &StatusNotifierItem_NewIconThemePathSignal{
  131. sender: signal.Sender,
  132. Path: signal.Path,
  133. Body: &StatusNotifierItem_NewIconThemePathSignalBody{
  134. IconThemePath: v0,
  135. },
  136. }, nil
  137. case InterfaceStatusNotifierItem + "." + "NewMenu":
  138. return &StatusNotifierItem_NewMenuSignal{
  139. sender: signal.Sender,
  140. Path: signal.Path,
  141. Body: &StatusNotifierItem_NewMenuSignalBody{},
  142. }, nil
  143. default:
  144. return nil, ErrUnknownSignal
  145. }
  146. }
  147. // AddMatchSignal registers a match rule for the given signal,
  148. // opts are appended to the automatically generated signal's rules.
  149. func AddMatchSignal(conn *dbus.Conn, s Signal, opts ...dbus.MatchOption) error {
  150. return conn.AddMatchSignal(append([]dbus.MatchOption{
  151. dbus.WithMatchInterface(s.Interface()),
  152. dbus.WithMatchMember(s.Name()),
  153. }, opts...)...)
  154. }
  155. // RemoveMatchSignal unregisters the previously registered subscription.
  156. func RemoveMatchSignal(conn *dbus.Conn, s Signal, opts ...dbus.MatchOption) error {
  157. return conn.RemoveMatchSignal(append([]dbus.MatchOption{
  158. dbus.WithMatchInterface(s.Interface()),
  159. dbus.WithMatchMember(s.Name()),
  160. }, opts...)...)
  161. }
  162. // Interface name constants.
  163. const (
  164. InterfaceStatusNotifierItem = "org.kde.StatusNotifierItem"
  165. )
  166. // StatusNotifierItemer is org.kde.StatusNotifierItem interface.
  167. type StatusNotifierItemer interface {
  168. // ContextMenu is org.kde.StatusNotifierItem.ContextMenu method.
  169. ContextMenu(x int32, y int32) (err *dbus.Error)
  170. // Activate is org.kde.StatusNotifierItem.Activate method.
  171. Activate(x int32, y int32) (err *dbus.Error)
  172. // SecondaryActivate is org.kde.StatusNotifierItem.SecondaryActivate method.
  173. SecondaryActivate(x int32, y int32) (err *dbus.Error)
  174. // Scroll is org.kde.StatusNotifierItem.Scroll method.
  175. Scroll(delta int32, orientation string) (err *dbus.Error)
  176. }
  177. // ExportStatusNotifierItem exports the given object that implements org.kde.StatusNotifierItem on the bus.
  178. func ExportStatusNotifierItem(conn *dbus.Conn, path dbus.ObjectPath, v StatusNotifierItemer) error {
  179. return conn.ExportSubtreeMethodTable(map[string]interface{}{
  180. "ContextMenu": v.ContextMenu,
  181. "Activate": v.Activate,
  182. "SecondaryActivate": v.SecondaryActivate,
  183. "Scroll": v.Scroll,
  184. }, path, InterfaceStatusNotifierItem)
  185. }
  186. // UnexportStatusNotifierItem unexports org.kde.StatusNotifierItem interface on the named path.
  187. func UnexportStatusNotifierItem(conn *dbus.Conn, path dbus.ObjectPath) error {
  188. return conn.Export(nil, path, InterfaceStatusNotifierItem)
  189. }
  190. // UnimplementedStatusNotifierItem can be embedded to have forward compatible server implementations.
  191. type UnimplementedStatusNotifierItem struct{}
  192. func (*UnimplementedStatusNotifierItem) iface() string {
  193. return InterfaceStatusNotifierItem
  194. }
  195. func (*UnimplementedStatusNotifierItem) ContextMenu(x int32, y int32) (err *dbus.Error) {
  196. err = &dbus.ErrMsgUnknownMethod
  197. return
  198. }
  199. func (*UnimplementedStatusNotifierItem) Activate(x int32, y int32) (err *dbus.Error) {
  200. err = &dbus.ErrMsgUnknownMethod
  201. return
  202. }
  203. func (*UnimplementedStatusNotifierItem) SecondaryActivate(x int32, y int32) (err *dbus.Error) {
  204. err = &dbus.ErrMsgUnknownMethod
  205. return
  206. }
  207. func (*UnimplementedStatusNotifierItem) Scroll(delta int32, orientation string) (err *dbus.Error) {
  208. err = &dbus.ErrMsgUnknownMethod
  209. return
  210. }
  211. // NewStatusNotifierItem creates and allocates org.kde.StatusNotifierItem.
  212. func NewStatusNotifierItem(object dbus.BusObject) *StatusNotifierItem {
  213. return &StatusNotifierItem{object}
  214. }
  215. // StatusNotifierItem implements org.kde.StatusNotifierItem D-Bus interface.
  216. type StatusNotifierItem struct {
  217. object dbus.BusObject
  218. }
  219. // ContextMenu calls org.kde.StatusNotifierItem.ContextMenu method.
  220. func (o *StatusNotifierItem) ContextMenu(ctx context.Context, x int32, y int32) (err error) {
  221. err = o.object.CallWithContext(ctx, InterfaceStatusNotifierItem+".ContextMenu", 0, x, y).Store()
  222. return
  223. }
  224. // Activate calls org.kde.StatusNotifierItem.Activate method.
  225. func (o *StatusNotifierItem) Activate(ctx context.Context, x int32, y int32) (err error) {
  226. err = o.object.CallWithContext(ctx, InterfaceStatusNotifierItem+".Activate", 0, x, y).Store()
  227. return
  228. }
  229. // SecondaryActivate calls org.kde.StatusNotifierItem.SecondaryActivate method.
  230. func (o *StatusNotifierItem) SecondaryActivate(ctx context.Context, x int32, y int32) (err error) {
  231. err = o.object.CallWithContext(ctx, InterfaceStatusNotifierItem+".SecondaryActivate", 0, x, y).Store()
  232. return
  233. }
  234. // Scroll calls org.kde.StatusNotifierItem.Scroll method.
  235. func (o *StatusNotifierItem) Scroll(ctx context.Context, delta int32, orientation string) (err error) {
  236. err = o.object.CallWithContext(ctx, InterfaceStatusNotifierItem+".Scroll", 0, delta, orientation).Store()
  237. return
  238. }
  239. // GetCategory gets org.kde.StatusNotifierItem.Category property.
  240. func (o *StatusNotifierItem) GetCategory(ctx context.Context) (category string, err error) {
  241. err = o.object.CallWithContext(ctx, "org.freedesktop.DBus.Properties.Get", 0, InterfaceStatusNotifierItem, "Category").Store(&category)
  242. return
  243. }
  244. // GetId gets org.kde.StatusNotifierItem.Id property.
  245. func (o *StatusNotifierItem) GetId(ctx context.Context) (id string, err error) {
  246. err = o.object.CallWithContext(ctx, "org.freedesktop.DBus.Properties.Get", 0, InterfaceStatusNotifierItem, "Id").Store(&id)
  247. return
  248. }
  249. // GetTitle gets org.kde.StatusNotifierItem.Title property.
  250. func (o *StatusNotifierItem) GetTitle(ctx context.Context) (title string, err error) {
  251. err = o.object.CallWithContext(ctx, "org.freedesktop.DBus.Properties.Get", 0, InterfaceStatusNotifierItem, "Title").Store(&title)
  252. return
  253. }
  254. // GetStatus gets org.kde.StatusNotifierItem.Status property.
  255. func (o *StatusNotifierItem) GetStatus(ctx context.Context) (status string, err error) {
  256. err = o.object.CallWithContext(ctx, "org.freedesktop.DBus.Properties.Get", 0, InterfaceStatusNotifierItem, "Status").Store(&status)
  257. return
  258. }
  259. // GetWindowId gets org.kde.StatusNotifierItem.WindowId property.
  260. func (o *StatusNotifierItem) GetWindowId(ctx context.Context) (windowId int32, err error) {
  261. err = o.object.CallWithContext(ctx, "org.freedesktop.DBus.Properties.Get", 0, InterfaceStatusNotifierItem, "WindowId").Store(&windowId)
  262. return
  263. }
  264. // GetIconThemePath gets org.kde.StatusNotifierItem.IconThemePath property.
  265. func (o *StatusNotifierItem) GetIconThemePath(ctx context.Context) (iconThemePath string, err error) {
  266. err = o.object.CallWithContext(ctx, "org.freedesktop.DBus.Properties.Get", 0, InterfaceStatusNotifierItem, "IconThemePath").Store(&iconThemePath)
  267. return
  268. }
  269. // GetMenu gets org.kde.StatusNotifierItem.Menu property.
  270. func (o *StatusNotifierItem) GetMenu(ctx context.Context) (menu dbus.ObjectPath, err error) {
  271. err = o.object.CallWithContext(ctx, "org.freedesktop.DBus.Properties.Get", 0, InterfaceStatusNotifierItem, "Menu").Store(&menu)
  272. return
  273. }
  274. // GetItemIsMenu gets org.kde.StatusNotifierItem.ItemIsMenu property.
  275. func (o *StatusNotifierItem) GetItemIsMenu(ctx context.Context) (itemIsMenu bool, err error) {
  276. err = o.object.CallWithContext(ctx, "org.freedesktop.DBus.Properties.Get", 0, InterfaceStatusNotifierItem, "ItemIsMenu").Store(&itemIsMenu)
  277. return
  278. }
  279. // GetIconName gets org.kde.StatusNotifierItem.IconName property.
  280. func (o *StatusNotifierItem) GetIconName(ctx context.Context) (iconName string, err error) {
  281. err = o.object.CallWithContext(ctx, "org.freedesktop.DBus.Properties.Get", 0, InterfaceStatusNotifierItem, "IconName").Store(&iconName)
  282. return
  283. }
  284. // GetIconPixmap gets org.kde.StatusNotifierItem.IconPixmap property.
  285. //
  286. // Annotations:
  287. // @org.qtproject.QtDBus.QtTypeName = KDbusImageVector
  288. func (o *StatusNotifierItem) GetIconPixmap(ctx context.Context) (iconPixmap []struct {
  289. V0 int32
  290. V1 int32
  291. V2 []byte
  292. }, err error) {
  293. err = o.object.CallWithContext(ctx, "org.freedesktop.DBus.Properties.Get", 0, InterfaceStatusNotifierItem, "IconPixmap").Store(&iconPixmap)
  294. return
  295. }
  296. // GetOverlayIconName gets org.kde.StatusNotifierItem.OverlayIconName property.
  297. func (o *StatusNotifierItem) GetOverlayIconName(ctx context.Context) (overlayIconName string, err error) {
  298. err = o.object.CallWithContext(ctx, "org.freedesktop.DBus.Properties.Get", 0, InterfaceStatusNotifierItem, "OverlayIconName").Store(&overlayIconName)
  299. return
  300. }
  301. // GetOverlayIconPixmap gets org.kde.StatusNotifierItem.OverlayIconPixmap property.
  302. //
  303. // Annotations:
  304. // @org.qtproject.QtDBus.QtTypeName = KDbusImageVector
  305. func (o *StatusNotifierItem) GetOverlayIconPixmap(ctx context.Context) (overlayIconPixmap []struct {
  306. V0 int32
  307. V1 int32
  308. V2 []byte
  309. }, err error) {
  310. err = o.object.CallWithContext(ctx, "org.freedesktop.DBus.Properties.Get", 0, InterfaceStatusNotifierItem, "OverlayIconPixmap").Store(&overlayIconPixmap)
  311. return
  312. }
  313. // GetAttentionIconName gets org.kde.StatusNotifierItem.AttentionIconName property.
  314. func (o *StatusNotifierItem) GetAttentionIconName(ctx context.Context) (attentionIconName string, err error) {
  315. err = o.object.CallWithContext(ctx, "org.freedesktop.DBus.Properties.Get", 0, InterfaceStatusNotifierItem, "AttentionIconName").Store(&attentionIconName)
  316. return
  317. }
  318. // GetAttentionIconPixmap gets org.kde.StatusNotifierItem.AttentionIconPixmap property.
  319. //
  320. // Annotations:
  321. // @org.qtproject.QtDBus.QtTypeName = KDbusImageVector
  322. func (o *StatusNotifierItem) GetAttentionIconPixmap(ctx context.Context) (attentionIconPixmap []struct {
  323. V0 int32
  324. V1 int32
  325. V2 []byte
  326. }, err error) {
  327. err = o.object.CallWithContext(ctx, "org.freedesktop.DBus.Properties.Get", 0, InterfaceStatusNotifierItem, "AttentionIconPixmap").Store(&attentionIconPixmap)
  328. return
  329. }
  330. // GetAttentionMovieName gets org.kde.StatusNotifierItem.AttentionMovieName property.
  331. func (o *StatusNotifierItem) GetAttentionMovieName(ctx context.Context) (attentionMovieName string, err error) {
  332. err = o.object.CallWithContext(ctx, "org.freedesktop.DBus.Properties.Get", 0, InterfaceStatusNotifierItem, "AttentionMovieName").Store(&attentionMovieName)
  333. return
  334. }
  335. // GetToolTip gets org.kde.StatusNotifierItem.ToolTip property.
  336. //
  337. // Annotations:
  338. // @org.qtproject.QtDBus.QtTypeName = KDbusToolTipStruct
  339. func (o *StatusNotifierItem) GetToolTip(ctx context.Context) (toolTip struct {
  340. V0 string
  341. V1 []struct {
  342. V0 int32
  343. V1 int32
  344. V2 []byte
  345. }
  346. V2 string
  347. V3 string
  348. }, err error) {
  349. err = o.object.CallWithContext(ctx, "org.freedesktop.DBus.Properties.Get", 0, InterfaceStatusNotifierItem, "ToolTip").Store(&toolTip)
  350. return
  351. }
  352. // StatusNotifierItem_NewTitleSignal represents org.kde.StatusNotifierItem.NewTitle signal.
  353. type StatusNotifierItem_NewTitleSignal struct {
  354. sender string
  355. Path dbus.ObjectPath
  356. Body *StatusNotifierItem_NewTitleSignalBody
  357. }
  358. // Name returns the signal's name.
  359. func (s *StatusNotifierItem_NewTitleSignal) Name() string {
  360. return "NewTitle"
  361. }
  362. // Interface returns the signal's interface.
  363. func (s *StatusNotifierItem_NewTitleSignal) Interface() string {
  364. return InterfaceStatusNotifierItem
  365. }
  366. // Sender returns the signal's sender unique name.
  367. func (s *StatusNotifierItem_NewTitleSignal) Sender() string {
  368. return s.sender
  369. }
  370. func (s *StatusNotifierItem_NewTitleSignal) path() dbus.ObjectPath {
  371. return s.Path
  372. }
  373. func (s *StatusNotifierItem_NewTitleSignal) values() []interface{} {
  374. return []interface{}{}
  375. }
  376. // StatusNotifierItem_NewTitleSignalBody is body container.
  377. type StatusNotifierItem_NewTitleSignalBody struct {
  378. }
  379. // StatusNotifierItem_NewIconSignal represents org.kde.StatusNotifierItem.NewIcon signal.
  380. type StatusNotifierItem_NewIconSignal struct {
  381. sender string
  382. Path dbus.ObjectPath
  383. Body *StatusNotifierItem_NewIconSignalBody
  384. }
  385. // Name returns the signal's name.
  386. func (s *StatusNotifierItem_NewIconSignal) Name() string {
  387. return "NewIcon"
  388. }
  389. // Interface returns the signal's interface.
  390. func (s *StatusNotifierItem_NewIconSignal) Interface() string {
  391. return InterfaceStatusNotifierItem
  392. }
  393. // Sender returns the signal's sender unique name.
  394. func (s *StatusNotifierItem_NewIconSignal) Sender() string {
  395. return s.sender
  396. }
  397. func (s *StatusNotifierItem_NewIconSignal) path() dbus.ObjectPath {
  398. return s.Path
  399. }
  400. func (s *StatusNotifierItem_NewIconSignal) values() []interface{} {
  401. return []interface{}{}
  402. }
  403. // StatusNotifierItem_NewIconSignalBody is body container.
  404. type StatusNotifierItem_NewIconSignalBody struct {
  405. }
  406. // StatusNotifierItem_NewAttentionIconSignal represents org.kde.StatusNotifierItem.NewAttentionIcon signal.
  407. type StatusNotifierItem_NewAttentionIconSignal struct {
  408. sender string
  409. Path dbus.ObjectPath
  410. Body *StatusNotifierItem_NewAttentionIconSignalBody
  411. }
  412. // Name returns the signal's name.
  413. func (s *StatusNotifierItem_NewAttentionIconSignal) Name() string {
  414. return "NewAttentionIcon"
  415. }
  416. // Interface returns the signal's interface.
  417. func (s *StatusNotifierItem_NewAttentionIconSignal) Interface() string {
  418. return InterfaceStatusNotifierItem
  419. }
  420. // Sender returns the signal's sender unique name.
  421. func (s *StatusNotifierItem_NewAttentionIconSignal) Sender() string {
  422. return s.sender
  423. }
  424. func (s *StatusNotifierItem_NewAttentionIconSignal) path() dbus.ObjectPath {
  425. return s.Path
  426. }
  427. func (s *StatusNotifierItem_NewAttentionIconSignal) values() []interface{} {
  428. return []interface{}{}
  429. }
  430. // StatusNotifierItem_NewAttentionIconSignalBody is body container.
  431. type StatusNotifierItem_NewAttentionIconSignalBody struct {
  432. }
  433. // StatusNotifierItem_NewOverlayIconSignal represents org.kde.StatusNotifierItem.NewOverlayIcon signal.
  434. type StatusNotifierItem_NewOverlayIconSignal struct {
  435. sender string
  436. Path dbus.ObjectPath
  437. Body *StatusNotifierItem_NewOverlayIconSignalBody
  438. }
  439. // Name returns the signal's name.
  440. func (s *StatusNotifierItem_NewOverlayIconSignal) Name() string {
  441. return "NewOverlayIcon"
  442. }
  443. // Interface returns the signal's interface.
  444. func (s *StatusNotifierItem_NewOverlayIconSignal) Interface() string {
  445. return InterfaceStatusNotifierItem
  446. }
  447. // Sender returns the signal's sender unique name.
  448. func (s *StatusNotifierItem_NewOverlayIconSignal) Sender() string {
  449. return s.sender
  450. }
  451. func (s *StatusNotifierItem_NewOverlayIconSignal) path() dbus.ObjectPath {
  452. return s.Path
  453. }
  454. func (s *StatusNotifierItem_NewOverlayIconSignal) values() []interface{} {
  455. return []interface{}{}
  456. }
  457. // StatusNotifierItem_NewOverlayIconSignalBody is body container.
  458. type StatusNotifierItem_NewOverlayIconSignalBody struct {
  459. }
  460. // StatusNotifierItem_NewStatusSignal represents org.kde.StatusNotifierItem.NewStatus signal.
  461. type StatusNotifierItem_NewStatusSignal struct {
  462. sender string
  463. Path dbus.ObjectPath
  464. Body *StatusNotifierItem_NewStatusSignalBody
  465. }
  466. // Name returns the signal's name.
  467. func (s *StatusNotifierItem_NewStatusSignal) Name() string {
  468. return "NewStatus"
  469. }
  470. // Interface returns the signal's interface.
  471. func (s *StatusNotifierItem_NewStatusSignal) Interface() string {
  472. return InterfaceStatusNotifierItem
  473. }
  474. // Sender returns the signal's sender unique name.
  475. func (s *StatusNotifierItem_NewStatusSignal) Sender() string {
  476. return s.sender
  477. }
  478. func (s *StatusNotifierItem_NewStatusSignal) path() dbus.ObjectPath {
  479. return s.Path
  480. }
  481. func (s *StatusNotifierItem_NewStatusSignal) values() []interface{} {
  482. return []interface{}{s.Body.Status}
  483. }
  484. // StatusNotifierItem_NewStatusSignalBody is body container.
  485. type StatusNotifierItem_NewStatusSignalBody struct {
  486. Status string
  487. }
  488. // StatusNotifierItem_NewIconThemePathSignal represents org.kde.StatusNotifierItem.NewIconThemePath signal.
  489. type StatusNotifierItem_NewIconThemePathSignal struct {
  490. sender string
  491. Path dbus.ObjectPath
  492. Body *StatusNotifierItem_NewIconThemePathSignalBody
  493. }
  494. // Name returns the signal's name.
  495. func (s *StatusNotifierItem_NewIconThemePathSignal) Name() string {
  496. return "NewIconThemePath"
  497. }
  498. // Interface returns the signal's interface.
  499. func (s *StatusNotifierItem_NewIconThemePathSignal) Interface() string {
  500. return InterfaceStatusNotifierItem
  501. }
  502. // Sender returns the signal's sender unique name.
  503. func (s *StatusNotifierItem_NewIconThemePathSignal) Sender() string {
  504. return s.sender
  505. }
  506. func (s *StatusNotifierItem_NewIconThemePathSignal) path() dbus.ObjectPath {
  507. return s.Path
  508. }
  509. func (s *StatusNotifierItem_NewIconThemePathSignal) values() []interface{} {
  510. return []interface{}{s.Body.IconThemePath}
  511. }
  512. // StatusNotifierItem_NewIconThemePathSignalBody is body container.
  513. type StatusNotifierItem_NewIconThemePathSignalBody struct {
  514. IconThemePath string
  515. }
  516. // StatusNotifierItem_NewMenuSignal represents org.kde.StatusNotifierItem.NewMenu signal.
  517. type StatusNotifierItem_NewMenuSignal struct {
  518. sender string
  519. Path dbus.ObjectPath
  520. Body *StatusNotifierItem_NewMenuSignalBody
  521. }
  522. // Name returns the signal's name.
  523. func (s *StatusNotifierItem_NewMenuSignal) Name() string {
  524. return "NewMenu"
  525. }
  526. // Interface returns the signal's interface.
  527. func (s *StatusNotifierItem_NewMenuSignal) Interface() string {
  528. return InterfaceStatusNotifierItem
  529. }
  530. // Sender returns the signal's sender unique name.
  531. func (s *StatusNotifierItem_NewMenuSignal) Sender() string {
  532. return s.sender
  533. }
  534. func (s *StatusNotifierItem_NewMenuSignal) path() dbus.ObjectPath {
  535. return s.Path
  536. }
  537. func (s *StatusNotifierItem_NewMenuSignal) values() []interface{} {
  538. return []interface{}{}
  539. }
  540. // StatusNotifierItem_NewMenuSignalBody is body container.
  541. type StatusNotifierItem_NewMenuSignalBody struct {
  542. }