Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.NM.Objects.SettingBluetooth
Description
Bluetooth Settings
Synopsis
- newtype SettingBluetooth = SettingBluetooth (ManagedPtr SettingBluetooth)
- class (GObject o, IsDescendantOf SettingBluetooth o) => IsSettingBluetooth o
- toSettingBluetooth :: (MonadIO m, IsSettingBluetooth o) => o -> m SettingBluetooth
- settingBluetoothGetBdaddr :: (HasCallStack, MonadIO m, IsSettingBluetooth a) => a -> m Text
- settingBluetoothGetConnectionType :: (HasCallStack, MonadIO m, IsSettingBluetooth a) => a -> m Text
- settingBluetoothNew :: (HasCallStack, MonadIO m) => m SettingBluetooth
- clearSettingBluetoothBdaddr :: (MonadIO m, IsSettingBluetooth o) => o -> m ()
- constructSettingBluetoothBdaddr :: (IsSettingBluetooth o, MonadIO m) => Text -> m (GValueConstruct o)
- getSettingBluetoothBdaddr :: (MonadIO m, IsSettingBluetooth o) => o -> m Text
- setSettingBluetoothBdaddr :: (MonadIO m, IsSettingBluetooth o) => o -> Text -> m ()
- clearSettingBluetoothType :: (MonadIO m, IsSettingBluetooth o) => o -> m ()
- constructSettingBluetoothType :: (IsSettingBluetooth o, MonadIO m) => Text -> m (GValueConstruct o)
- getSettingBluetoothType :: (MonadIO m, IsSettingBluetooth o) => o -> m (Maybe Text)
- setSettingBluetoothType :: (MonadIO m, IsSettingBluetooth o) => o -> Text -> m ()
Exported types
newtype SettingBluetooth Source #
Memory-managed wrapper type.
Constructors
SettingBluetooth (ManagedPtr SettingBluetooth) |
Instances
Eq SettingBluetooth Source # | |
Defined in GI.NM.Objects.SettingBluetooth Methods (==) :: SettingBluetooth -> SettingBluetooth -> Bool # (/=) :: SettingBluetooth -> SettingBluetooth -> Bool # | |
GObject SettingBluetooth Source # | |
Defined in GI.NM.Objects.SettingBluetooth | |
ManagedPtrNewtype SettingBluetooth Source # | |
Defined in GI.NM.Objects.SettingBluetooth Methods toManagedPtr :: SettingBluetooth -> ManagedPtr SettingBluetooth # | |
TypedObject SettingBluetooth Source # | |
Defined in GI.NM.Objects.SettingBluetooth | |
HasParentTypes SettingBluetooth Source # | |
Defined in GI.NM.Objects.SettingBluetooth | |
IsGValue (Maybe SettingBluetooth) Source # | Convert |
Defined in GI.NM.Objects.SettingBluetooth Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe SettingBluetooth -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe SettingBluetooth) # | |
type ParentTypes SettingBluetooth Source # | |
Defined in GI.NM.Objects.SettingBluetooth |
class (GObject o, IsDescendantOf SettingBluetooth o) => IsSettingBluetooth o Source #
Type class for types which can be safely cast to SettingBluetooth
, for instance with toSettingBluetooth
.
Instances
(GObject o, IsDescendantOf SettingBluetooth o) => IsSettingBluetooth o Source # | |
Defined in GI.NM.Objects.SettingBluetooth |
toSettingBluetooth :: (MonadIO m, IsSettingBluetooth o) => o -> m SettingBluetooth Source #
Cast to SettingBluetooth
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, compare, diff, duplicate, enumerateValues, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, optionClearByName, optionGet, optionGetAllNames, optionGetBoolean, optionGetUint32, optionSet, optionSetBoolean, optionSetUint32, ref, refSink, runDispose, stealData, stealQdata, thawNotify, toString, unref, verify, verifySecrets, watchClosure.
Getters
getBdaddr, getConnectionType, getData, getDbusPropertyType, getName, getProperty, getQdata, getSecretFlags.
Setters
getBdaddr
settingBluetoothGetBdaddr Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingBluetooth a) | |
=> a |
|
-> m Text | Returns: the Bluetooth address |
Gets the Bluetooth address of the remote device which this setting describes a connection to.
getConnectionType
settingBluetoothGetConnectionType Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingBluetooth a) | |
=> a |
|
-> m Text | Returns: the type, either |
Returns the connection method for communicating with the remote device (i.e. either DUN to a DUN-capable device or PANU to a NAP-capable device).
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m SettingBluetooth | Returns: the new empty |
Creates a new SettingBluetooth
object with default values.
Properties
bdaddr
The Bluetooth address of the device.
clearSettingBluetoothBdaddr :: (MonadIO m, IsSettingBluetooth o) => o -> m () Source #
Set the value of the “bdaddr
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#bdaddr
constructSettingBluetoothBdaddr :: (IsSettingBluetooth o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “bdaddr
” property. This is rarely needed directly, but it is used by new
.
getSettingBluetoothBdaddr :: (MonadIO m, IsSettingBluetooth o) => o -> m Text Source #
Get the value of the “bdaddr
” property.
When overloading is enabled, this is equivalent to
get
settingBluetooth #bdaddr
setSettingBluetoothBdaddr :: (MonadIO m, IsSettingBluetooth o) => o -> Text -> m () Source #
Set the value of the “bdaddr
” property.
When overloading is enabled, this is equivalent to
set
settingBluetooth [ #bdaddr:=
value ]
type
Either "dun" for Dial-Up Networking connections or "panu" for Personal Area Networking connections to devices supporting the NAP profile.
clearSettingBluetoothType :: (MonadIO m, IsSettingBluetooth o) => o -> m () Source #
Set the value of the “type
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#type
constructSettingBluetoothType :: (IsSettingBluetooth o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “type
” property. This is rarely needed directly, but it is used by new
.
getSettingBluetoothType :: (MonadIO m, IsSettingBluetooth o) => o -> m (Maybe Text) Source #
Get the value of the “type
” property.
When overloading is enabled, this is equivalent to
get
settingBluetooth #type
setSettingBluetoothType :: (MonadIO m, IsSettingBluetooth o) => o -> Text -> m () Source #
Set the value of the “type
” property.
When overloading is enabled, this is equivalent to
set
settingBluetooth [ #type:=
value ]