gi-gio-2.0.18: Gio bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Structs.FileAttributeInfoList

Contents

Description

Acts as a lightweight registry for possible valid file attributes. The registry stores Key-Value pair formats as GFileAttributeInfos.

Synopsis

Exported types

Methods

add

fileAttributeInfoListAdd Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FileAttributeInfoList

list: a FileAttributeInfoList.

-> Text

name: the name of the attribute to add.

-> FileAttributeType

type: the FileAttributeType for the attribute.

-> [FileAttributeInfoFlags]

flags: FileAttributeInfoFlags for the attribute.

-> m () 

Adds a new attribute with name to the list, setting its type and flags.

dup

fileAttributeInfoListDup Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FileAttributeInfoList

list: a FileAttributeInfoList to duplicate.

-> m FileAttributeInfoList

Returns: a copy of the given list.

Makes a duplicate of a file attribute info list.

lookup

fileAttributeInfoListLookup Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FileAttributeInfoList

list: a FileAttributeInfoList.

-> Text

name: the name of the attribute to lookup.

-> m FileAttributeInfo

Returns: a FileAttributeInfo for the name, or Nothing if an attribute isn't found.

Gets the file attribute with the name name from list.

new

fileAttributeInfoListNew Source #

Creates a new file attribute info list.

ref

fileAttributeInfoListRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FileAttributeInfoList

list: a FileAttributeInfoList to reference.

-> m FileAttributeInfoList

Returns: FileAttributeInfoList or Nothing on error.

References a file attribute info list.

unref

fileAttributeInfoListUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FileAttributeInfoList

list: The FileAttributeInfoList to unreference.

-> m () 

Removes a reference from the given list. If the reference count falls to zero, the list is deleted.

Properties

infos

an array of GFileAttributeInfos.

clearFileAttributeInfoListInfos :: MonadIO m => FileAttributeInfoList -> m () Source #

Set the value of the “infos” field to Nothing. When overloading is enabled, this is equivalent to

clear #infos

getFileAttributeInfoListInfos :: MonadIO m => FileAttributeInfoList -> m (Maybe FileAttributeInfo) Source #

Get the value of the “infos” field. When overloading is enabled, this is equivalent to

get fileAttributeInfoList #infos

setFileAttributeInfoListInfos :: MonadIO m => FileAttributeInfoList -> Ptr FileAttributeInfo -> m () Source #

Set the value of the “infos” field. When overloading is enabled, this is equivalent to

set fileAttributeInfoList [ #infos := value ]

nInfos

the number of values in the array.

getFileAttributeInfoListNInfos :: MonadIO m => FileAttributeInfoList -> m Int32 Source #

Get the value of the “n_infos” field. When overloading is enabled, this is equivalent to

get fileAttributeInfoList #nInfos

setFileAttributeInfoListNInfos :: MonadIO m => FileAttributeInfoList -> Int32 -> m () Source #

Set the value of the “n_infos” field. When overloading is enabled, this is equivalent to

set fileAttributeInfoList [ #nInfos := value ]