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