Documentation
¶
Index ¶
- type AudioController
- type CapsLockState
- type Config
- type Controller
- type Daemon
- type DisplayController
- type ErrInvalidActionCmd
- type ErrInvalidShortcutType
- type ErrIsNil
- type ErrShortcutNotFound
- type KbdLightController
- type Manager
- func (m *Manager) Add(name, action, keystroke string) (string, bool, *dbus.Error)
- func (m *Manager) AddCustomShortcut(name, action, keystroke string) (id string, type0 int32, busErr *dbus.Error)
- func (m *Manager) AddShortcutKeystroke(id string, type0 int32, keystroke string) *dbus.Error
- func (m *Manager) CheckAvaliable(keystroke string) (bool, string, *dbus.Error)
- func (m *Manager) ClearShortcutKeystrokes(id string, type0 int32) *dbus.Error
- func (m *Manager) Delete(id string, ty int32) *dbus.Error
- func (m *Manager) DeleteCustomShortcut(id string) *dbus.Error
- func (m *Manager) DeleteShortcutKeystroke(id string, type0 int32, keystroke string) *dbus.Error
- func (m *Manager) Disable(id string, ty int32) *dbus.Error
- func (*Manager) GetInterfaceName() string
- func (m *Manager) GetShortcut(id string, type0 int32) (string, *dbus.Error)
- func (m *Manager) GrabScreen() *dbus.Error
- func (m *Manager) List() (string, *dbus.Error)
- func (m *Manager) ListAllShortcuts() (string, *dbus.Error)
- func (m *Manager) ListShortcutsByType(type0 int32) (string, *dbus.Error)
- func (m *Manager) LookupConflictingShortcut(keystroke string) (string, *dbus.Error)
- func (m *Manager) ModifiedAccel(id string, ty int32, keystroke string, add bool) (bool, string, *dbus.Error)
- func (m *Manager) ModifyCustomShortcut(id, name, cmd, keystroke string) *dbus.Error
- func (m *Manager) Query(id string, ty int32) (string, *dbus.Error)
- func (m *Manager) Reset() *dbus.Error
- func (m *Manager) SelectKeystroke() *dbus.Error
- func (m *Manager) SetNumLockState(state int32) *dbus.Error
- type MediaPlayerController
- type NumLockState
- type SKLState
- type TouchPadController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioController ¶
type AudioController struct {
// contains filtered or unexported fields
}
func NewAudioController ¶
func NewAudioController(sessionConn *dbus.Conn, backlightHelper *backlight.Backlight) *AudioController
func (*AudioController) Destroy ¶
func (c *AudioController) Destroy()
func (*AudioController) ExecCmd ¶
func (c *AudioController) ExecCmd(cmd ActionCmd) error
func (*AudioController) Name ¶
func (*AudioController) Name() string
type CapsLockState ¶
type CapsLockState uint
const ( CapsLockOff CapsLockState = iota CapsLockOn CapsLockUnknown )
type Daemon ¶
type Daemon struct { *loader.ModuleBase // contains filtered or unexported fields }
type DisplayController ¶
type DisplayController struct {
// contains filtered or unexported fields
}
func NewDisplayController ¶
func NewDisplayController(backlightHelper *backlight.Backlight, sessionConn *dbus.Conn) *DisplayController
func (*DisplayController) ExecCmd ¶
func (c *DisplayController) ExecCmd(cmd ActionCmd) error
func (*DisplayController) Name ¶
func (*DisplayController) Name() string
type ErrInvalidActionCmd ¶
type ErrInvalidActionCmd struct {
Cmd ActionCmd
}
func (ErrInvalidActionCmd) Error ¶
func (err ErrInvalidActionCmd) Error() string
type ErrInvalidShortcutType ¶
type ErrInvalidShortcutType struct {
Type int32
}
func (ErrInvalidShortcutType) Error ¶
func (err ErrInvalidShortcutType) Error() string
type ErrShortcutNotFound ¶
func (ErrShortcutNotFound) Error ¶
func (err ErrShortcutNotFound) Error() string
type KbdLightController ¶
type KbdLightController struct {
// contains filtered or unexported fields
}
func NewKbdLightController ¶
func NewKbdLightController(backlightHelper *backlight.Backlight) *KbdLightController
func (*KbdLightController) ExecCmd ¶
func (c *KbdLightController) ExecCmd(cmd ActionCmd) error
func (*KbdLightController) Name ¶
func (c *KbdLightController) Name() string
type Manager ¶
type Manager struct { // properties NumLockState gsprop.Enum ShortcutSwitchLayout gsprop.Uint `prop:"access:rw"` // contains filtered or unexported fields }
func (*Manager) Add ¶
Add add custom shortcut
name: the name action: the command line keystroke: the keystroke ret0: "" ret1: false ret2: error
func (*Manager) AddCustomShortcut ¶
func (*Manager) AddShortcutKeystroke ¶
func (*Manager) CheckAvaliable ¶
CheckAvaliable 检查快捷键序列是否可用 返回值1 是否可用; 返回值2 与之冲突的快捷键的详细信息,是JSON字符串。如果没有冲突,则为空字符串。
func (*Manager) ClearShortcutKeystrokes ¶
func (*Manager) Delete ¶
Delete delete shortcut by id and type
id: the specail id ty: the special type ret0: error info
func (*Manager) DeleteCustomShortcut ¶
func (*Manager) DeleteShortcutKeystroke ¶
func (*Manager) Disable ¶
Disable cancel the shortcut
func (*Manager) GetShortcut ¶
func (*Manager) GrabScreen ¶
func (m *Manager) GrabScreen() *dbus.Error
GrabScreen grab screen for getting the key pressed
func (*Manager) ListShortcutsByType ¶
func (*Manager) LookupConflictingShortcut ¶
func (*Manager) ModifiedAccel ¶
func (m *Manager) ModifiedAccel(id string, ty int32, keystroke string, add bool) (bool, string, *dbus.Error)
ModifiedAccel modify shortcut keystroke
id: the special id ty: the special type keystroke: new keystroke add: if true, add keystroke for the special id; else delete it ret0: always equal false ret1: always equal "" ret2: error
func (*Manager) ModifyCustomShortcut ¶
ModifyCustomShortcut modify custom shortcut
id: shortcut id name: new name cmd: new commandline keystroke: new keystroke
func (*Manager) Query ¶
Query query shortcut detail info by id and type
type MediaPlayerController ¶
type MediaPlayerController struct {
// contains filtered or unexported fields
}
func NewMediaPlayerController ¶
func NewMediaPlayerController(systemSigLoop *dbusutil.SignalLoop, sessionConn *dbus.Conn) *MediaPlayerController
func (*MediaPlayerController) Destroy ¶
func (c *MediaPlayerController) Destroy()
func (*MediaPlayerController) ExecCmd ¶
func (c *MediaPlayerController) ExecCmd(cmd ActionCmd) error
func (*MediaPlayerController) Name ¶
func (c *MediaPlayerController) Name() string
type NumLockState ¶
type NumLockState uint
const ( NumLockOff NumLockState = iota NumLockOn NumLockUnknown )
type TouchPadController ¶
type TouchPadController struct {
// contains filtered or unexported fields
}
func NewTouchPadController ¶
func NewTouchPadController(sessionConn *dbus.Conn) *TouchPadController
func (*TouchPadController) ExecCmd ¶
func (c *TouchPadController) ExecCmd(cmd ActionCmd) error
func (*TouchPadController) Name ¶
func (*TouchPadController) Name() string