notifier

package
v1.109.1184 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2023 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Code generated by dbus-codegen-go DO NOT EDIT.

Index

Constants

View Source
const (
	InterfaceStatusNotifierItem = "org.kde.StatusNotifierItem"
)

Interface name constants.

Variables

View Source
var ErrUnknownSignal = errors.New("unknown signal")

ErrUnknownSignal is returned by LookupSignal when a signal cannot be resolved.

View Source
var (
	// Introspection for org.kde.StatusNotifierItem
	IntrospectDataStatusNotifierItem = introspect.Interface{
		Name: "org.kde.StatusNotifierItem",
		Methods: []introspect.Method{{Name: "ContextMenu", Args: []introspect.Arg{
			{Name: "x", Type: "i", Direction: "in"},
			{Name: "y", Type: "i", Direction: "in"},
		}},
			{Name: "Activate", Args: []introspect.Arg{
				{Name: "x", Type: "i", Direction: "in"},
				{Name: "y", Type: "i", Direction: "in"},
			}},
			{Name: "SecondaryActivate", Args: []introspect.Arg{
				{Name: "x", Type: "i", Direction: "in"},
				{Name: "y", Type: "i", Direction: "in"},
			}},
			{Name: "Scroll", Args: []introspect.Arg{
				{Name: "delta", Type: "i", Direction: "in"},
				{Name: "orientation", Type: "s", Direction: "in"},
			}},
		},
		Signals: []introspect.Signal{{Name: "NewTitle"},
			{Name: "NewIcon"},
			{Name: "NewAttentionIcon"},
			{Name: "NewOverlayIcon"},
			{Name: "NewStatus", Args: []introspect.Arg{
				{Name: "status", Type: "s", Direction: ""},
			}},
			{Name: "NewIconThemePath", Args: []introspect.Arg{
				{Name: "icon_theme_path", Type: "s", Direction: "out"},
			}},
			{Name: "NewMenu"},
		},
		Properties: []introspect.Property{{Name: "Category", Type: "s", Access: "read"},
			{Name: "Id", Type: "s", Access: "read"},
			{Name: "Title", Type: "s", Access: "read"},
			{Name: "Status", Type: "s", Access: "read"},
			{Name: "WindowId", Type: "i", Access: "read"},
			{Name: "IconThemePath", Type: "s", Access: "read"},
			{Name: "Menu", Type: "o", Access: "read"},
			{Name: "ItemIsMenu", Type: "b", Access: "read"},
			{Name: "IconName", Type: "s", Access: "read"},
			{Name: "IconPixmap", Type: "a(iiay)", Access: "read", Annotations: []introspect.Annotation{
				{Name: "org.qtproject.QtDBus.QtTypeName", Value: "KDbusImageVector"},
			}},
			{Name: "OverlayIconName", Type: "s", Access: "read"},
			{Name: "OverlayIconPixmap", Type: "a(iiay)", Access: "read", Annotations: []introspect.Annotation{
				{Name: "org.qtproject.QtDBus.QtTypeName", Value: "KDbusImageVector"},
			}},
			{Name: "AttentionIconName", Type: "s", Access: "read"},
			{Name: "AttentionIconPixmap", Type: "a(iiay)", Access: "read", Annotations: []introspect.Annotation{
				{Name: "org.qtproject.QtDBus.QtTypeName", Value: "KDbusImageVector"},
			}},
			{Name: "AttentionMovieName", Type: "s", Access: "read"},
			{Name: "ToolTip", Type: "(sa(iiay)ss)", Access: "read", Annotations: []introspect.Annotation{
				{Name: "org.qtproject.QtDBus.QtTypeName", Value: "KDbusToolTipStruct"},
			}},
		},
		Annotations: []introspect.Annotation{},
	}
)

Functions

func AddMatchSignal

func AddMatchSignal(conn *dbus.Conn, s Signal, opts ...dbus.MatchOption) error

AddMatchSignal registers a match rule for the given signal, opts are appended to the automatically generated signal's rules.

func Emit

func Emit(conn *dbus.Conn, s Signal) error

Emit sends the given signal to the bus.

func ExportStatusNotifierItem

func ExportStatusNotifierItem(conn *dbus.Conn, path dbus.ObjectPath, v StatusNotifierItemer) error

ExportStatusNotifierItem exports the given object that implements org.kde.StatusNotifierItem on the bus.

func RemoveMatchSignal

func RemoveMatchSignal(conn *dbus.Conn, s Signal, opts ...dbus.MatchOption) error

RemoveMatchSignal unregisters the previously registered subscription.

func UnexportStatusNotifierItem

func UnexportStatusNotifierItem(conn *dbus.Conn, path dbus.ObjectPath) error

