gio-0.12.4: Binding to the GIO.

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

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 :: String
  - 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 retrived 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 availible 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

Constructors

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

Instances

Bounded FileAttributeType |
Enum FileAttributeType |
Eq FileAttributeType |
Ord FileAttributeType |
Read FileAttributeType |
Show FileAttributeType |

data FileAttributeInfo

Constructors

FileAttributeInfo |
Fields fileAttributeInfoName :: String fileAttributeInfoType :: FileAttributeType fileAttributeInfoFlags :: [FileAttributeInfoFlags]

Instances

Eq FileAttributeInfo |
Read FileAttributeInfo |
Show FileAttributeInfo |
Storable FileAttributeInfo |

# Enums

data FileAttributeInfoFlags

Flags specifying the behaviour of an attribute.

Constructors

FileAttributeInfoNone |
FileAttributeInfoCopyWithFile |
FileAttributeInfoCopyWhenMoved |

Instances

Bounded FileAttributeInfoFlags |
Enum FileAttributeInfoFlags | `AskPasswordFlags` are used to request specific information from the user, or to notify the user of their choices in an authentication situation.
Eq FileAttributeInfoFlags |
Ord FileAttributeInfoFlags |
Read FileAttributeInfoFlags |
Show FileAttributeInfoFlags |
Flags FileAttributeInfoFlags |

# Methods

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