gi-nm-1.0.1: NM bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.NM.Objects.SettingUser

Description

General User Profile Settings

Since: 1.8

Synopsis

Exported types

newtype SettingUser Source #

Memory-managed wrapper type.

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

Instances details
(GObject o, IsDescendantOf SettingUser o) => IsSettingUser o Source # 
Instance details

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

checkKey

settingUserCheckKey Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

key: the key to check

-> m ()

(Can throw GError)

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

settingUserCheckVal Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

val: the value to check

-> m ()

(Can throw GError)

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

settingUserGetData Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingUser a) 
=> a

setting: the SettingUser instance

-> Text

key: the key to lookup

-> m Text

Returns: the value associated with key or Nothing if no such value exists.

No description available in the introspection data.

Since: 1.8

getKeys

settingUserGetKeys Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingUser a) 
=> a

setting: the SettingUser

-> m [Text]

Returns: a Nothing-terminated array containing each key from the table.

No description available in the introspection data.

Since: 1.8

new

settingUserNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m SettingUser

Returns: the new empty SettingUser object

Creates a new SettingUser object with default values.

Since: 1.8

setData

settingUserSetData Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingUser a) 
=> a

setting: the SettingUser instance

-> Text

key: the key to set

-> Maybe Text

val: the value to set or Nothing to clear a key.

-> m ()

(Can throw GError)

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 ]