notificationtest

package
v0.0.0-...-f6d5d5b Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: GPL-3.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

Jump to

Keyboard shortcuts

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