notificationtest

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FdoNotification

type FdoNotification struct {
	ID      uint32
	AppName string
	Icon    string
	Summary string
	Body    string
	Actions []string
	Hints   map[string]dbus.Variant
	Expires int32
}

type FdoServer

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

func NewFdoServer

func NewFdoServer() (*FdoServer, error)

func (*FdoServer) Close

func (server *FdoServer) Close(id, reason uint32) error

func (*FdoServer) Get

func (server *FdoServer) Get(id uint32) *FdoNotification

func (*FdoServer) GetAll

func (server *FdoServer) GetAll() []*FdoNotification

func (*FdoServer) InvokeAction

func (server *FdoServer) InvokeAction(id uint32, actionKey string) error

func (*FdoServer) SetError

func (server *FdoServer) SetError(err *dbus.Error)

SetError sets an error to be returned by the D-Bus interface.

If not nil, all the fdoApi methods will return the provided error in place of performing their usual task.

func (*FdoServer) Stop

func (server *FdoServer) Stop() error

type GtkNotification

type GtkNotification struct {
	DesktopID string
	ID        string
	Info      map[string]dbus.Variant
}

type GtkServer

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

func NewGtkServer

func NewGtkServer() (*GtkServer, error)

func (*GtkServer) Close

func (server *GtkServer) Close(id string) error

func (*GtkServer) Get

func (server *GtkServer) Get(id string) *GtkNotification

func (*GtkServer) GetAll

func (server *GtkServer) GetAll() []*GtkNotification

func (*GtkServer) ReleaseName

func (server *GtkServer) ReleaseName() error

func (*GtkServer) SetError

func (server *GtkServer) SetError(err *dbus.Error)

SetError sets an error to be returned by the D-Bus interface.

If not nil, all the gtkApi methods will return the provided error in place of performing their usual task.

func (*GtkServer) Stop

func (server *GtkServer) Stop() error

Jump to

Keyboard shortcuts

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