diffing dir...
Sun Aug 15 14:12:10 EDT 2010 Andy Stewart <laz...@gm...>
* Fix FileAttribute.hsc docs and add new attributes.
Ignore-this: 2b18d5e36abe743fb1f1be8dcb3c3d31
{
hunk ./gio/System/GIO/File/FileAttribute.hsc 2
-
-#include <gio/gio.h>
-
hunk ./gio/System/GIO/File/FileAttribute.hsc 4
--- Author : Peter Gavin
+-- Author : Peter Gavin, Andy Stewart
hunk ./gio/System/GIO/File/FileAttribute.hsc 8
+-- Copyright (c) 2010 Andy Stewart
hunk ./gio/System/GIO/File/FileAttribute.hsc 32
+-- * 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 [_$_]
hunk ./gio/System/GIO/File/FileAttribute.hsc 54
+ [_$_]
+-- * Enums [_$_]
hunk ./gio/System/GIO/File/FileAttribute.hsc 57
+ [_$_]
+-- * Methods [_$_]
hunk ./gio/System/GIO/File/FileAttribute.hsc 72
+ fileAttributeStandardAllocatedSize,
hunk ./gio/System/GIO/File/FileAttribute.hsc 89
+ fileAttributeMountableUnixDeviceFile,
hunk ./gio/System/GIO/File/FileAttribute.hsc 108
+ fileAttributeDosIsMountpoint,
hunk ./gio/System/GIO/File/FileAttribute.hsc 116
+ fileAttributePreviewIcon,
hunk ./gio/System/GIO/File/FileAttribute.hsc 128
+#include <gio/gio.h>
+
hunk ./gio/System/GIO/File/FileAttribute.hsc 132
+import System.Glib.Flags
hunk ./gio/System/GIO/File/FileAttribute.hsc 134
-import System.GIO.Base
+import System.GIO.Enums
hunk ./gio/System/GIO/File/FileAttribute.hsc 145
+ | FileAttributeTypeStringList
hunk ./gio/System/GIO/File/FileAttribute.hsc 157
+ toEnum #{const G_FILE_ATTRIBUTE_TYPE_STRINGV} = FileAttributeTypeStringList
hunk ./gio/System/GIO/File/FileAttribute.hsc 168
+ fromEnum FileAttributeTypeStringList = #{const G_FILE_ATTRIBUTE_TYPE_STRINGV}
hunk ./gio/System/GIO/File/FileAttribute.hsc 181
- retName <- #{peek GFileAttributeInfo, name} ptr >>= peekUTFString
- retType <- (#{peek GFileAttributeInfo, type} ptr :: IO CInt) >>= return . cToEnum
- retFlags <- (#{peek GFileAttributeInfo, flags} ptr :: IO CInt) >>= return . cToFlags
+ retName <- #{peek GFileAttributeInfo, name} ptr >>= readUTFString
+ retType <- (#{peek GFileAttributeInfo, type} ptr :: IO CInt) >>= return . (toEnum . fromIntegral)
+ retFlags <- (#{peek GFileAttributeInfo, flags} ptr :: IO CInt) >>= return . (toFlags . fromIntegral)
hunk ./gio/System/GIO/File/FileAttribute.hsc 204
+ fileAttributeStandardAllocatedSize,
hunk ./gio/System/GIO/File/FileAttribute.hsc 221
+ fileAttributeMountableUnixDeviceFile,
hunk ./gio/System/GIO/File/FileAttribute.hsc 240
+ fileAttributeDosIsMountpoint,
hunk ./gio/System/GIO/File/FileAttribute.hsc 248
+ fileAttributePreviewIcon, [_$_]
hunk ./gio/System/GIO/File/FileAttribute.hsc 272
+fileAttributeStandardAllocatedSize = #{const_str G_FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE}
hunk ./gio/System/GIO/File/FileAttribute.hsc 289
+fileAttributeMountableUnixDeviceFile = #{const_str G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE}
hunk ./gio/System/GIO/File/FileAttribute.hsc 308
+fileAttributeDosIsMountpoint = #{const_str G_FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT}
hunk ./gio/System/GIO/File/FileAttribute.hsc 316
+fileAttributePreviewIcon = #{const_str G_FILE_ATTRIBUTE_PREVIEW_ICON}
}
|