godock: github.com/sqp/godock/libs/srvdbus/mgrdbus Index | Files

package mgrdbus

import "github.com/sqp/godock/libs/srvdbus/mgrdbus"

Package mgrdbus provides a Dbus service (and client) for external applets management.


Package Files


func ListServices Uses

func ListServices() (string, error)

ListServices forwards action to get the list of active services.

func StartApplet Uses

func StartApplet(a, b, c, d, e, f, g string) error

StartApplet forwards action to start a new applet. Args are those sent by the dock in the started applet command line.

type Manager Uses

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 Uses

func NewManager(loader *srvdbus.Loader, log cdtype.Logger) *Manager

NewManager creates a loader with the given list of applets services.

func (*Manager) CountActive Uses

func (load *Manager) CountActive() int

CountActive returns the number of managed applets.

func (*Manager) GetApplets Uses

func (load *Manager) GetApplets(name string) (list []cdtype.AppInstance)

GetApplets return an applet instance.

func (*Manager) IsActive Uses

func (load *Manager) IsActive(path string) bool

IsActive returns whether the given applet path is active or not.

func (*Manager) ListServices Uses

func (load *Manager) ListServices() (string, *dbus.Error)

ListServices displays active services.

func (*Manager) OnSignal Uses

func (load *Manager) OnSignal(path string, s *dbus.Signal) bool

OnSignal forwards a signal event to the applet backend.

func (*Manager) StartApplet Uses

func (load *Manager) StartApplet(a, b, c, d, e, f, g, h string) *dbus.Error

StartApplet creates a new applet instance with args from command line.

func (*Manager) StopApplet Uses

func (load *Manager) StopApplet(path string)

StopApplet close the applet instance.

func (*Manager) Tick Uses

func (load *Manager) Tick()

Tick ticks all applets pollers.

Package mgrdbus imports 8 packages (graph) and is imported by 1 packages. Updated 2016-09-14. Refresh now. Tools for package owners.