UnexportStatusNotifierItem unexports org.kde.StatusNotifierItem interface on the named path.

Types

type Signal

type Signal interface {
	Name() string
	Interface() string
	Sender() string
	// contains filtered or unexported methods
}

Signal is a common interface for all signals.

func LookupSignal

func LookupSignal(signal *dbus.Signal) (Signal, error)

LookupSignal converts the given raw D-Bus signal with variable body into one with typed structured body or returns ErrUnknownSignal error.

type StatusNotifierItem

type StatusNotifierItem struct {
	// contains filtered or unexported fields
}

StatusNotifierItem implements org.kde.StatusNotifierItem D-Bus interface.

func NewStatusNotifierItem

func NewStatusNotifierItem(object dbus.BusObject) *StatusNotifierItem

NewStatusNotifierItem creates and allocates org.kde.StatusNotifierItem.

func (*StatusNotifierItem) Activate

func (o *StatusNotifierItem) Activate(ctx context.Context, x int32, y int32) (err error)

Activate calls org.kde.StatusNotifierItem.Activate method.

func (*StatusNotifierItem) ContextMenu

func (o *StatusNotifierItem) ContextMenu(ctx context.Context, x int32, y int32) (err error)

ContextMenu calls org.kde.StatusNotifierItem.ContextMenu method.

func (*StatusNotifierItem) GetAttentionIconName

func (o *StatusNotifierItem) GetAttentionIconName(ctx context.Context) (attentionIconName string, err error)

GetAttentionIconName gets org.kde.StatusNotifierItem.AttentionIconName property.

func (*StatusNotifierItem) GetAttentionIconPixmap

func (o *StatusNotifierItem) GetAttentionIconPixmap(ctx context.Context) (attentionIconPixmap []struct {
	V0 int32
	V1 int32
	V2 []byte
}, err error)

GetAttentionIconPixmap gets org.kde.StatusNotifierItem.AttentionIconPixmap property.

Annotations:

@org.qtproject.QtDBus.QtTypeName = KDbusImageVector

func (*StatusNotifierItem) GetAttentionMovieName

func (o *StatusNotifierItem) GetAttentionMovieName(ctx context.Context) (attentionMovieName string, err error)

GetAttentionMovieName gets org.kde.StatusNotifierItem.AttentionMovieName property.

func (*StatusNotifierItem) GetCategory

func (o *StatusNotifierItem) GetCategory(ctx context.Context) (category string, err error)

GetCategory gets org.kde.StatusNotifierItem.Category property.

func (*StatusNotifierItem) GetIconName

func (o *StatusNotifierItem) GetIconName(ctx context.Context) (iconName string, err error)

GetIconName gets org.kde.StatusNotifierItem.IconName property.

func (*StatusNotifierItem) GetIconPixmap

func (o *StatusNotifierItem) GetIconPixmap(ctx context.Context) (iconPixmap []struct {
	V0 int32
	V1 int32
	V2 []byte
}, err error)

GetIconPixmap gets org.kde.StatusNotifierItem.IconPixmap property.

Annotations:

@org.qtproject.QtDBus.QtTypeName = KDbusImageVector

func (*StatusNotifierItem) GetIconThemePath

func (o *StatusNotifierItem) GetIconThemePath(ctx context.Context) (iconThemePath string, err error)

GetIconThemePath gets org.kde.StatusNotifierItem.IconThemePath property.

func (*StatusNotifierItem) GetId

func (o *StatusNotifierItem) GetId(ctx context.Context) (id string, err error)

GetId gets org.kde.StatusNotifierItem.Id property.

func (*StatusNotifierItem) GetItemIsMenu

func (o *StatusNotifierItem) GetItemIsMenu(ctx context.Context) (itemIsMenu bool, err error)

GetItemIsMenu gets org.kde.StatusNotifierItem.ItemIsMenu property.

func (*StatusNotifierItem) GetMenu

func (o *StatusNotifierItem) GetMenu(ctx context.Context) (menu dbus.ObjectPath, err error)

GetMenu gets org.kde.StatusNotifierItem.Menu property.

func (*StatusNotifierItem) GetOverlayIconName

func (o *StatusNotifierItem) GetOverlayIconName(ctx context.Context) (overlayIconName string, err error)

GetOverlayIconName gets org.kde.StatusNotifierItem.OverlayIconName property.

func (*StatusNotifierItem) GetOverlayIconPixmap

func (o *StatusNotifierItem) GetOverlayIconPixmap(ctx context.Context) (overlayIconPixmap []struct {
	V0 int32
	V1 int32
	V2 []byte
}, err error)

GetOverlayIconPixmap gets org.kde.StatusNotifierItem.OverlayIconPixmap property.

Annotations:

