Documentation ¶
Overview ¶
Code generated by dbus-codegen-go DO NOT EDIT.
Index ¶
- Constants
- Variables
- func AddMatchSignal(conn *dbus.Conn, s Signal, opts ...dbus.MatchOption) error
- func Emit(conn *dbus.Conn, s Signal) error
- func ExportDbusmenu(conn *dbus.Conn, path dbus.ObjectPath, v Dbusmenuer) error
- func RemoveMatchSignal(conn *dbus.Conn, s Signal, opts ...dbus.MatchOption) error
- func UnexportDbusmenu(conn *dbus.Conn, path dbus.ObjectPath) error
- type Dbusmenu
- func (o *Dbusmenu) AboutToShow(ctx context.Context, id int32) (needUpdate bool, err error)
- func (o *Dbusmenu) AboutToShowGroup(ctx context.Context, ids []int32) (updatesNeeded []int32, idErrors []int32, err error)
- func (o *Dbusmenu) Event(ctx context.Context, id int32, eventId string, data dbus.Variant, ...) (err error)
- func (o *Dbusmenu) EventGroup(ctx context.Context, events []struct{ ... }) (idErrors []int32, err error)
- func (o *Dbusmenu) GetGroupProperties(ctx context.Context, ids []int32, propertyNames []string) (properties []struct{ ... }, err error)
- func (o *Dbusmenu) GetIconThemePath(ctx context.Context) (iconThemePath []string, err error)
- func (o *Dbusmenu) GetLayout(ctx context.Context, parentId int32, recursionDepth int32, ...) (revision uint32, layout struct{ ... }, err error)
- func (o *Dbusmenu) GetProperty(ctx context.Context, id int32, name string) (value dbus.Variant, err error)
- func (o *Dbusmenu) GetStatus(ctx context.Context) (status string, err error)
- func (o *Dbusmenu) GetTextDirection(ctx context.Context) (textDirection string, err error)
- func (o *Dbusmenu) GetVersion(ctx context.Context) (version uint32, err error)
- type Dbusmenu_ItemActivationRequestedSignal
- type Dbusmenu_ItemActivationRequestedSignalBody
- type Dbusmenu_ItemsPropertiesUpdatedSignal
- type Dbusmenu_ItemsPropertiesUpdatedSignalBody
- type Dbusmenu_LayoutUpdatedSignal
- type Dbusmenu_LayoutUpdatedSignalBody
- type Dbusmenuer
- type Signal
- type UnimplementedDbusmenu
- func (*UnimplementedDbusmenu) AboutToShow(id int32) (needUpdate bool, err *dbus.Error)
- func (*UnimplementedDbusmenu) AboutToShowGroup(ids []int32) (updatesNeeded []int32, idErrors []int32, err *dbus.Error)
- func (*UnimplementedDbusmenu) Event(id int32, eventId string, data dbus.Variant, timestamp uint32) (err *dbus.Error)
- func (*UnimplementedDbusmenu) EventGroup(events []struct{ ... }) (idErrors []int32, err *dbus.Error)
- func (*UnimplementedDbusmenu) GetGroupProperties(ids []int32, propertyNames []string) (properties []struct{ ... }, err *dbus.Error)
- func (*UnimplementedDbusmenu) GetLayout(parentId int32, recursionDepth int32, propertyNames []string) (revision uint32, layout struct{ ... }, err *dbus.Error)
- func (*UnimplementedDbusmenu) GetProperty(id int32, name string) (value dbus.Variant, err *dbus.Error)
Constants ¶
const (
)Interface name constants.
Variables ¶
var ErrUnknownSignal = errors.New("unknown signal")
ErrUnknownSignal is returned by LookupSignal when a signal cannot be resolved.
var ( 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{}, } )IntrospectDataDbusmenu =
Functions ¶
func AddMatchSignal ¶
AddMatchSignal registers a match rule for the given signal, opts are appended to the automatically generated signal's rules.
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 ¶
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 ¶
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 ¶
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) GetTextDirection ¶
GetTextDirection gets com.canonical.dbusmenu.TextDirection property.
type Dbusmenu_ItemActivationRequestedSignal ¶
type Dbusmenu_ItemActivationRequestedSignal struct { // contains filtered or unexported fields }
Dbusmenu_ItemActivationRequestedSignal represents com.canonical.dbusmenu.ItemActivationRequested signal.
func (*Dbusmenu_ItemActivationRequestedSignal) Interface ¶
func (s *Dbusmenu_ItemActivationRequestedSignal) Interface() string
Interface returns the signal's interface.
func (*Dbusmenu_ItemActivationRequestedSignal) Name ¶
func (s *Dbusmenu_ItemActivationRequestedSignal) Name() string
Name returns the signal's name.
func (*Dbusmenu_ItemActivationRequestedSignal) Sender ¶
func (s *Dbusmenu_ItemActivationRequestedSignal) Sender() string
Sender returns the signal's sender unique name.
type Dbusmenu_ItemActivationRequestedSignalBody ¶
type Dbusmenu_ItemActivationRequestedSignalBody struct {}
Dbusmenu_ItemActivationRequestedSignalBody is body container.
type Dbusmenu_ItemsPropertiesUpdatedSignal ¶
type Dbusmenu_ItemsPropertiesUpdatedSignal struct { // contains filtered or unexported fields }
Dbusmenu_ItemsPropertiesUpdatedSignal represents com.canonical.dbusmenu.ItemsPropertiesUpdated signal.
func (*Dbusmenu_ItemsPropertiesUpdatedSignal) Interface ¶
func (s *Dbusmenu_ItemsPropertiesUpdatedSignal) Interface() string
Interface returns the signal's interface.
func (*Dbusmenu_ItemsPropertiesUpdatedSignal) Name ¶
func (s *Dbusmenu_ItemsPropertiesUpdatedSignal) Name() string
Name returns the signal's name.
func (*Dbusmenu_ItemsPropertiesUpdatedSignal) Sender ¶
func (s *Dbusmenu_ItemsPropertiesUpdatedSignal) Sender() string
Sender returns the signal's sender unique name.
type Dbusmenu_ItemsPropertiesUpdatedSignalBody ¶
type Dbusmenu_ItemsPropertiesUpdatedSignalBody struct { int32 V1 map[string]dbus.Variant } V0 int32 V1 []string } }V0
Dbusmenu_ItemsPropertiesUpdatedSignalBody is body container.
type Dbusmenu_LayoutUpdatedSignal ¶
type Dbusmenu_LayoutUpdatedSignal struct { // 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 ¶
func (s *Dbusmenu_LayoutUpdatedSignal) Name() string
Name returns the signal's name.
func (*Dbusmenu_LayoutUpdatedSignal) Sender ¶
func (s *Dbusmenu_LayoutUpdatedSignal) Sender() string
Sender returns the signal's sender unique name.
type Dbusmenu_LayoutUpdatedSignalBody ¶
type Dbusmenu_LayoutUpdatedSignalBody struct {}
Dbusmenu_LayoutUpdatedSignalBody is body container.
type Dbusmenuer ¶
type Dbusmenuer interface { int32, recursionDepth int32, propertyNames []string) (revision uint32, layout struct { V0 int32 V1 map[string]dbus.Variant V2 []dbus.Variant }, err *dbus.Error) GetGroupProperties(ids []int32, propertyNames []string) (properties []struct { V0 int32 V1 map[string]dbus.Variant }, err *dbus.Error) GetProperty(id int32, name string) (value dbus.Variant, err *dbus.Error) Event(id int32, eventId string, data dbus.Variant, timestamp uint32) (err *dbus.Error) EventGroup(events []struct { V0 int32 V1 string V2 dbus.Variant V3 uint32 }) (idErrors []int32, err *dbus.Error) AboutToShow(id int32) (needUpdate bool, err *dbus.Error) AboutToShowGroup(ids []int32) (updatesNeeded []int32, idErrors []int32, err *dbus.Error) }GetLayout(parentId
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 ¶
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) GetProperty ¶
func (*UnimplementedDbusmenu) GetProperty(id int32, name string) (value dbus.Variant, err *dbus.Error)