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 ExportStatusNotifierWatcher(conn *dbus.Conn, path dbus.ObjectPath, v StatusNotifierWatcherer) error
- func RemoveMatchSignal(conn *dbus.Conn, s Signal, opts ...dbus.MatchOption) error
- func UnexportStatusNotifierWatcher(conn *dbus.Conn, path dbus.ObjectPath) error
- type Signal
- type StatusNotifierWatcher
- func (o *StatusNotifierWatcher) GetIsStatusNotifierHostRegistered(ctx context.Context) (isStatusNotifierHostRegistered bool, err error)
- func (o *StatusNotifierWatcher) GetProtocolVersion(ctx context.Context) (protocolVersion int32, err error)
- func (o *StatusNotifierWatcher) GetRegisteredStatusNotifierItems(ctx context.Context) (registeredStatusNotifierItems []string, err error)
- func (o *StatusNotifierWatcher) RegisterStatusNotifierHost(ctx context.Context, service string) (err error)
- func (o *StatusNotifierWatcher) RegisterStatusNotifierItem(ctx context.Context, service string) (err error)
- type StatusNotifierWatcher_StatusNotifierHostRegisteredSignal
- type StatusNotifierWatcher_StatusNotifierHostRegisteredSignalBody
- type StatusNotifierWatcher_StatusNotifierHostUnregisteredSignal
- type StatusNotifierWatcher_StatusNotifierHostUnregisteredSignalBody
- type StatusNotifierWatcher_StatusNotifierItemRegisteredSignal
- type StatusNotifierWatcher_StatusNotifierItemRegisteredSignalBody
- type StatusNotifierWatcher_StatusNotifierItemUnregisteredSignal
- type StatusNotifierWatcher_StatusNotifierItemUnregisteredSignalBody
- type StatusNotifierWatcherer
- type UnimplementedStatusNotifierWatcher
Constants ¶
const (
InterfaceStatusNotifierWatcher = "org.kde.StatusNotifierWatcher"
)
Interface name constants.
Variables ¶
var ErrUnknownSignal = errors.New("unknown signal")
ErrUnknownSignal is returned by LookupSignal when a signal cannot be resolved.
var ( // Introspection for org.kde.StatusNotifierWatcher IntrospectDataStatusNotifierWatcher = introspect.Interface{ Name: "org.kde.StatusNotifierWatcher", Methods: []introspect.Method{{Name: "RegisterStatusNotifierItem", Args: []introspect.Arg{ {Name: "service", Type: "s", Direction: "in"}, }}, {Name: "RegisterStatusNotifierHost", Args: []introspect.Arg{ {Name: "service", Type: "s", Direction: "in"}, }}, }, Signals: []introspect.Signal{{Name: "StatusNotifierItemRegistered", Args: []introspect.Arg{ {Name: "", Type: "s", Direction: ""}, }}, {Name: "StatusNotifierItemUnregistered", Args: []introspect.Arg{ {Name: "", Type: "s", Direction: ""}, }}, {Name: "StatusNotifierHostRegistered"}, {Name: "StatusNotifierHostUnregistered"}, }, Properties: []introspect.Property{{Name: "RegisteredStatusNotifierItems", Type: "as", Access: "read", Annotations: []introspect.Annotation{ {Name: "org.qtproject.QtDBus.QtTypeName.Out0", Value: "QStringList"}, }}, {Name: "IsStatusNotifierHostRegistered", Type: "b", Access: "read"}, {Name: "ProtocolVersion", Type: "i", Access: "read"}, }, Annotations: []introspect.Annotation{}, } )
Functions ¶
func AddMatchSignal ¶
AddMatchSignal registers a match rule for the given signal, opts are appended to the automatically generated signal's rules.
func ExportStatusNotifierWatcher ¶
func ExportStatusNotifierWatcher(conn *dbus.Conn, path dbus.ObjectPath, v StatusNotifierWatcherer) error
ExportStatusNotifierWatcher exports the given object that implements org.kde.StatusNotifierWatcher on the bus.
func RemoveMatchSignal ¶
RemoveMatchSignal unregisters the previously registered subscription.
func UnexportStatusNotifierWatcher ¶
func UnexportStatusNotifierWatcher(conn *dbus.Conn, path dbus.ObjectPath) error
UnexportStatusNotifierWatcher unexports org.kde.StatusNotifierWatcher 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 ¶
LookupSignal converts the given raw D-Bus signal with variable body into one with typed structured body or returns ErrUnknownSignal error.
type StatusNotifierWatcher ¶
type StatusNotifierWatcher struct {
// contains filtered or unexported fields
}
StatusNotifierWatcher implements org.kde.StatusNotifierWatcher D-Bus interface.
func NewStatusNotifierWatcher ¶
func NewStatusNotifierWatcher(object dbus.BusObject) *StatusNotifierWatcher
NewStatusNotifierWatcher creates and allocates org.kde.StatusNotifierWatcher.
func (*StatusNotifierWatcher) GetIsStatusNotifierHostRegistered ¶
func (o *StatusNotifierWatcher) GetIsStatusNotifierHostRegistered(ctx context.Context) (isStatusNotifierHostRegistered bool, err error)
GetIsStatusNotifierHostRegistered gets org.kde.StatusNotifierWatcher.IsStatusNotifierHostRegistered property.
func (*StatusNotifierWatcher) GetProtocolVersion ¶
func (o *StatusNotifierWatcher) GetProtocolVersion(ctx context.Context) (protocolVersion int32, err error)
GetProtocolVersion gets org.kde.StatusNotifierWatcher.ProtocolVersion property.
func (*StatusNotifierWatcher) GetRegisteredStatusNotifierItems ¶
func (o *StatusNotifierWatcher) GetRegisteredStatusNotifierItems(ctx context.Context) (registeredStatusNotifierItems []string, err error)
GetRegisteredStatusNotifierItems gets org.kde.StatusNotifierWatcher.RegisteredStatusNotifierItems property.
Annotations:
@org.qtproject.QtDBus.QtTypeName.Out0 = QStringList
func (*StatusNotifierWatcher) RegisterStatusNotifierHost ¶
func (o *StatusNotifierWatcher) RegisterStatusNotifierHost(ctx context.Context, service string) (err error)
RegisterStatusNotifierHost calls org.kde.StatusNotifierWatcher.RegisterStatusNotifierHost method.
func (*StatusNotifierWatcher) RegisterStatusNotifierItem ¶
func (o *StatusNotifierWatcher) RegisterStatusNotifierItem(ctx context.Context, service string) (err error)
RegisterStatusNotifierItem calls org.kde.StatusNotifierWatcher.RegisterStatusNotifierItem method.
type StatusNotifierWatcher_StatusNotifierHostRegisteredSignal ¶
type StatusNotifierWatcher_StatusNotifierHostRegisteredSignal struct { Path dbus.ObjectPath Body *StatusNotifierWatcher_StatusNotifierHostRegisteredSignalBody // contains filtered or unexported fields }
StatusNotifierWatcher_StatusNotifierHostRegisteredSignal represents org.kde.StatusNotifierWatcher.StatusNotifierHostRegistered signal.
func (*StatusNotifierWatcher_StatusNotifierHostRegisteredSignal) Interface ¶
func (s *StatusNotifierWatcher_StatusNotifierHostRegisteredSignal) Interface() string
Interface returns the signal's interface.
func (*StatusNotifierWatcher_StatusNotifierHostRegisteredSignal) Name ¶
func (s *StatusNotifierWatcher_StatusNotifierHostRegisteredSignal) Name() string
Name returns the signal's name.
func (*StatusNotifierWatcher_StatusNotifierHostRegisteredSignal) Sender ¶
func (s *StatusNotifierWatcher_StatusNotifierHostRegisteredSignal) Sender() string
Sender returns the signal's sender unique name.
type StatusNotifierWatcher_StatusNotifierHostRegisteredSignalBody ¶
type StatusNotifierWatcher_StatusNotifierHostRegisteredSignalBody struct { }
StatusNotifierWatcher_StatusNotifierHostRegisteredSignalBody is body container.
type StatusNotifierWatcher_StatusNotifierHostUnregisteredSignal ¶
type StatusNotifierWatcher_StatusNotifierHostUnregisteredSignal struct { Path dbus.ObjectPath Body *StatusNotifierWatcher_StatusNotifierHostUnregisteredSignalBody // contains filtered or unexported fields }
StatusNotifierWatcher_StatusNotifierHostUnregisteredSignal represents org.kde.StatusNotifierWatcher.StatusNotifierHostUnregistered signal.
func (*StatusNotifierWatcher_StatusNotifierHostUnregisteredSignal) Interface ¶
func (s *StatusNotifierWatcher_StatusNotifierHostUnregisteredSignal) Interface() string
Interface returns the signal's interface.
func (*StatusNotifierWatcher_StatusNotifierHostUnregisteredSignal) Name ¶
func (s *StatusNotifierWatcher_StatusNotifierHostUnregisteredSignal) Name() string
Name returns the signal's name.
func (*StatusNotifierWatcher_StatusNotifierHostUnregisteredSignal) Sender ¶
func (s *StatusNotifierWatcher_StatusNotifierHostUnregisteredSignal) Sender() string
Sender returns the signal's sender unique name.
type StatusNotifierWatcher_StatusNotifierHostUnregisteredSignalBody ¶
type StatusNotifierWatcher_StatusNotifierHostUnregisteredSignalBody struct { }
StatusNotifierWatcher_StatusNotifierHostUnregisteredSignalBody is body container.
type StatusNotifierWatcher_StatusNotifierItemRegisteredSignal ¶
type StatusNotifierWatcher_StatusNotifierItemRegisteredSignal struct { Path dbus.ObjectPath Body *StatusNotifierWatcher_StatusNotifierItemRegisteredSignalBody // contains filtered or unexported fields }
StatusNotifierWatcher_StatusNotifierItemRegisteredSignal represents org.kde.StatusNotifierWatcher.StatusNotifierItemRegistered signal.
func (*StatusNotifierWatcher_StatusNotifierItemRegisteredSignal) Interface ¶
func (s *StatusNotifierWatcher_StatusNotifierItemRegisteredSignal) Interface() string
Interface returns the signal's interface.
func (*StatusNotifierWatcher_StatusNotifierItemRegisteredSignal) Name ¶
func (s *StatusNotifierWatcher_StatusNotifierItemRegisteredSignal) Name() string
Name returns the signal's name.
func (*StatusNotifierWatcher_StatusNotifierItemRegisteredSignal) Sender ¶
func (s *StatusNotifierWatcher_StatusNotifierItemRegisteredSignal) Sender() string
Sender returns the signal's sender unique name.
type StatusNotifierWatcher_StatusNotifierItemRegisteredSignalBody ¶
type StatusNotifierWatcher_StatusNotifierItemRegisteredSignalBody struct {
V0 string
}
StatusNotifierWatcher_StatusNotifierItemRegisteredSignalBody is body container.
type StatusNotifierWatcher_StatusNotifierItemUnregisteredSignal ¶
type StatusNotifierWatcher_StatusNotifierItemUnregisteredSignal struct { Path dbus.ObjectPath Body *StatusNotifierWatcher_StatusNotifierItemUnregisteredSignalBody // contains filtered or unexported fields }
StatusNotifierWatcher_StatusNotifierItemUnregisteredSignal represents org.kde.StatusNotifierWatcher.StatusNotifierItemUnregistered signal.
func (*StatusNotifierWatcher_StatusNotifierItemUnregisteredSignal) Interface ¶
func (s *StatusNotifierWatcher_StatusNotifierItemUnregisteredSignal) Interface() string
Interface returns the signal's interface.
func (*StatusNotifierWatcher_StatusNotifierItemUnregisteredSignal) Name ¶
func (s *StatusNotifierWatcher_StatusNotifierItemUnregisteredSignal) Name() string
Name returns the signal's name.
func (*StatusNotifierWatcher_StatusNotifierItemUnregisteredSignal) Sender ¶
func (s *StatusNotifierWatcher_StatusNotifierItemUnregisteredSignal) Sender() string
Sender returns the signal's sender unique name.
type StatusNotifierWatcher_StatusNotifierItemUnregisteredSignalBody ¶
type StatusNotifierWatcher_StatusNotifierItemUnregisteredSignalBody struct {
V0 string
}
StatusNotifierWatcher_StatusNotifierItemUnregisteredSignalBody is body container.
type StatusNotifierWatcherer ¶
type StatusNotifierWatcherer interface { // RegisterStatusNotifierItem is org.kde.StatusNotifierWatcher.RegisterStatusNotifierItem method. RegisterStatusNotifierItem(service string) (err *dbus.Error) // RegisterStatusNotifierHost is org.kde.StatusNotifierWatcher.RegisterStatusNotifierHost method. RegisterStatusNotifierHost(service string) (err *dbus.Error) }
StatusNotifierWatcherer is org.kde.StatusNotifierWatcher interface.
type UnimplementedStatusNotifierWatcher ¶
type UnimplementedStatusNotifierWatcher struct{}
UnimplementedStatusNotifierWatcher can be embedded to have forward compatible server implementations.
func (*UnimplementedStatusNotifierWatcher) RegisterStatusNotifierHost ¶
func (*UnimplementedStatusNotifierWatcher) RegisterStatusNotifierHost(service string) (err *dbus.Error)
func (*UnimplementedStatusNotifierWatcher) RegisterStatusNotifierItem ¶
func (*UnimplementedStatusNotifierWatcher) RegisterStatusNotifierItem(service string) (err *dbus.Error)