menu

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	InterfaceDbusmenu = "com.canonical.dbusmenu"
)

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 com.canonical.dbusmenu
	IntrospectDataDbusmenu = introspect.Interface{
		Name: "com.canonical.dbusmenu",
		Methods: []introspect.Method{{Name: "GetLayout", Args: []introspect.Arg{
			{Name: "parentId", Type: "i", Direction: "in"},
			{Name: "recursionDepth", Type: "i", Direction: "in"},
			{Name: "propertyNames", Type: "as", Direction: "in"},
			{Name: "revision", Type: "u", Direction: "out"},
			{Name: "layout", Type: "(ia{sv}av)", Direction: "out"},
		}},
			{Name: "GetGroupProperties", Args: []introspect.Arg{
				{Name: "ids", Type: "ai", Direction: "in"},
				{Name: "propertyNames", Type: "as", Direction: "in"},
				{Name: "properties", Type: "a(ia{sv})", Direction: "out"},
			}},
			{Name: "GetProperty", Args: []introspect.Arg{
				{Name: "id", Type: "i", Direction: "in"},
				{Name: "name", Type: "s", Direction: "in"},
				{Name: "value", Type: "v", Direction: "out"},
			}},
			{Name: "Event", Args: []introspect.Arg{
				{Name: "id", Type: "i", Direction: "in"},
				{Name: "eventId", Type: "s", Direction: "in"},
				{Name: "data", Type: "v", Direction: "in"},
				{Name: "timestamp", Type: "u", Direction: "in"},
			}},
			{Name: "EventGroup", Args: []introspect.Arg{
				{Name: "events", Type: "a(isvu)", Direction: "in"},
				{Name: "idErrors", Type: "ai", Direction: "out"},
			}},
			{Name: "AboutToShow", Args: []introspect.Arg{
				{Name: "id", Type: "i", Direction: "in"},
				{Name: "needUpdate", Type: "b", Direction: "out"},
			}},
			{Name: "AboutToShowGroup", Args: []introspect.Arg{
				{Name: "ids", Type: "ai", Direction: "in"},
				{Name: "updatesNeeded", Type: "ai", Direction: "out"},
				{Name: "idErrors", Type: "ai", Direction: "out"},
			}},
		},
		Signals: []introspect.Signal{{Name: "ItemsPropertiesUpdated", Args: []introspect.Arg{
			{Name: "updatedProps", Type: "a(ia{sv})", Direction: "out"},
			{Name: "removedProps", Type: "a(ias)", Direction: "out"},
		}},
			{Name: "LayoutUpdated", Args: []introspect.Arg{
				{Name: "revision", Type: "u", Direction: "out"},
				{Name: "parent", Type: "i", Direction: "out"},
			}},
			{Name: "ItemActivationRequested", Args: []introspect.Arg{
				{Name: "id", Type: "i", Direction: "out"},
				{Name: "timestamp", Type: "u", Direction: "out"},
			}},
		},
		Properties: []introspect.Property{{Name: "Version", Type: "u", Access: "read"},
			{Name: "TextDirection", Type: "s", Access: "read"},
			{Name: "Status", Type: "s", Access: "read"},
			{Name: "IconThemePath", Type: "as", Access: "read"},
		},
		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 ExportDbusmenu

func ExportDbusmenu(conn *dbus.Conn, path dbus.ObjectPath, v Dbusmenuer) error

ExportDbusmenu exports the given object that implements com.canonical.dbusmenu on the bus.

func RemoveMatchSignal

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

RemoveMatchSignal unregisters the previously registered subscription.

func UnexportDbusmenu

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

UnexportDbusmenu unexports com.canonical.dbusmenu interface on the named path.

Types

type Dbusmenu

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

Dbusmenu implements com.canonical.dbusmenu D-Bus interface.

func NewDbusmenu

func NewDbusmenu(object dbus.BusObject) *Dbusmenu

NewDbusmenu creates and allocates com.canonical.dbusmenu.

func (*Dbusmenu) AboutToShow

func (o *Dbusmenu) AboutToShow(ctx context.Context, id int32) (needUpdate bool, err error)

AboutToShow calls com.canonical.dbusmenu.AboutToShow method.

func (*Dbusmenu) AboutToShowGroup

func (o *Dbusmenu) AboutToShowGroup(ctx context.Context, ids []int32) (updatesNeeded []int32, idErrors []int32, err error)

AboutToShowGroup calls com.canonical.dbusmenu.AboutToShowGroup method.

func (*Dbusmenu) Event

func (o *Dbusmenu) Event(ctx context.Context, id int32, eventId string, data dbus.Variant, timestamp uint32) (err error)

Event calls com.canonical.dbusmenu.Event method.

func (*Dbusmenu) EventGroup

func (o *Dbusmenu) EventGroup(ctx context.Context, events []struct {
	V0 int32
	V1 string
	V2 dbus.Variant
	V3 uint32
}) (idErrors []int32, err error)

EventGroup calls com.canonical.dbusmenu.EventGroup method.

func (*Dbusmenu) GetGroupProperties

func (o *Dbusmenu) GetGroupProperties(ctx context.Context, ids []int32, propertyNames []string) (properties []struct {
	V0 int32
	V1 map[string]dbus.Variant
}, err error)

GetGroupProperties calls com.canonical.dbusmenu.GetGroupProperties method.

func (*Dbusmenu) GetIconThemePath

func (o *Dbusmenu) GetIconThemePath(ctx context.Context) (iconThemePath []string, err error)

GetIconThemePath gets com.canonical.dbusmenu.IconThemePath property.

func (*Dbusmenu) GetLayout

func (o *Dbusmenu) GetLayout(ctx context.Context, parentId int32, recursionDepth int32, propertyNames []string) (revision uint32, layout struct {
	V0 int32
	V1 map[string]dbus.Variant
	V2 []dbus.Variant
}, err error)

GetLayout calls com.canonical.dbusmenu.GetLayout method.

func (*Dbusmenu) GetProperty

func (o *Dbusmenu) GetProperty(ctx context.Context, id int32, name string) (value dbus.Variant, err error)

GetProperty calls com.canonical.dbusmenu.GetProperty method.

func (*Dbusmenu) GetStatus

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

GetStatus gets com.canonical.dbusmenu.Status property.

func (*Dbusmenu) GetTextDirection

func (o *Dbusmenu) GetTextDirection(ctx context.Context) (textDirection string, err error)

GetTextDirection gets com.canonical.dbusmenu.TextDirection property.

func (*Dbusmenu) GetVersion

func (o *Dbusmenu) GetVersion(ctx context.Context) (version uint32, err error)

GetVersion gets com.canonical.dbusmenu.Version property.

type Dbusmenu_ItemActivationRequestedSignal

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

Dbusmenu_ItemActivationRequestedSignal represents com.canonical.dbusmenu.ItemActivationRequested signal.

func (*Dbusmenu_ItemActivationRequestedSignal) Interface

Interface returns the signal's interface.

func (*Dbusmenu_ItemActivationRequestedSignal) Name

Name returns the signal's name.

func (*Dbusmenu_ItemActivationRequestedSignal) Sender

Sender returns the signal's sender unique name.

type Dbusmenu_ItemActivationRequestedSignalBody

type Dbusmenu_ItemActivationRequestedSignalBody struct {
	Id        int32
	Timestamp uint32
}

Dbusmenu_ItemActivationRequestedSignalBody is body container.

type Dbusmenu_ItemsPropertiesUpdatedSignal

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

Dbusmenu_ItemsPropertiesUpdatedSignal represents com.canonical.dbusmenu.ItemsPropertiesUpdated signal.

func (*Dbusmenu_ItemsPropertiesUpdatedSignal) Interface

Interface returns the signal's interface.

func (*Dbusmenu_ItemsPropertiesUpdatedSignal) Name

Name returns the signal's name.

func (*Dbusmenu_ItemsPropertiesUpdatedSignal) Sender

Sender returns the signal's sender unique name.

type Dbusmenu_ItemsPropertiesUpdatedSignalBody

type Dbusmenu_ItemsPropertiesUpdatedSignalBody struct {
	UpdatedProps []struct {
		V0 int32
		V1 map[string]dbus.Variant
	}
	RemovedProps []struct {
		V0 int32
		V1 []string
	}
}

Dbusmenu_ItemsPropertiesUpdatedSignalBody is body container.

type Dbusmenu_LayoutUpdatedSignal

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

Dbusmenu_LayoutUpdatedSignal represents com.canonical.dbusmenu.LayoutUpdated signal.

func (*Dbusmenu_LayoutUpdatedSignal) Interface

func (s *Dbusmenu_LayoutUpdatedSignal) Interface() string

Interface returns the signal's interface.

func (*Dbusmenu_LayoutUpdatedSignal) Name

Name returns the signal's name.

func (*Dbusmenu_LayoutUpdatedSignal) Sender

Sender returns the signal's sender unique name.

type Dbusmenu_LayoutUpdatedSignalBody

type Dbusmenu_LayoutUpdatedSignalBody struct {
	Revision uint32
	Parent   int32
}

Dbusmenu_LayoutUpdatedSignalBody is body container.

type Dbusmenuer

type Dbusmenuer interface {
	// GetLayout is com.canonical.dbusmenu.GetLayout method.
	GetLayout(parentId int32, recursionDepth int32, propertyNames []string) (revision uint32, layout struct {
		V0 int32
		V1 map[string]dbus.Variant
		V2 []dbus.Variant
	}, err *dbus.Error)
	// GetGroupProperties is com.canonical.dbusmenu.GetGroupProperties method.
	GetGroupProperties(ids []int32, propertyNames []string) (properties []struct {
		V0 int32
		V1 map[string]dbus.Variant
	}, err *dbus.Error)
	// GetProperty is com.canonical.dbusmenu.GetProperty method.
	GetProperty(id int32, name string) (value dbus.Variant, err *dbus.Error)
	// Event is com.canonical.dbusmenu.Event method.
	Event(id int32, eventId string, data dbus.Variant, timestamp uint32) (err *dbus.Error)
	// EventGroup is com.canonical.dbusmenu.EventGroup method.
	EventGroup(events []struct {
		V0 int32
		V1 string
		V2 dbus.Variant
		V3 uint32
	}) (idErrors []int32, err *dbus.Error)
	// AboutToShow is com.canonical.dbusmenu.AboutToShow method.
	AboutToShow(id int32) (needUpdate bool, err *dbus.Error)
	// AboutToShowGroup is com.canonical.dbusmenu.AboutToShowGroup method.
	AboutToShowGroup(ids []int32) (updatesNeeded []int32, idErrors []int32, err *dbus.Error)
}

Dbusmenuer is com.canonical.dbusmenu interface.

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 UnimplementedDbusmenu

type UnimplementedDbusmenu struct{}

UnimplementedDbusmenu can be embedded to have forward compatible server implementations.

func (*UnimplementedDbusmenu) AboutToShow

func (*UnimplementedDbusmenu) AboutToShow(id int32) (needUpdate bool, err *dbus.Error)

func (*UnimplementedDbusmenu) AboutToShowGroup

func (*UnimplementedDbusmenu) AboutToShowGroup(ids []int32) (updatesNeeded []int32, idErrors []int32, err *dbus.Error)

func (*UnimplementedDbusmenu) Event

func (*UnimplementedDbusmenu) Event(id int32, eventId string, data dbus.Variant, timestamp uint32) (err *dbus.Error)

func (*UnimplementedDbusmenu) EventGroup

func (*UnimplementedDbusmenu) EventGroup(events []struct {
	V0 int32
	V1 string
	V2 dbus.Variant
	V3 uint32
}) (idErrors []int32, err *dbus.Error)

func (*UnimplementedDbusmenu) GetGroupProperties

func (*UnimplementedDbusmenu) GetGroupProperties(ids []int32, propertyNames []string) (properties []struct {
	V0 int32
	V1 map[string]dbus.Variant
}, err *dbus.Error)

func (*UnimplementedDbusmenu) GetLayout

func (*UnimplementedDbusmenu) GetLayout(parentId int32, recursionDepth int32, propertyNames []string) (revision uint32, layout struct {
	V0 int32
	V1 map[string]dbus.Variant
	V2 []dbus.Variant
}, err *dbus.Error)

func (*UnimplementedDbusmenu) GetProperty

func (*UnimplementedDbusmenu) GetProperty(id int32, name string) (value dbus.Variant, err *dbus.Error)

Jump to

Keyboard shortcuts

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