Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
Acts as a lightweight registry for possible valid file attributes.
The registry stores Key-Value pair formats as GFileAttributeInfos
.
Synopsis
- newtype FileAttributeInfoList = FileAttributeInfoList (ManagedPtr FileAttributeInfoList)
- newZeroFileAttributeInfoList :: MonadIO m => m FileAttributeInfoList
- noFileAttributeInfoList :: Maybe FileAttributeInfoList
- fileAttributeInfoListAdd :: (HasCallStack, MonadIO m) => FileAttributeInfoList -> Text -> FileAttributeType -> [FileAttributeInfoFlags] -> m ()
- fileAttributeInfoListDup :: (HasCallStack, MonadIO m) => FileAttributeInfoList -> m FileAttributeInfoList
- fileAttributeInfoListLookup :: (HasCallStack, MonadIO m) => FileAttributeInfoList -> Text -> m FileAttributeInfo
- fileAttributeInfoListNew :: (HasCallStack, MonadIO m) => m FileAttributeInfoList
- fileAttributeInfoListRef :: (HasCallStack, MonadIO m) => FileAttributeInfoList -> m FileAttributeInfoList
- fileAttributeInfoListUnref :: (HasCallStack, MonadIO m) => FileAttributeInfoList -> m ()
- clearFileAttributeInfoListInfos :: MonadIO m => FileAttributeInfoList -> m ()
- getFileAttributeInfoListInfos :: MonadIO m => FileAttributeInfoList -> m (Maybe FileAttributeInfo)
- setFileAttributeInfoListInfos :: MonadIO m => FileAttributeInfoList -> Ptr FileAttributeInfo -> m ()
- getFileAttributeInfoListNInfos :: MonadIO m => FileAttributeInfoList -> m Int32
- setFileAttributeInfoListNInfos :: MonadIO m => FileAttributeInfoList -> Int32 -> m ()
Exported types
newtype FileAttributeInfoList Source #
Memory-managed wrapper type.
Instances
BoxedObject FileAttributeInfoList Source # | |
Defined in GI.Gio.Structs.FileAttributeInfoList boxedType :: FileAttributeInfoList -> IO GType # | |
tag ~ AttrSet => Constructible FileAttributeInfoList tag Source # | |
Defined in GI.Gio.Structs.FileAttributeInfoList new :: MonadIO m => (ManagedPtr FileAttributeInfoList -> FileAttributeInfoList) -> [AttrOp FileAttributeInfoList tag] -> m FileAttributeInfoList # |
newZeroFileAttributeInfoList :: MonadIO m => m FileAttributeInfoList Source #
Construct a FileAttributeInfoList
struct initialized to zero.
noFileAttributeInfoList :: Maybe FileAttributeInfoList Source #
A convenience alias for Nothing
:: Maybe
FileAttributeInfoList
.
Methods
add
fileAttributeInfoListAdd Source #
:: (HasCallStack, MonadIO m) | |
=> FileAttributeInfoList |
|
-> Text |
|
-> FileAttributeType |
|
-> [FileAttributeInfoFlags] |
|
-> m () |
Adds a new attribute with name
to the list
, setting
its type
and flags
.
dup
fileAttributeInfoListDup Source #
:: (HasCallStack, MonadIO m) | |
=> FileAttributeInfoList |
|
-> m FileAttributeInfoList | Returns: a copy of the given |
Makes a duplicate of a file attribute info list.
lookup
fileAttributeInfoListLookup Source #
:: (HasCallStack, MonadIO m) | |
=> FileAttributeInfoList |
|
-> Text |
|
-> m FileAttributeInfo | Returns: a |
Gets the file attribute with the name name
from list
.
new
fileAttributeInfoListNew Source #
:: (HasCallStack, MonadIO m) | |
=> m FileAttributeInfoList | Returns: a |
Creates a new file attribute info list.
ref
fileAttributeInfoListRef Source #
:: (HasCallStack, MonadIO m) | |
=> FileAttributeInfoList |
|
-> m FileAttributeInfoList | Returns: |
References a file attribute info list.
unref
fileAttributeInfoListUnref Source #
:: (HasCallStack, MonadIO m) | |
=> FileAttributeInfoList |
|
-> 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 ]