@org.qtproject.QtDBus.QtTypeName = KDbusImageVector

func (*StatusNotifierItem) GetStatus

func (o *StatusNotifierItem) GetStatus(ctx context.Context) (status string, err error)

GetStatus gets org.kde.StatusNotifierItem.Status property.

func (*StatusNotifierItem) GetTitle

func (o *StatusNotifierItem) GetTitle(ctx context.Context) (title string, err error)

GetTitle gets org.kde.StatusNotifierItem.Title property.

func (*StatusNotifierItem) GetToolTip

func (o *StatusNotifierItem) GetToolTip(ctx context.Context) (toolTip struct {
	V0 string
	V1 []struct {
		V0 int32
		V1 int32
		V2 []byte
	}
	V2 string
	V3 string
}, err error)

GetToolTip gets org.kde.StatusNotifierItem.ToolTip property.

Annotations:

@org.qtproject.QtDBus.QtTypeName = KDbusToolTipStruct

func (*StatusNotifierItem) GetWindowId

func (o *StatusNotifierItem) GetWindowId(ctx context.Context) (windowId int32, err error)

GetWindowId gets org.kde.StatusNotifierItem.WindowId property.

func (*StatusNotifierItem) Scroll

func (o *StatusNotifierItem) Scroll(ctx context.Context, delta int32, orientation string) (err error)

Scroll calls org.kde.StatusNotifierItem.Scroll method.

func (*StatusNotifierItem) SecondaryActivate

func (o *StatusNotifierItem) SecondaryActivate(ctx context.Context, x int32, y int32) (err error)

SecondaryActivate calls org.kde.StatusNotifierItem.SecondaryActivate method.

type StatusNotifierItem_NewAttentionIconSignal

type StatusNotifierItem_NewAttentionIconSignal struct {
	Path dbus.ObjectPath
	Body *StatusNotifierItem_NewAttentionIconSignalBody
	// contains filtered or unexported fields
}

StatusNotifierItem_NewAttentionIconSignal represents org.kde.StatusNotifierItem.NewAttentionIcon signal.

func (*StatusNotifierItem_NewAttentionIconSignal) Interface

Interface returns the signal's interface.

func (*StatusNotifierItem_NewAttentionIconSignal) Name

Name returns the signal's name.

func (*StatusNotifierItem_NewAttentionIconSignal) Sender

Sender returns the signal's sender unique name.

type StatusNotifierItem_NewAttentionIconSignalBody

type StatusNotifierItem_NewAttentionIconSignalBody struct {
}

StatusNotifierItem_NewAttentionIconSignalBody is body container.

type StatusNotifierItem_NewIconSignal

type StatusNotifierItem_NewIconSignal struct {
	Path dbus.ObjectPath
	Body *StatusNotifierItem_NewIconSignalBody
	// contains filtered or unexported fields
}

StatusNotifierItem_NewIconSignal represents org.kde.StatusNotifierItem.NewIcon signal.

func (*StatusNotifierItem_NewIconSignal) Interface

Interface returns the signal's interface.

func (*StatusNotifierItem_NewIconSignal) Name

Name returns the signal's name.

func (*StatusNotifierItem_NewIconSignal) Sender

Sender returns the signal's sender unique name.

type StatusNotifierItem_NewIconSignalBody

type StatusNotifierItem_NewIconSignalBody struct {
}

StatusNotifierItem_NewIconSignalBody is body container.

type StatusNotifierItem_NewIconThemePathSignal

type StatusNotifierItem_NewIconThemePathSignal struct {
	Path dbus.ObjectPath
	Body *StatusNotifierItem_NewIconThemePathSignalBody
	// contains filtered or unexported fields
}

StatusNotifierItem_NewIconThemePathSignal represents org.kde.StatusNotifierItem.NewIconThemePath signal.

func (*StatusNotifierItem_NewIconThemePathSignal) Interface

Interface returns the signal's interface.

func (*StatusNotifierItem_NewIconThemePathSignal) Name

Name returns the signal's name.

func (*StatusNotifierItem_NewIconThemePathSignal) Sender

Sender returns the signal's sender unique name.

type StatusNotifierItem_NewIconThemePathSignalBody

type StatusNotifierItem_NewIconThemePathSignalBody struct {
	IconThemePath string
}

StatusNotifierItem_NewIconThemePathSignalBody is body container.

type StatusNotifierItem_NewMenuSignal

type StatusNotifierItem_NewMenuSignal struct {
	Path dbus.ObjectPath
	Body *StatusNotifierItem_NewMenuSignalBody
	// contains filtered or unexported fields
}

StatusNotifierItem_NewMenuSignal represents org.kde.StatusNotifierItem.NewMenu signal.

