Documentation ¶
Index ¶
- type Config
- type Manager
- func (mgr *Manager) DumpState() *dbus.Error
- func (mgr *Manager) Enable(sender dbus.Sender, enableAirplaneMode bool) *dbus.Error
- func (mgr *Manager) EnableBluetooth(sender dbus.Sender, enableAirplaneMode bool) *dbus.Error
- func (mgr *Manager) EnableWifi(sender dbus.Sender, enableAirplaneMode bool) *dbus.Error
- func (v *Manager) GetExportedMethods() dbusutil.ExportedMethods
- func (mgr *Manager) GetInterfaceName() string
- type Module
- type RadioAction
- type RfkillEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config indicate each module config state when config is not set in the beginning, block is false as default
func (*Config) GetBlocked ¶
GetBlocked get ref config state if config is not stored, rfkill is unblocked as default
func (*Config) SetBlocked ¶
SetBlocked set ref config state
type Manager ¶
type Manager struct { // Airplane Mode status Enabled bool HasAirplaneMode bool WifiEnabled bool BluetoothEnabled bool // contains filtered or unexported fields }
func (*Manager) EnableBluetooth ¶
EnableBluetooth enable or disable *Airplane Mode* for bluetooth, isn't enable the bluetooth devices
func (*Manager) EnableWifi ¶
EnableWifi enable or disable *Airplane Mode* for wlan, isn't enable the wlan devices
func (*Manager) GetExportedMethods ¶
func (v *Manager) GetExportedMethods() dbusutil.ExportedMethods
func (*Manager) GetInterfaceName ¶
type Module ¶
type Module struct { *loader.ModuleBase // contains filtered or unexported fields }
func (*Module) GetDependencies ¶
type RadioAction ¶
type RadioAction int
RadioAction radio action use rfkill to operate radio
const ( NoneRadioAction RadioAction = iota BlockRadioAction UnblockRadioAction ListRadioAction MonitorRadioAction )
func (RadioAction) ToRfkillState ¶
func (action RadioAction) ToRfkillState() rfkillState
ToRfkillState convert to rfkill action
type RfkillEvent ¶
type RfkillEvent struct { Index uint32 Typ rfkillType Op rfkillOp Soft rfkillState Hard rfkillState }
RfkillEvent rfkill event
Click to show internal directories.
Click to hide internal directories.