Documentation ¶
Overview ¶
Service dbus provides access to DBUS notifications and system state.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = &services.Module{ Name: "dbus", Version: "1.0", NewInstance: NewService, }
Functions ¶
This section is empty.
Types ¶
type LogindObject ¶
func NewLogindObject ¶
func NewLogindObject(conn *dbus.Conn) *LogindObject
func (*LogindObject) PowerOff ¶
func (o *LogindObject) PowerOff() error
type MprisPlayer ¶
type MprisPlayer struct { Id string `json:"-"` Name string `json:"name"` Identity string `json:"identity"` Status string `json:"status"` Title string `json:"title,omitempty"` Artist string `json:"artist,omitempty"` Album string `json:"album,omitempty"` Url string `json:"url,omitempty"` }
func (*MprisPlayer) UpdateProperties ¶
func (p *MprisPlayer) UpdateProperties(props map[string]dbus.Variant)
type NotificationObject ¶
func NewNotificationObject ¶
func NewNotificationObject(conn *dbus.Conn) *NotificationObject
func (*NotificationObject) Notify ¶
func (o *NotificationObject) Notify(summary, body string) error
Click to show internal directories.
Click to hide internal directories.