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.SettingUser
Description
General User Profile Settings
Since: 1.8
Synopsis
- newtype SettingUser = SettingUser (ManagedPtr SettingUser)
- class (GObject o, IsDescendantOf SettingUser o) => IsSettingUser o
- toSettingUser :: (MonadIO m, IsSettingUser o) => o -> m SettingUser
- settingUserCheckKey :: (HasCallStack, MonadIO m) => Text -> m ()
- settingUserCheckVal :: (HasCallStack, MonadIO m) => Text -> m ()
- settingUserGetData :: (HasCallStack, MonadIO m, IsSettingUser a) => a -> Text -> m Text
- settingUserGetKeys :: (HasCallStack, MonadIO m, IsSettingUser a) => a -> m [Text]
- settingUserNew :: (HasCallStack, MonadIO m) => m SettingUser
- settingUserSetData :: (HasCallStack, MonadIO m, IsSettingUser a) => a -> Text -> Maybe Text -> m ()
- clearSettingUserData :: (MonadIO m, IsSettingUser o) => o -> m ()
- constructSettingUserData :: (IsSettingUser o, MonadIO m) => Map Text Text -> m (GValueConstruct o)
- getSettingUserData :: (MonadIO m, IsSettingUser o) => o -> m (Maybe (Map Text Text))
- setSettingUserData :: (MonadIO m, IsSettingUser o) => o -> Map Text Text -> m ()
Exported types
newtype SettingUser Source #
Memory-managed wrapper type.
Constructors
SettingUser (ManagedPtr SettingUser) |
Instances
Eq SettingUser Source # | |
Defined in GI.NM.Objects.SettingUser | |
GObject SettingUser Source # | |
Defined in GI.NM.Objects.SettingUser | |
ManagedPtrNewtype SettingUser Source # | |
Defined in GI.NM.Objects.SettingUser Methods | |
TypedObject SettingUser Source # | |
Defined in GI.NM.Objects.SettingUser | |
HasParentTypes SettingUser Source # | |
Defined in GI.NM.Objects.SettingUser | |
IsGValue (Maybe SettingUser) Source # | Convert |
Defined in GI.NM.Objects.SettingUser Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe SettingUser -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe SettingUser) # | |
type ParentTypes SettingUser Source # | |
Defined in GI.NM.Objects.SettingUser |
class (GObject o, IsDescendantOf SettingUser o) => IsSettingUser o Source #
Type class for types which can be safely cast to SettingUser
, for instance with toSettingUser
.
Instances
(GObject o, IsDescendantOf SettingUser o) => IsSettingUser o Source # | |
Defined in GI.NM.Objects.SettingUser |
toSettingUser :: (MonadIO m, IsSettingUser o) => o -> m SettingUser Source #
Cast to SettingUser
, 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
getData, getDbusPropertyType, getKeys, getName, getProperty, getQdata, getSecretFlags.
Setters
checkKey
Arguments
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m () | (Can throw |
Checks whether key
is a valid user data key. This means,
key is not Nothing
, not too large and valid ASCII. Also,
only digits and numbers are allowed with a few special
characters. The key must contain at least one '.' and
look like a fully qualified DNS name.
Since: 1.8
checkVal
Arguments
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m () | (Can throw |
Checks whether val
is a valid user data value. This means,
value is not Nothing
, not too large and valid UTF-8.
Since: 1.8
getData
Arguments
:: (HasCallStack, MonadIO m, IsSettingUser a) | |
=> a |
|
-> Text |
|
-> m Text | Returns: the value associated with |
No description available in the introspection data.
Since: 1.8
getKeys
Arguments
:: (HasCallStack, MonadIO m, IsSettingUser a) | |
=> a |
|
-> m [Text] | Returns: a
|
No description available in the introspection data.
Since: 1.8
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m SettingUser | Returns: the new empty |
Creates a new SettingUser
object with default values.
Since: 1.8
setData
Arguments
:: (HasCallStack, MonadIO m, IsSettingUser a) | |
=> a |
|
-> Text |
|
-> Maybe Text |
|
-> m () | (Can throw |
No description available in the introspection data.
Since: 1.8
Properties
data
A dictionary of key/value pairs with user data. This data is ignored by NetworkManager and can be used at the users discretion. The keys only support a strict ascii format, but the values can be arbitrary UTF8 strings up to a certain length.
Since: 1.8
clearSettingUserData :: (MonadIO m, IsSettingUser o) => o -> m () Source #
Set the value of the “data
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#data
constructSettingUserData :: (IsSettingUser o, MonadIO m) => Map Text Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “data
” property. This is rarely needed directly, but it is used by new
.
getSettingUserData :: (MonadIO m, IsSettingUser o) => o -> m (Maybe (Map Text Text)) Source #
Get the value of the “data
” property.
When overloading is enabled, this is equivalent to
get
settingUser #data
setSettingUserData :: (MonadIO m, IsSettingUser o) => o -> Map Text Text -> m () Source #
Set the value of the “data
” property.
When overloading is enabled, this is equivalent to
set
settingUser [ #data:=
value ]