func (*StatusNotifierItem_NewMenuSignal) Interface

Interface returns the signal's interface.

func (*StatusNotifierItem_NewMenuSignal) Name

Name returns the signal's name.

func (*StatusNotifierItem_NewMenuSignal) Sender

Sender returns the signal's sender unique name.

type StatusNotifierItem_NewMenuSignalBody

type StatusNotifierItem_NewMenuSignalBody struct {
}

StatusNotifierItem_NewMenuSignalBody is body container.

type StatusNotifierItem_NewOverlayIconSignal

type StatusNotifierItem_NewOverlayIconSignal struct {
	Path dbus.ObjectPath
	Body *StatusNotifierItem_NewOverlayIconSignalBody
	// contains filtered or unexported fields
}

StatusNotifierItem_NewOverlayIconSignal represents org.kde.StatusNotifierItem.NewOverlayIcon signal.

func (*StatusNotifierItem_NewOverlayIconSignal) Interface

Interface returns the signal's interface.

func (*StatusNotifierItem_NewOverlayIconSignal) Name

Name returns the signal's name.

func (*StatusNotifierItem_NewOverlayIconSignal) Sender

Sender returns the signal's sender unique name.

type StatusNotifierItem_NewOverlayIconSignalBody

type StatusNotifierItem_NewOverlayIconSignalBody struct {
}

StatusNotifierItem_NewOverlayIconSignalBody is body container.

type StatusNotifierItem_NewStatusSignal

type StatusNotifierItem_NewStatusSignal struct {
	Path dbus.ObjectPath
	Body *StatusNotifierItem_NewStatusSignalBody
	// contains filtered or unexported fields
}

StatusNotifierItem_NewStatusSignal represents org.kde.StatusNotifierItem.NewStatus signal.

func (*StatusNotifierItem_NewStatusSignal) Interface

Interface returns the signal's interface.

func (*StatusNotifierItem_NewStatusSignal) Name

Name returns the signal's name.

func (*StatusNotifierItem_NewStatusSignal) Sender

Sender returns the signal's sender unique name.

type StatusNotifierItem_NewStatusSignalBody

type StatusNotifierItem_NewStatusSignalBody struct {
	Status string
}

StatusNotifierItem_NewStatusSignalBody is body container.

type StatusNotifierItem_NewTitleSignal

type StatusNotifierItem_NewTitleSignal struct {
	Path dbus.ObjectPath
	Body *StatusNotifierItem_NewTitleSignalBody
	// contains filtered or unexported fields
}

StatusNotifierItem_NewTitleSignal represents org.kde.StatusNotifierItem.NewTitle signal.

func (*StatusNotifierItem_NewTitleSignal) Interface

Interface returns the signal's interface.

func (*StatusNotifierItem_NewTitleSignal) Name

Name returns the signal's name.

func (*StatusNotifierItem_NewTitleSignal) Sender

Sender returns the signal's sender unique name.

type StatusNotifierItem_NewTitleSignalBody

type StatusNotifierItem_NewTitleSignalBody struct {
}

StatusNotifierItem_NewTitleSignalBody is body container.

type StatusNotifierItemer

type StatusNotifierItemer interface {
	// ContextMenu is org.kde.StatusNotifierItem.ContextMenu method.
	ContextMenu(x int32, y int32) (err *dbus.Error)
	// Activate is org.kde.StatusNotifierItem.Activate method.
	Activate(x int32, y int32) (err *dbus.Error)
	// SecondaryActivate is org.kde.StatusNotifierItem.SecondaryActivate method.
	SecondaryActivate(x int32, y int32) (err *dbus.Error)
	// Scroll is org.kde.StatusNotifierItem.Scroll method.
	Scroll(delta int32, orientation string) (err *dbus.Error)
}

StatusNotifierItemer is org.kde.StatusNotifierItem interface.

type UnimplementedStatusNotifierItem

type UnimplementedStatusNotifierItem struct{}

UnimplementedStatusNotifierItem can be embedded to have forward compatible server implementations.

func (*UnimplementedStatusNotifierItem) Activate

func (*UnimplementedStatusNotifierItem) Activate(x int32, y int32) (err *dbus.Error)

func (*UnimplementedStatusNotifierItem) ContextMenu

func (*UnimplementedStatusNotifierItem) ContextMenu(x int32, y int32) (err *dbus.Error)

func (*UnimplementedStatusNotifierItem) Scroll

func (*UnimplementedStatusNotifierItem) Scroll(delta int32, orientation string) (err *dbus.Error)

func (*UnimplementedStatusNotifierItem) SecondaryActivate

func (*UnimplementedStatusNotifierItem) SecondaryActivate(x int32, y int32) (err *dbus.Error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL