gio-0.13.12.0: Binding to GIO

Maintainer | gtk2hs-devel@lists.sourceforge.net Stability : alpha Portability : portable (depends on GHC)
Safe Haskell | None
Language | Haskell98

System.GIO.File.FileAttribute

Contents

- Details
- Types
- Enums
- Methods

Description

Synopsis

- data FileAttributeType
  - = FileAttributeTypeInvalid
  - | FileAttributeTypeString
  - | FileAttributeTypeByteString
  - | FileAttributeTypeBool
  - | FileAttributeTypeWord32
  - | FileAttributeTypeInt32
  - | FileAttributeTypeWord64
  - | FileAttributeTypeInt64
  - | FileAttributeTypeObject
  - | FileAttributeTypeStringList
- data FileAttributeInfo = FileAttributeInfo {
  - fileAttributeInfoName :: DefaultGlibString
  - fileAttributeInfoType :: FileAttributeType
  - fileAttributeInfoFlags :: [FileAttributeInfoFlags]
  }
- data FileAttributeInfoFlags
  - = FileAttributeInfoNone
  - | FileAttributeInfoCopyWithFile
  - | FileAttributeInfoCopyWhenMoved
- fileAttributeStandardType :: String
- fileAttributeStandardIsHidden :: String
- fileAttributeStandardIsBackup :: String
- fileAttributeStandardIsSymlink :: String
- fileAttributeStandardIsVirtual :: String
- fileAttributeStandardName :: String
- fileAttributeStandardDisplayName :: String
- fileAttributeStandardEditName :: String
- fileAttributeStandardCopyName :: String
- fileAttributeStandardIcon :: String
- fileAttributeStandardContentType :: String
- fileAttributeStandardFastContentType :: String
- fileAttributeStandardSize :: String
- fileAttributeStandardAllocatedSize :: String
- fileAttributeStandardSymlinkTarget :: String
- fileAttributeStandardTargetURI :: String
- fileAttributeStandardSortOrder :: String
- fileAttributeEtagValue :: String
- fileAttributeIDFile :: String
- fileAttributeIDFilesystem :: String
- fileAttributeAccessCanRead :: String
- fileAttributeAccessCanWrite :: String
- fileAttributeAccessCanExecute :: String
- fileAttributeAccessCanDelete :: String
- fileAttributeAccessCanTrash :: String
- fileAttributeAccessCanRename :: String
- fileAttributeMountableCanMount :: String
- fileAttributeMountableCanUnmount :: String
- fileAttributeMountableCanEject :: String
- fileAttributeMountableUnixDevice :: String
- fileAttributeMountableUnixDeviceFile :: String
- fileAttributeMountableCanStart :: String
- fileAttributeMountableCanDegraded :: String
- fileAttributeMountableCanStop :: String
- fileAttributeMountableStartStopType :: String
- fileAttributeMountableCanPoll :: String
- fileAttributeMountableHalUDI :: String
- fileAttributeTimeModified :: String
- fileAttributeTimeModifiedUSec :: String
- fileAttributeTimeAccess :: String
- fileAttributeTimeAccessUSec :: String
- fileAttributeTimeChanged :: String
- fileAttributeTimeChangedUSec :: String
- fileAttributeTimeCreated :: String
- fileAttributeTimeCreatedUSec :: String
- fileAttributeUnixDevice :: String
- fileAttributeUnixInode :: String
- fileAttributeUnixMode :: String
- fileAttributeUnixNLink :: String
- fileAttributeUnixUID :: String
- fileAttributeUnixGID :: String
- fileAttributeUnixRDev :: String
- fileAttributeUnixBlockSize :: String
- fileAttributeUnixBlocks :: String
- fileAttributeDosIsMountpoint :: String
- fileAttributeDosIsArchive :: String
- fileAttributeDosIsSystem :: String
- fileAttributeOwnerUser :: String
- fileAttributeOwnerUserReal :: String
- fileAttributeOwnerGroup :: String
- fileAttributeThumbnailPath :: String
- fileAttributeThumbnailingFailed :: String
- fileAttributePreviewIcon :: String
- fileAttributeFilesystemSize :: String
- fileAttributeFilesystemFree :: String
- fileAttributeFilesystemType :: String
- fileAttributeFilesystemReadonly :: String
- fileAttributeGVfsBackend :: String
- fileAttributeSELinuxContext :: String
- fileAttributeTrashItemCount :: String
- fileAttributeFilesystemUsePreview :: String
- fileAttributeStandardDescription :: String
- fileAttributeTrashOrigPath :: String
- fileAttributeTrashDeletionDate :: String

# Details

File attributes in GIO consist of a list of key-value pairs.

Keys are strings that contain a key namespace and a key name, separated by a colon, e.g. "namespace:keyname". Namespaces are included to sort key-value pairs by namespaces for relevance. Keys can be retrieved using wildcards, e.g. "standard::*" will return all of the keys in the "standard" namespace.

Values are stored within the list in `FileAttributeValue` structures. Values can store different types, listed in the enum `FileAttributeType`. Upon creation of a `FileAttributeValue`, the type will be set to `FileAttributeTypeInvalid`.

The list of possible attributes for a filesystem (pointed to by a `File`) is available as a `FileAttributeInfoList`. This list is queryable by key names as indicated earlier.

Classes that implement `FileIface` will create a `FileAttributeInfoList` and install default keys and values for their given file system, architecture, and other possible implementation details (e.g., on a UNIX system, a file attribute key will be registered for the user id for a given file).

# Types

data FileAttributeType Source #

Constructors

FileAttributeTypeInvalid |
FileAttributeTypeString |
FileAttributeTypeByteString |
FileAttributeTypeBool |
FileAttributeTypeWord32 |
FileAttributeTypeInt32 |
FileAttributeTypeWord64 |
FileAttributeTypeInt64 |
FileAttributeTypeObject |
FileAttributeTypeStringList |

#### Instances

Instances details

Bounded FileAttributeType Source # |
Instance details Defined in System.GIO.File.FileAttribute Methods minBound :: FileAttributeType Source # maxBound :: FileAttributeType Source #
Enum FileAttributeType Source # |

Instance details

Defined in System.GIO.File.FileAttribute

Methods

succ :: FileAttributeType -> FileAttributeType Source #

pred :: FileAttributeType -> FileAttributeType Source #

toEnum :: Int -> FileAttributeType Source #

fromEnum :: FileAttributeType -> Int Source #

enumFrom :: FileAttributeType -> [FileAttributeType] Source #

enumFromThen :: FileAttributeType -> FileAttributeType -> [FileAttributeType] Source #

enumFromTo :: FileAttributeType -> FileAttributeType -> [FileAttributeType] Source #

enumFromThenTo :: FileAttributeType -> FileAttributeType -> FileAttributeType -> [FileAttributeType] Source #

Read FileAttributeType Source # |
Instance details Defined in System.GIO.File.FileAttribute Methods readsPrec :: Int -> ReadS FileAttributeType Source # readList :: ReadS [FileAttributeType] Source # readPrec :: ReadPrec FileAttributeType Source # readListPrec :: ReadPrec [FileAttributeType] Source #
Show FileAttributeType Source # |
Instance details Defined in System.GIO.File.FileAttribute Methods showsPrec :: Int -> FileAttributeType -> ShowS Source # show :: FileAttributeType -> String Source # showList :: [FileAttributeType] -> ShowS Source #
Eq FileAttributeType Source # |
Instance details Defined in System.GIO.File.FileAttribute Methods (==) :: FileAttributeType -> FileAttributeType -> Bool Source # (/=) :: FileAttributeType -> FileAttributeType -> Bool Source #
Ord FileAttributeType Source # |

Instance details

Defined in System.GIO.File.FileAttribute

Methods

compare :: FileAttributeType -> FileAttributeType -> Ordering Source #

(<) :: FileAttributeType -> FileAttributeType -> Bool Source #

(<=) :: FileAttributeType -> FileAttributeType -> Bool Source #

(>) :: FileAttributeType -> FileAttributeType -> Bool Source #

(>=) :: FileAttributeType -> FileAttributeType -> Bool Source #

max :: FileAttributeType -> FileAttributeType -> FileAttributeType Source #

min :: FileAttributeType -> FileAttributeType -> FileAttributeType Source #

data FileAttributeInfo Source #

Constructors

FileAttributeInfo |

Fields

- fileAttributeInfoName :: DefaultGlibString
- fileAttributeInfoType :: FileAttributeType
- fileAttributeInfoFlags :: [FileAttributeInfoFlags]

#### Instances

Instances details

Storable FileAttributeInfo Source # |

Instance details

Defined in System.GIO.File.FileAttribute

Methods

sizeOf :: FileAttributeInfo -> Int Source #

alignment :: FileAttributeInfo -> Int Source #

peekElemOff :: Ptr FileAttributeInfo -> Int -> IO FileAttributeInfo Source #

pokeElemOff :: Ptr FileAttributeInfo -> Int -> FileAttributeInfo -> IO () Source #

peekByteOff :: Ptr b -> Int -> IO FileAttributeInfo Source #

pokeByteOff :: Ptr b -> Int -> FileAttributeInfo -> IO () Source #

peek :: Ptr FileAttributeInfo -> IO FileAttributeInfo Source #

poke :: Ptr FileAttributeInfo -> FileAttributeInfo -> IO () Source #

Read FileAttributeInfo Source # |
Instance details Defined in System.GIO.File.FileAttribute Methods readsPrec :: Int -> ReadS FileAttributeInfo Source # readList :: ReadS [FileAttributeInfo] Source # readPrec :: ReadPrec FileAttributeInfo Source # readListPrec :: ReadPrec [FileAttributeInfo] Source #
Show FileAttributeInfo Source # |
Instance details Defined in System.GIO.File.FileAttribute Methods showsPrec :: Int -> FileAttributeInfo -> ShowS Source # show :: FileAttributeInfo -> String Source # showList :: [FileAttributeInfo] -> ShowS Source #
Eq FileAttributeInfo Source # |
Instance details Defined in System.GIO.File.FileAttribute Methods (==) :: FileAttributeInfo -> FileAttributeInfo -> Bool Source # (/=) :: FileAttributeInfo -> FileAttributeInfo -> Bool Source #

# Enums

data FileAttributeInfoFlags Source #

Flags specifying the behaviour of an attribute.

Constructors

FileAttributeInfoNone |
FileAttributeInfoCopyWithFile |
FileAttributeInfoCopyWhenMoved |

#### Instances

Instances details

Bounded FileAttributeInfoFlags Source # |
Instance details Defined in System.GIO.Enums Methods minBound :: FileAttributeInfoFlags Source # maxBound :: FileAttributeInfoFlags Source #
Enum FileAttributeInfoFlags Source # | `AskPasswordFlags` are used to request specific information from the user, or to notify the user of their choices in an authentication situation.

Instance details

Defined in System.GIO.Enums

Methods

succ :: FileAttributeInfoFlags -> FileAttributeInfoFlags Source #

pred :: FileAttributeInfoFlags -> FileAttributeInfoFlags Source #

toEnum :: Int -> FileAttributeInfoFlags Source #

fromEnum :: FileAttributeInfoFlags -> Int Source #

enumFrom :: FileAttributeInfoFlags -> [FileAttributeInfoFlags] Source #

enumFromThen :: FileAttributeInfoFlags -> FileAttributeInfoFlags -> [FileAttributeInfoFlags] Source #

enumFromTo :: FileAttributeInfoFlags -> FileAttributeInfoFlags -> [FileAttributeInfoFlags] Source #

enumFromThenTo :: FileAttributeInfoFlags -> FileAttributeInfoFlags -> FileAttributeInfoFlags -> [FileAttributeInfoFlags] Source #

Read FileAttributeInfoFlags Source # |
Instance details Defined in System.GIO.Enums Methods readsPrec :: Int -> ReadS FileAttributeInfoFlags Source # readList :: ReadS [FileAttributeInfoFlags] Source # readPrec :: ReadPrec FileAttributeInfoFlags Source # readListPrec :: ReadPrec [FileAttributeInfoFlags] Source #
Show FileAttributeInfoFlags Source # |
Instance details Defined in System.GIO.Enums Methods showsPrec :: Int -> FileAttributeInfoFlags -> ShowS Source # show :: FileAttributeInfoFlags -> String Source # showList :: [FileAttributeInfoFlags] -> ShowS Source #
Eq FileAttributeInfoFlags Source # |
Instance details Defined in System.GIO.Enums Methods (==) :: FileAttributeInfoFlags -> FileAttributeInfoFlags -> Bool Source # (/=) :: FileAttributeInfoFlags -> FileAttributeInfoFlags -> Bool Source #
Ord FileAttributeInfoFlags Source # |

Instance details

Defined in System.GIO.Enums

Methods

compare :: FileAttributeInfoFlags -> FileAttributeInfoFlags -> Ordering Source #

(<) :: FileAttributeInfoFlags -> FileAttributeInfoFlags -> Bool Source #

