Documentation ¶
Overview ¶
Package mgrdbus provides a Dbus service (and client) for external applets management.
Index ¶
- func ListServices() (string, error)
- func StartApplet(a, b, c, d, e, f, g string) error
- type Manager
- func (load *Manager) CountActive() int
- func (load *Manager) GetApplets(name string) (list []cdtype.AppInstance)
- func (load *Manager) IsActive(path string) bool
- func (load *Manager) ListServices() (string, *dbus.Error)
- func (load *Manager) OnSignal(path string, s *dbus.Signal) bool
- func (load *Manager) StartApplet(a, b, c, d, e, f, g, h string) *dbus.Error
- func (load *Manager) StopApplet(path string)
- func (load *Manager) Tick()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListServices ¶
ListServices forwards action to get the list of active services.
func StartApplet ¶
StartApplet forwards action to start a new applet. Args are those sent by the dock in the started applet command line.
Types ¶
type Manager ¶
type Manager struct { *srvdbus.Loader // Extends the applet service loader to provide its methods on the bus. // contains filtered or unexported fields }
Manager is an external applets manager for cairo-dock.
func NewManager ¶
NewManager creates a loader with the given list of applets services.
func (*Manager) CountActive ¶
CountActive returns the number of managed applets.
func (*Manager) GetApplets ¶
func (load *Manager) GetApplets(name string) (list []cdtype.AppInstance)
GetApplets return an applet instance.
func (*Manager) ListServices ¶
ListServices displays active services.
func (*Manager) StartApplet ¶
StartApplet creates a new applet instance with args from command line.
func (*Manager) StopApplet ¶
StopApplet close the applet instance.
Click to show internal directories.
Click to hide internal directories.