(<=) :: FileAttributeInfoFlags -> FileAttributeInfoFlags -> Bool Source #

(>) :: FileAttributeInfoFlags -> FileAttributeInfoFlags -> Bool Source #

(>=) :: FileAttributeInfoFlags -> FileAttributeInfoFlags -> Bool Source #

max :: FileAttributeInfoFlags -> FileAttributeInfoFlags -> FileAttributeInfoFlags Source #

min :: FileAttributeInfoFlags -> FileAttributeInfoFlags -> FileAttributeInfoFlags Source #

Flags FileAttributeInfoFlags Source # |
Instance details Defined in System.GIO.Enums

# Methods

fileAttributeStandardType :: String Source #

fileAttributeStandardIsHidden :: String Source #

fileAttributeStandardIsBackup :: String Source #

fileAttributeStandardIsSymlink :: String Source #

fileAttributeStandardIsVirtual :: String Source #

fileAttributeStandardName :: String Source #

fileAttributeStandardDisplayName :: String Source #

fileAttributeStandardEditName :: String Source #

fileAttributeStandardCopyName :: String Source #

fileAttributeStandardIcon :: String Source #

fileAttributeStandardContentType :: String Source #

fileAttributeStandardFastContentType :: String Source #

fileAttributeStandardSize :: String Source #

fileAttributeStandardAllocatedSize :: String Source #

fileAttributeStandardSymlinkTarget :: String Source #

fileAttributeStandardTargetURI :: String Source #

fileAttributeStandardSortOrder :: String Source #

fileAttributeEtagValue :: String Source #

fileAttributeIDFile :: String Source #

fileAttributeIDFilesystem :: String Source #

fileAttributeAccessCanRead :: String Source #

fileAttributeAccessCanWrite :: String Source #

fileAttributeAccessCanExecute :: String Source #

fileAttributeAccessCanDelete :: String Source #

fileAttributeAccessCanTrash :: String Source #

fileAttributeAccessCanRename :: String Source #

fileAttributeMountableCanMount :: String Source #

fileAttributeMountableCanUnmount :: String Source #

fileAttributeMountableCanEject :: String Source #

fileAttributeMountableUnixDevice :: String Source #

fileAttributeMountableUnixDeviceFile :: String Source #

fileAttributeMountableCanStart :: String Source #

fileAttributeMountableCanDegraded :: String Source #

fileAttributeMountableCanStop :: String Source #

fileAttributeMountableStartStopType :: String Source #

fileAttributeMountableCanPoll :: String Source #

fileAttributeMountableHalUDI :: String Source #

fileAttributeTimeModified :: String Source #

fileAttributeTimeModifiedUSec :: String Source #

fileAttributeTimeAccess :: String Source #

fileAttributeTimeAccessUSec :: String Source #

fileAttributeTimeChanged :: String Source #

fileAttributeTimeChangedUSec :: String Source #

fileAttributeTimeCreated :: String Source #

fileAttributeTimeCreatedUSec :: String Source #

fileAttributeUnixDevice :: String Source #

fileAttributeUnixInode :: String Source #

fileAttributeUnixMode :: String Source #

fileAttributeUnixNLink :: String Source #

fileAttributeUnixUID :: String Source #

fileAttributeUnixGID :: String Source #

fileAttributeUnixRDev :: String Source #

fileAttributeUnixBlockSize :: String Source #

fileAttributeUnixBlocks :: String Source #

fileAttributeDosIsMountpoint :: String Source #

fileAttributeDosIsArchive :: String Source #

fileAttributeDosIsSystem :: String Source #

fileAttributeOwnerUser :: String Source #

fileAttributeOwnerUserReal :: String Source #

fileAttributeOwnerGroup :: String Source #

fileAttributeThumbnailPath :: String Source #

fileAttributeThumbnailingFailed :: String Source #

fileAttributePreviewIcon :: String Source #

fileAttributeFilesystemSize :: String Source #

fileAttributeFilesystemFree :: String Source #

fileAttributeFilesystemType :: String Source #

fileAttributeFilesystemReadonly :: String Source #

fileAttributeGVfsBackend :: String Source #

fileAttributeSELinuxContext :: String Source #

fileAttributeTrashItemCount :: String Source #

fileAttributeFilesystemUsePreview :: String Source #

fileAttributeStandardDescription :: String Source #

fileAttributeTrashOrigPath :: String Source #

fileAttributeTrashDeletionDate :: String Source #