1 /* GIO - GLib Input, Output and Streaming Library
3 * Copyright (C) 2006-2007 Red Hat, Inc.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General
16 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
18 * Author: Alexander Larsson <alexl@redhat.com>
21 #ifndef __G_FILE_INFO_H__
22 #define __G_FILE_INFO_H__
24 #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
25 #error "Only <gio/gio.h> can be included directly."
28 #include <gio/giotypes.h>
32 #define G_TYPE_FILE_INFO (g_file_info_get_type ())
33 #define G_FILE_INFO(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_FILE_INFO, GFileInfo))
34 #define G_FILE_INFO_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_FILE_INFO, GFileInfoClass))
35 #define G_IS_FILE_INFO(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_FILE_INFO))
36 #define G_IS_FILE_INFO_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_FILE_INFO))
37 #define G_FILE_INFO_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_FILE_INFO, GFileInfoClass))
42 * Stores information about a file system object referenced by a #GFile.
44 typedef struct _GFileInfoClass GFileInfoClass;
47 /* Common Attributes: */
49 * G_FILE_ATTRIBUTE_STANDARD_TYPE:
51 * A key in the "standard" namespace for storing file types.
52 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
53 * The value for this key should contain a #GFileType.
55 #define G_FILE_ATTRIBUTE_STANDARD_TYPE "standard::type" /* uint32 (GFileType) */
58 * G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN:
60 * A key in the "standard" namespace for checking if a file is hidden.
61 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
63 #define G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN "standard::is-hidden" /* boolean */
66 * G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP:
68 * A key in the "standard" namespace for checking if a file is a backup file.
69 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
71 #define G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP "standard::is-backup" /* boolean */
74 * G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK:
76 * A key in the "standard" namespace for checking if the file is a symlink.
77 * Typically the actual type is something else, if we followed the symlink
79 * On Windows NTFS mountpoints are considered to be symlinks as well.
80 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
82 #define G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK "standard::is-symlink" /* boolean */
85 * G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL:
87 * A key in the "standard" namespace for checking if a file is virtual.
88 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
90 #define G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL "standard::is-virtual" /* boolean */
93 * G_FILE_ATTRIBUTE_STANDARD_IS_VOLATILE:
95 * A key in the "standard" namespace for checking if a file is
96 * volatile. This is meant for opaque, non-POSIX-like backends to
97 * indicate that the URI is not persistent. Applications should look
98 * at #G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET for the persistent URI.
100 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
104 #define G_FILE_ATTRIBUTE_STANDARD_IS_VOLATILE "standard::is-volatile" /* boolean */
107 * G_FILE_ATTRIBUTE_STANDARD_NAME:
109 * A key in the "standard" namespace for getting the name of the file.
110 * The name is the on-disk filename which may not be in any known encoding,
111 * and can thus not be generally displayed as is. It is guaranteed to be set on
113 * Use #G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME if you need to display the
114 * name in a user interface.
115 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING.
117 #define G_FILE_ATTRIBUTE_STANDARD_NAME "standard::name" /* byte string */
120 * G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME:
122 * A key in the "standard" namespace for getting the display name of the file.
123 * A display name is guaranteed to be in UTF-8 and can thus be displayed in
124 * the UI. It is guaranteed to be set on every file.
125 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
127 #define G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME "standard::display-name" /* string */
130 * G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME:
132 * A key in the "standard" namespace for edit name of the file.
133 * An edit name is similar to the display name, but it is meant to be
134 * used when you want to rename the file in the UI. The display name
135 * might contain information you don't want in the new filename (such as
136 * "(invalid unicode)" if the filename was in an invalid encoding).
138 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
140 #define G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME "standard::edit-name" /* string */
143 * G_FILE_ATTRIBUTE_STANDARD_COPY_NAME:
145 * A key in the "standard" namespace for getting the copy name of the file.
146 * The copy name is an optional version of the name. If available it's always
147 * in UTF8, and corresponds directly to the original filename (only transcoded to
148 * UTF8). This is useful if you want to copy the file to another filesystem that
149 * might have a different encoding. If the filename is not a valid string in the
150 * encoding selected for the filesystem it is in then the copy name will not be set.
152 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
154 #define G_FILE_ATTRIBUTE_STANDARD_COPY_NAME "standard::copy-name" /* string */
157 * G_FILE_ATTRIBUTE_STANDARD_DESCRIPTION:
159 * A key in the "standard" namespace for getting the description of the file.
160 * The description is a utf8 string that describes the file, generally containing
161 * the filename, but can also contain further information. Example descriptions
162 * could be "filename (on hostname)" for a remote file or "filename (in trash)"
163 * for a file in the trash. This is useful for instance as the window title
164 * when displaying a directory or for a bookmarks menu.
166 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
168 #define G_FILE_ATTRIBUTE_STANDARD_DESCRIPTION "standard::description" /* string */
171 * G_FILE_ATTRIBUTE_STANDARD_ICON:
173 * A key in the "standard" namespace for getting the icon for the file.
174 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_OBJECT.
175 * The value for this key should contain a #GIcon.
177 #define G_FILE_ATTRIBUTE_STANDARD_ICON "standard::icon" /* object (GIcon) */
180 * G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON:
182 * A key in the "standard" namespace for getting the symbolic icon for the file.
183 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_OBJECT.
184 * The value for this key should contain a #GIcon.
188 #define G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON "standard::symbolic-icon" /* object (GIcon) */
191 * G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE:
193 * A key in the "standard" namespace for getting the content type of the file.
194 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
195 * The value for this key should contain a valid content type.
197 #define G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE "standard::content-type" /* string */
200 * G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE:
202 * A key in the "standard" namespace for getting the fast content type.
203 * The fast content type isn't as reliable as the regular one, as it
204 * only uses the filename to guess it, but it is faster to calculate than the
205 * regular content type.
206 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
209 #define G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE "standard::fast-content-type" /* string */
212 * G_FILE_ATTRIBUTE_STANDARD_SIZE:
214 * A key in the "standard" namespace for getting the file's size (in bytes).
215 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64.
217 #define G_FILE_ATTRIBUTE_STANDARD_SIZE "standard::size" /* uint64 */
220 * G_FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE:
222 * A key in the "standard" namespace for getting the amount of disk space
223 * that is consumed by the file (in bytes). This will generally be larger
224 * than the file size (due to block size overhead) but can occasionally be
225 * smaller (for example, for sparse files).
226 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64.
230 #define G_FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE "standard::allocated-size" /* uint64 */
233 * G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET:
235 * A key in the "standard" namespace for getting the symlink target, if the file
236 * is a symlink. Corresponding #GFileAttributeType is
237 * %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING.
239 #define G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET "standard::symlink-target" /* byte string */
242 * G_FILE_ATTRIBUTE_STANDARD_TARGET_URI:
244 * A key in the "standard" namespace for getting the target URI for the file, in
245 * the case of %G_FILE_TYPE_SHORTCUT or %G_FILE_TYPE_MOUNTABLE files.
246 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
248 #define G_FILE_ATTRIBUTE_STANDARD_TARGET_URI "standard::target-uri" /* string */
251 * G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER:
253 * A key in the "standard" namespace for setting the sort order of a file.
254 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_INT32.
255 * An example use would be in file managers, which would use this key
256 * to set the order files are displayed. Files with smaller sort order
257 * should be sorted first, and files without sort order as if sort order
260 #define G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER "standard::sort-order" /* int32 */
262 /* Entity tags, used to avoid missing updates on save */
265 * G_FILE_ATTRIBUTE_ETAG_VALUE:
267 * A key in the "etag" namespace for getting the value of the file's
268 * entity tag. Corresponding #GFileAttributeType is
269 * %G_FILE_ATTRIBUTE_TYPE_STRING.
271 #define G_FILE_ATTRIBUTE_ETAG_VALUE "etag::value" /* string */
273 /* File identifier, for e.g. avoiding loops when doing recursive
278 * G_FILE_ATTRIBUTE_ID_FILE:
280 * A key in the "id" namespace for getting a file identifier.
281 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
282 * An example use would be during listing files, to avoid recursive
283 * directory scanning.
285 #define G_FILE_ATTRIBUTE_ID_FILE "id::file" /* string */
288 * G_FILE_ATTRIBUTE_ID_FILESYSTEM:
290 * A key in the "id" namespace for getting the file system identifier.
291 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
292 * An example use would be during drag and drop to see if the source
293 * and target are on the same filesystem (default to move) or not (default
296 #define G_FILE_ATTRIBUTE_ID_FILESYSTEM "id::filesystem" /* string */
298 /* Calculated Access Rights for current user */
301 * G_FILE_ATTRIBUTE_ACCESS_CAN_READ:
303 * A key in the "access" namespace for getting read privileges.
304 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
305 * This attribute will be %TRUE if the user is able to read the file.
307 #define G_FILE_ATTRIBUTE_ACCESS_CAN_READ "access::can-read" /* boolean */
310 * G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE:
312 * A key in the "access" namespace for getting write privileges.
313 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
314 * This attribute will be %TRUE if the user is able to write to the file.
316 #define G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE "access::can-write" /* boolean */
319 * G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE:
321 * A key in the "access" namespace for getting execution privileges.
322 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
323 * This attribute will be %TRUE if the user is able to execute the file.
325 #define G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE "access::can-execute" /* boolean */
328 * G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE:
330 * A key in the "access" namespace for checking deletion privileges.
331 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
332 * This attribute will be %TRUE if the user is able to delete the file.
334 #define G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE "access::can-delete" /* boolean */
337 * G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH:
339 * A key in the "access" namespace for checking trashing privileges.
340 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
341 * This attribute will be %TRUE if the user is able to move the file to
344 #define G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH "access::can-trash" /* boolean */
347 * G_FILE_ATTRIBUTE_ACCESS_CAN_RENAME:
349 * A key in the "access" namespace for checking renaming privileges.
350 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
351 * This attribute will be %TRUE if the user is able to rename the file.
353 #define G_FILE_ATTRIBUTE_ACCESS_CAN_RENAME "access::can-rename" /* boolean */
355 /* TODO: Should we have special version for directories? can_enumerate, etc */
357 /* Mountable attributes */
360 * G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT:
362 * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) is mountable.
363 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
365 #define G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT "mountable::can-mount" /* boolean */
368 * G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT:
370 * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) is unmountable.
371 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
373 #define G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT "mountable::can-unmount" /* boolean */
376 * G_FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT:
378 * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) can be ejected.
379 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
381 #define G_FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT "mountable::can-eject" /* boolean */
384 * G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE:
386 * A key in the "mountable" namespace for getting the unix device.
387 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
389 #define G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE "mountable::unix-device" /* uint32 */
392 * G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE:
394 * A key in the "mountable" namespace for getting the unix device file.
395 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
399 #define G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE "mountable::unix-device-file" /* string */
402 * G_FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI:
404 * A key in the "mountable" namespace for getting the HAL UDI for the mountable
405 * file. Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
407 #define G_FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI "mountable::hal-udi" /* string */
410 * G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START:
412 * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) can be started.
413 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
417 #define G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START "mountable::can-start" /* boolean */
420 * G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED:
422 * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) can be started
424 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
428 #define G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED "mountable::can-start-degraded" /* boolean */
431 * G_FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP:
433 * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) can be stopped.
434 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
438 #define G_FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP "mountable::can-stop" /* boolean */
441 * G_FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE:
443 * A key in the "mountable" namespace for getting the #GDriveStartStopType.
444 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
448 #define G_FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE "mountable::start-stop-type" /* uint32 (GDriveStartStopType) */
451 * G_FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL:
453 * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) can be polled.
454 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
458 #define G_FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL "mountable::can-poll" /* boolean */
461 * G_FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC:
463 * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE)
464 * is automatically polled for media.
465 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
469 #define G_FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC "mountable::is-media-check-automatic" /* boolean */
471 /* Time attributes */
474 * G_FILE_ATTRIBUTE_TIME_MODIFIED:
476 * A key in the "time" namespace for getting the time the file was last
477 * modified. Corresponding #GFileAttributeType is
478 * %G_FILE_ATTRIBUTE_TYPE_UINT64, and contains the time since the
479 * file was modified, in seconds since the UNIX epoch.
481 #define G_FILE_ATTRIBUTE_TIME_MODIFIED "time::modified" /* uint64 */
484 * G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC:
486 * A key in the "time" namespace for getting the microseconds of the time
487 * the file was last modified. This should be used in conjunction with
488 * #G_FILE_ATTRIBUTE_TIME_MODIFIED. Corresponding #GFileAttributeType is
489 * %G_FILE_ATTRIBUTE_TYPE_UINT32.
491 #define G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC "time::modified-usec" /* uint32 */
494 * G_FILE_ATTRIBUTE_TIME_ACCESS:
496 * A key in the "time" namespace for getting the time the file was last
497 * accessed. Corresponding #GFileAttributeType is
498 * %G_FILE_ATTRIBUTE_TYPE_UINT64, and contains the time since the
499 * file was last accessed, in seconds since the UNIX epoch.
501 #define G_FILE_ATTRIBUTE_TIME_ACCESS "time::access" /* uint64 */
504 * G_FILE_ATTRIBUTE_TIME_ACCESS_USEC:
506 * A key in the "time" namespace for getting the microseconds of the time
507 * the file was last accessed. This should be used in conjunction with
508 * #G_FILE_ATTRIBUTE_TIME_ACCESS. Corresponding #GFileAttributeType is
509 * %G_FILE_ATTRIBUTE_TYPE_UINT32.
511 #define G_FILE_ATTRIBUTE_TIME_ACCESS_USEC "time::access-usec" /* uint32 */
514 * G_FILE_ATTRIBUTE_TIME_CHANGED:
516 * A key in the "time" namespace for getting the time the file was last
517 * changed. Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64,
518 * and contains the time since the file was last changed, in seconds since the
521 * This corresponds to the traditional UNIX ctime.
523 #define G_FILE_ATTRIBUTE_TIME_CHANGED "time::changed" /* uint64 */
526 * G_FILE_ATTRIBUTE_TIME_CHANGED_USEC:
528 * A key in the "time" namespace for getting the microseconds of the time
529 * the file was last changed. This should be used in conjunction with
530 * #G_FILE_ATTRIBUTE_TIME_CHANGED. Corresponding #GFileAttributeType is
531 * %G_FILE_ATTRIBUTE_TYPE_UINT32.
533 #define G_FILE_ATTRIBUTE_TIME_CHANGED_USEC "time::changed-usec" /* uint32 */
536 * G_FILE_ATTRIBUTE_TIME_CREATED:
538 * A key in the "time" namespace for getting the time the file was created.
539 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64,
540 * and contains the time since the file was created, in seconds since the UNIX
543 * This may correspond to Linux stx_btime, FreeBSD st_birthtim, NetBSD
544 * st_birthtime or NTFS ctime.
546 #define G_FILE_ATTRIBUTE_TIME_CREATED "time::created" /* uint64 */
549 * G_FILE_ATTRIBUTE_TIME_CREATED_USEC:
551 * A key in the "time" namespace for getting the microseconds of the time
552 * the file was created. This should be used in conjunction with
553 * #G_FILE_ATTRIBUTE_TIME_CREATED. Corresponding #GFileAttributeType is
554 * %G_FILE_ATTRIBUTE_TYPE_UINT32.
556 #define G_FILE_ATTRIBUTE_TIME_CREATED_USEC "time::created-usec" /* uint32 */
558 /* Unix specific attributes */
561 * G_FILE_ATTRIBUTE_UNIX_DEVICE:
563 * A key in the "unix" namespace for getting the device id of the device the
564 * file is located on (see stat() documentation). This attribute is only
565 * available for UNIX file systems. Corresponding #GFileAttributeType is
566 * %G_FILE_ATTRIBUTE_TYPE_UINT32.
568 #define G_FILE_ATTRIBUTE_UNIX_DEVICE "unix::device" /* uint32 */
571 * G_FILE_ATTRIBUTE_UNIX_INODE:
573 * A key in the "unix" namespace for getting the inode of the file.
574 * This attribute is only available for UNIX file systems. Corresponding
575 * #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64.
577 #define G_FILE_ATTRIBUTE_UNIX_INODE "unix::inode" /* uint64 */
580 * G_FILE_ATTRIBUTE_UNIX_MODE:
582 * A key in the "unix" namespace for getting the mode of the file
583 * (e.g. whether the file is a regular file, symlink, etc). See the
584 * documentation for `lstat()`: this attribute is equivalent to the `st_mode`
585 * member of `struct stat`, and includes both the file type and permissions.
586 * This attribute is only available for UNIX file systems.
587 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
589 #define G_FILE_ATTRIBUTE_UNIX_MODE "unix::mode" /* uint32 */
592 * G_FILE_ATTRIBUTE_UNIX_NLINK:
594 * A key in the "unix" namespace for getting the number of hard links
595 * for a file. See lstat() documentation. This attribute is only available
596 * for UNIX file systems. Corresponding #GFileAttributeType is
597 * %G_FILE_ATTRIBUTE_TYPE_UINT32.
599 #define G_FILE_ATTRIBUTE_UNIX_NLINK "unix::nlink" /* uint32 */
602 * G_FILE_ATTRIBUTE_UNIX_UID:
604 * A key in the "unix" namespace for getting the user ID for the file.
605 * This attribute is only available for UNIX file systems.
606 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
608 #define G_FILE_ATTRIBUTE_UNIX_UID "unix::uid" /* uint32 */
611 * G_FILE_ATTRIBUTE_UNIX_GID:
613 * A key in the "unix" namespace for getting the group ID for the file.
614 * This attribute is only available for UNIX file systems.
615 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
617 #define G_FILE_ATTRIBUTE_UNIX_GID "unix::gid" /* uint32 */
620 * G_FILE_ATTRIBUTE_UNIX_RDEV:
622 * A key in the "unix" namespace for getting the device ID for the file
623 * (if it is a special file). See lstat() documentation. This attribute
624 * is only available for UNIX file systems. Corresponding #GFileAttributeType
625 * is %G_FILE_ATTRIBUTE_TYPE_UINT32.
627 #define G_FILE_ATTRIBUTE_UNIX_RDEV "unix::rdev" /* uint32 */
630 * G_FILE_ATTRIBUTE_UNIX_BLOCK_SIZE:
632 * A key in the "unix" namespace for getting the block size for the file
633 * system. This attribute is only available for UNIX file systems.
634 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
636 #define G_FILE_ATTRIBUTE_UNIX_BLOCK_SIZE "unix::block-size" /* uint32 */
639 * G_FILE_ATTRIBUTE_UNIX_BLOCKS:
641 * A key in the "unix" namespace for getting the number of blocks allocated
642 * for the file. This attribute is only available for UNIX file systems.
643 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64.
645 #define G_FILE_ATTRIBUTE_UNIX_BLOCKS "unix::blocks" /* uint64 */
648 * G_FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT:
650 * A key in the "unix" namespace for checking if the file represents a
651 * UNIX mount point. This attribute is %TRUE if the file is a UNIX mount
652 * point. Since 2.58, `/` is considered to be a mount point.
653 * This attribute is only available for UNIX file systems.
654 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
656 #define G_FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT "unix::is-mountpoint" /* boolean */
658 /* DOS specific attributes */
661 * G_FILE_ATTRIBUTE_DOS_IS_ARCHIVE:
663 * A key in the "dos" namespace for checking if the file's archive flag
664 * is set. This attribute is %TRUE if the archive flag is set. This attribute
665 * is only available for DOS file systems. Corresponding #GFileAttributeType
666 * is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
668 #define G_FILE_ATTRIBUTE_DOS_IS_ARCHIVE "dos::is-archive" /* boolean */
671 * G_FILE_ATTRIBUTE_DOS_IS_SYSTEM:
673 * A key in the "dos" namespace for checking if the file's backup flag
674 * is set. This attribute is %TRUE if the backup flag is set. This attribute
675 * is only available for DOS file systems. Corresponding #GFileAttributeType
676 * is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
678 #define G_FILE_ATTRIBUTE_DOS_IS_SYSTEM "dos::is-system" /* boolean */
681 * G_FILE_ATTRIBUTE_DOS_IS_MOUNTPOINT:
683 * A key in the "dos" namespace for checking if the file is a NTFS mount point
684 * (a volume mount or a junction point).
685 * This attribute is %TRUE if file is a reparse point of type
686 * [IO_REPARSE_TAG_MOUNT_POINT](https://msdn.microsoft.com/en-us/library/dd541667.aspx).
687 * This attribute is only available for DOS file systems.
688 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
692 #define G_FILE_ATTRIBUTE_DOS_IS_MOUNTPOINT "dos::is-mountpoint" /* boolean */
695 * G_FILE_ATTRIBUTE_DOS_REPARSE_POINT_TAG:
697 * A key in the "dos" namespace for getting the file NTFS reparse tag.
698 * This value is 0 for files that are not reparse points.
699 * See the [Reparse Tags](https://msdn.microsoft.com/en-us/library/dd541667.aspx)
700 * page for possible reparse tag values. Corresponding #GFileAttributeType
701 * is %G_FILE_ATTRIBUTE_TYPE_UINT32.
705 #define G_FILE_ATTRIBUTE_DOS_REPARSE_POINT_TAG "dos::reparse-point-tag" /* uint32 */
707 /* Owner attributes */
710 * G_FILE_ATTRIBUTE_OWNER_USER:
712 * A key in the "owner" namespace for getting the user name of the
713 * file's owner. Corresponding #GFileAttributeType is
714 * %G_FILE_ATTRIBUTE_TYPE_STRING.
716 #define G_FILE_ATTRIBUTE_OWNER_USER "owner::user" /* string */
719 * G_FILE_ATTRIBUTE_OWNER_USER_REAL:
721 * A key in the "owner" namespace for getting the real name of the
722 * user that owns the file. Corresponding #GFileAttributeType is
723 * %G_FILE_ATTRIBUTE_TYPE_STRING.
725 #define G_FILE_ATTRIBUTE_OWNER_USER_REAL "owner::user-real" /* string */
728 * G_FILE_ATTRIBUTE_OWNER_GROUP:
730 * A key in the "owner" namespace for getting the file owner's group.
731 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
733 #define G_FILE_ATTRIBUTE_OWNER_GROUP "owner::group" /* string */
738 * G_FILE_ATTRIBUTE_THUMBNAIL_PATH:
740 * A key in the "thumbnail" namespace for getting the path to the thumbnail
741 * image. Corresponding #GFileAttributeType is
742 * %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING.
744 #define G_FILE_ATTRIBUTE_THUMBNAIL_PATH "thumbnail::path" /* bytestring */
746 * G_FILE_ATTRIBUTE_THUMBNAILING_FAILED:
748 * A key in the "thumbnail" namespace for checking if thumbnailing failed.
749 * This attribute is %TRUE if thumbnailing failed. Corresponding
750 * #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
752 #define G_FILE_ATTRIBUTE_THUMBNAILING_FAILED "thumbnail::failed" /* boolean */
754 * G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID:
756 * A key in the "thumbnail" namespace for checking whether the thumbnail is outdated.
757 * This attribute is %TRUE if the thumbnail is up-to-date with the file it represents,
758 * and %FALSE if the file has been modified since the thumbnail was generated.
760 * If %G_FILE_ATTRIBUTE_THUMBNAILING_FAILED is %TRUE and this attribute is %FALSE,
761 * it indicates that thumbnailing may be attempted again and may succeed.
763 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
767 #define G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID "thumbnail::is-valid" /* boolean */
772 * G_FILE_ATTRIBUTE_PREVIEW_ICON:
774 * A key in the "preview" namespace for getting a #GIcon that can be
775 * used to get preview of the file. For example, it may be a low
776 * resolution thumbnail without metadata. Corresponding
777 * #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_OBJECT. The value
778 * for this key should contain a #GIcon.
782 #define G_FILE_ATTRIBUTE_PREVIEW_ICON "preview::icon" /* object (GIcon) */
784 /* File system info (for g_file_get_filesystem_info) */
787 * G_FILE_ATTRIBUTE_FILESYSTEM_SIZE:
789 * A key in the "filesystem" namespace for getting the total size (in bytes) of the file system,
790 * used in g_file_query_filesystem_info(). Corresponding #GFileAttributeType
791 * is %G_FILE_ATTRIBUTE_TYPE_UINT64.
793 #define G_FILE_ATTRIBUTE_FILESYSTEM_SIZE "filesystem::size" /* uint64 */
796 * G_FILE_ATTRIBUTE_FILESYSTEM_FREE:
798 * A key in the "filesystem" namespace for getting the number of bytes of free space left on the
799 * file system. Corresponding #GFileAttributeType is
800 * %G_FILE_ATTRIBUTE_TYPE_UINT64.
802 #define G_FILE_ATTRIBUTE_FILESYSTEM_FREE "filesystem::free" /* uint64 */
805 * G_FILE_ATTRIBUTE_FILESYSTEM_USED:
807 * A key in the "filesystem" namespace for getting the number of bytes of used on the
808 * file system. Corresponding #GFileAttributeType is
809 * %G_FILE_ATTRIBUTE_TYPE_UINT64.
813 #define G_FILE_ATTRIBUTE_FILESYSTEM_USED "filesystem::used" /* uint64 */
816 * G_FILE_ATTRIBUTE_FILESYSTEM_TYPE:
818 * A key in the "filesystem" namespace for getting the file system's type.
819 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
821 #define G_FILE_ATTRIBUTE_FILESYSTEM_TYPE "filesystem::type" /* string */
824 * G_FILE_ATTRIBUTE_FILESYSTEM_READONLY:
826 * A key in the "filesystem" namespace for checking if the file system
827 * is read only. Is set to %TRUE if the file system is read only.
828 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
830 #define G_FILE_ATTRIBUTE_FILESYSTEM_READONLY "filesystem::readonly" /* boolean */
833 * G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW:
835 * A key in the "filesystem" namespace for hinting a file manager
836 * application whether it should preview (e.g. thumbnail) files on the
837 * file system. The value for this key contain a
838 * #GFilesystemPreviewType.
840 #define G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW "filesystem::use-preview" /* uint32 (GFilesystemPreviewType) */
843 * G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE:
845 * A key in the "filesystem" namespace for checking if the file system
846 * is remote. Is set to %TRUE if the file system is remote.
847 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
849 #define G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE "filesystem::remote" /* boolean */
852 * G_FILE_ATTRIBUTE_GVFS_BACKEND:
854 * A key in the "gvfs" namespace that gets the name of the current
855 * GVFS backend in use. Corresponding #GFileAttributeType is
856 * %G_FILE_ATTRIBUTE_TYPE_STRING.
858 #define G_FILE_ATTRIBUTE_GVFS_BACKEND "gvfs::backend" /* string */
861 * G_FILE_ATTRIBUTE_SELINUX_CONTEXT:
863 * A key in the "selinux" namespace for getting the file's SELinux
864 * context. Corresponding #GFileAttributeType is
865 * %G_FILE_ATTRIBUTE_TYPE_STRING. Note that this attribute is only
866 * available if GLib has been built with SELinux support.
868 #define G_FILE_ATTRIBUTE_SELINUX_CONTEXT "selinux::context" /* string */
871 * G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT:
873 * A key in the "trash" namespace. When requested against
874 * `trash:///` returns the number of (toplevel) items in the trash folder.
875 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
877 #define G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT "trash::item-count" /* uint32 */
880 * G_FILE_ATTRIBUTE_TRASH_ORIG_PATH:
882 * A key in the "trash" namespace. When requested against
883 * items in `trash:///`, will return the original path to the file before it
884 * was trashed. Corresponding #GFileAttributeType is
885 * %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING.
889 #define G_FILE_ATTRIBUTE_TRASH_ORIG_PATH "trash::orig-path" /* byte string */
892 * G_FILE_ATTRIBUTE_TRASH_DELETION_DATE:
894 * A key in the "trash" namespace. When requested against
895 * items in `trash:///`, will return the date and time when the file
896 * was trashed. The format of the returned string is YYYY-MM-DDThh:mm:ss.
897 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
901 #define G_FILE_ATTRIBUTE_TRASH_DELETION_DATE "trash::deletion-date" /* string */
904 * G_FILE_ATTRIBUTE_RECENT_MODIFIED:
906 * A key in the "recent" namespace for getting time, when the metadata for the
907 * file in `recent:///` was last changed. Corresponding #GFileAttributeType is
908 * %G_FILE_ATTRIBUTE_TYPE_INT64.
912 #define G_FILE_ATTRIBUTE_RECENT_MODIFIED "recent::modified" /* int64 (time_t) */
914 GLIB_AVAILABLE_IN_ALL
915 GType g_file_info_get_type (void) G_GNUC_CONST;
917 GLIB_AVAILABLE_IN_ALL
918 GFileInfo * g_file_info_new (void);
919 GLIB_AVAILABLE_IN_ALL
920 GFileInfo * g_file_info_dup (GFileInfo *other);
921 GLIB_AVAILABLE_IN_ALL
922 void g_file_info_copy_into (GFileInfo *src_info,
923 GFileInfo *dest_info);
924 GLIB_AVAILABLE_IN_ALL
925 gboolean g_file_info_has_attribute (GFileInfo *info,
926 const char *attribute);
927 GLIB_AVAILABLE_IN_ALL
928 gboolean g_file_info_has_namespace (GFileInfo *info,
929 const char *name_space);
930 GLIB_AVAILABLE_IN_ALL
931 char ** g_file_info_list_attributes (GFileInfo *info,
932 const char *name_space);
933 GLIB_AVAILABLE_IN_ALL
934 gboolean g_file_info_get_attribute_data (GFileInfo *info,
935 const char *attribute,
936 GFileAttributeType *type,
938 GFileAttributeStatus *status);
939 GLIB_AVAILABLE_IN_ALL
940 GFileAttributeType g_file_info_get_attribute_type (GFileInfo *info,
941 const char *attribute);
942 GLIB_AVAILABLE_IN_ALL
943 void g_file_info_remove_attribute (GFileInfo *info,
944 const char *attribute);
945 GLIB_AVAILABLE_IN_ALL
946 GFileAttributeStatus g_file_info_get_attribute_status (GFileInfo *info,
947 const char *attribute);
948 GLIB_AVAILABLE_IN_ALL
949 gboolean g_file_info_set_attribute_status (GFileInfo *info,
950 const char *attribute,
951 GFileAttributeStatus status);
952 GLIB_AVAILABLE_IN_ALL
953 char * g_file_info_get_attribute_as_string (GFileInfo *info,
954 const char *attribute);
955 GLIB_AVAILABLE_IN_ALL
956 const char * g_file_info_get_attribute_string (GFileInfo *info,
957 const char *attribute);
958 GLIB_AVAILABLE_IN_ALL
959 const char * g_file_info_get_attribute_byte_string (GFileInfo *info,
960 const char *attribute);
961 GLIB_AVAILABLE_IN_ALL
962 gboolean g_file_info_get_attribute_boolean (GFileInfo *info,
963 const char *attribute);
964 GLIB_AVAILABLE_IN_ALL
965 guint32 g_file_info_get_attribute_uint32 (GFileInfo *info,
966 const char *attribute);
967 GLIB_AVAILABLE_IN_ALL
968 gint32 g_file_info_get_attribute_int32 (GFileInfo *info,
969 const char *attribute);
970 GLIB_AVAILABLE_IN_ALL
971 guint64 g_file_info_get_attribute_uint64 (GFileInfo *info,
972 const char *attribute);
973 GLIB_AVAILABLE_IN_ALL
974 gint64 g_file_info_get_attribute_int64 (GFileInfo *info,
975 const char *attribute);
976 GLIB_AVAILABLE_IN_ALL
977 GObject * g_file_info_get_attribute_object (GFileInfo *info,
978 const char *attribute);
979 GLIB_AVAILABLE_IN_ALL
980 char ** g_file_info_get_attribute_stringv (GFileInfo *info,
981 const char *attribute);
983 GLIB_AVAILABLE_IN_ALL
984 void g_file_info_set_attribute (GFileInfo *info,
985 const char *attribute,
986 GFileAttributeType type,
988 GLIB_AVAILABLE_IN_ALL
989 void g_file_info_set_attribute_string (GFileInfo *info,
990 const char *attribute,
991 const char *attr_value);
992 GLIB_AVAILABLE_IN_ALL
993 void g_file_info_set_attribute_byte_string (GFileInfo *info,
994 const char *attribute,
995 const char *attr_value);
996 GLIB_AVAILABLE_IN_ALL
997 void g_file_info_set_attribute_boolean (GFileInfo *info,
998 const char *attribute,
999 gboolean attr_value);
1000 GLIB_AVAILABLE_IN_ALL
1001 void g_file_info_set_attribute_uint32 (GFileInfo *info,
1002 const char *attribute,
1003 guint32 attr_value);
1004 GLIB_AVAILABLE_IN_ALL
1005 void g_file_info_set_attribute_int32 (GFileInfo *info,
1006 const char *attribute,
1008 GLIB_AVAILABLE_IN_ALL
1009 void g_file_info_set_attribute_uint64 (GFileInfo *info,
1010 const char *attribute,
1011 guint64 attr_value);
1012 GLIB_AVAILABLE_IN_ALL
1013 void g_file_info_set_attribute_int64 (GFileInfo *info,
1014 const char *attribute,
1016 GLIB_AVAILABLE_IN_ALL
1017 void g_file_info_set_attribute_object (GFileInfo *info,
1018 const char *attribute,
1019 GObject *attr_value);
1020 GLIB_AVAILABLE_IN_ALL
1021 void g_file_info_set_attribute_stringv (GFileInfo *info,
1022 const char *attribute,
1025 GLIB_AVAILABLE_IN_ALL
1026 void g_file_info_clear_status (GFileInfo *info);
1028 /* Helper getters: */
1029 GLIB_AVAILABLE_IN_2_36
1030 GDateTime * g_file_info_get_deletion_date (GFileInfo *info);
1031 GLIB_AVAILABLE_IN_ALL
1032 GFileType g_file_info_get_file_type (GFileInfo *info);
1033 GLIB_AVAILABLE_IN_ALL
1034 gboolean g_file_info_get_is_hidden (GFileInfo *info);
1035 GLIB_AVAILABLE_IN_ALL
1036 gboolean g_file_info_get_is_backup (GFileInfo *info);
1037 GLIB_AVAILABLE_IN_ALL
1038 gboolean g_file_info_get_is_symlink (GFileInfo *info);
1039 GLIB_AVAILABLE_IN_ALL
1040 const char * g_file_info_get_name (GFileInfo *info);
1041 GLIB_AVAILABLE_IN_ALL
1042 const char * g_file_info_get_display_name (GFileInfo *info);
1043 GLIB_AVAILABLE_IN_ALL
1044 const char * g_file_info_get_edit_name (GFileInfo *info);
1045 GLIB_AVAILABLE_IN_ALL
1046 GIcon * g_file_info_get_icon (GFileInfo *info);
1047 GLIB_AVAILABLE_IN_ALL
1048 GIcon * g_file_info_get_symbolic_icon (GFileInfo *info);
1049 GLIB_AVAILABLE_IN_ALL
1050 const char * g_file_info_get_content_type (GFileInfo *info);
1051 GLIB_AVAILABLE_IN_ALL
1052 goffset g_file_info_get_size (GFileInfo *info);
1053 G_GNUC_BEGIN_IGNORE_DEPRECATIONS
1054 GLIB_DEPRECATED_IN_2_62_FOR(g_file_info_get_modification_date_time)
1055 void g_file_info_get_modification_time (GFileInfo *info,
1057 G_GNUC_END_IGNORE_DEPRECATIONS
1058 GLIB_AVAILABLE_IN_2_62
1059 GDateTime * g_file_info_get_modification_date_time (GFileInfo *info);
1060 GLIB_AVAILABLE_IN_ALL
1061 const char * g_file_info_get_symlink_target (GFileInfo *info);
1062 GLIB_AVAILABLE_IN_ALL
1063 const char * g_file_info_get_etag (GFileInfo *info);
1064 GLIB_AVAILABLE_IN_ALL
1065 gint32 g_file_info_get_sort_order (GFileInfo *info);
1067 GLIB_AVAILABLE_IN_ALL
1068 void g_file_info_set_attribute_mask (GFileInfo *info,
1069 GFileAttributeMatcher *mask);
1070 GLIB_AVAILABLE_IN_ALL
1071 void g_file_info_unset_attribute_mask (GFileInfo *info);
1073 /* Helper setters: */
1074 GLIB_AVAILABLE_IN_ALL
1075 void g_file_info_set_file_type (GFileInfo *info,
1077 GLIB_AVAILABLE_IN_ALL
1078 void g_file_info_set_is_hidden (GFileInfo *info,
1079 gboolean is_hidden);
1080 GLIB_AVAILABLE_IN_ALL
1081 void g_file_info_set_is_symlink (GFileInfo *info,
1082 gboolean is_symlink);
1083 GLIB_AVAILABLE_IN_ALL
1084 void g_file_info_set_name (GFileInfo *info,
1086 GLIB_AVAILABLE_IN_ALL
1087 void g_file_info_set_display_name (GFileInfo *info,
1088 const char *display_name);
1089 GLIB_AVAILABLE_IN_ALL
1090 void g_file_info_set_edit_name (GFileInfo *info,
1091 const char *edit_name);
1092 GLIB_AVAILABLE_IN_ALL
1093 void g_file_info_set_icon (GFileInfo *info,
1095 GLIB_AVAILABLE_IN_ALL
1096 void g_file_info_set_symbolic_icon (GFileInfo *info,
1098 GLIB_AVAILABLE_IN_ALL
1099 void g_file_info_set_content_type (GFileInfo *info,
1100 const char *content_type);
1101 GLIB_AVAILABLE_IN_ALL
1102 void g_file_info_set_size (GFileInfo *info,
1104 G_GNUC_BEGIN_IGNORE_DEPRECATIONS
1105 GLIB_DEPRECATED_IN_2_62_FOR(g_file_info_set_modification_date_time)
1106 void g_file_info_set_modification_time (GFileInfo *info,
1108 G_GNUC_END_IGNORE_DEPRECATIONS
1109 GLIB_AVAILABLE_IN_2_62
1110 void g_file_info_set_modification_date_time (GFileInfo *info,
1112 GLIB_AVAILABLE_IN_ALL
1113 void g_file_info_set_symlink_target (GFileInfo *info,
1114 const char *symlink_target);
1115 GLIB_AVAILABLE_IN_ALL
1116 void g_file_info_set_sort_order (GFileInfo *info,
1119 #define G_TYPE_FILE_ATTRIBUTE_MATCHER (g_file_attribute_matcher_get_type ())
1120 GLIB_AVAILABLE_IN_ALL
1121 GType g_file_attribute_matcher_get_type (void) G_GNUC_CONST;
1123 GLIB_AVAILABLE_IN_ALL
1124 GFileAttributeMatcher *g_file_attribute_matcher_new (const char *attributes);
1125 GLIB_AVAILABLE_IN_ALL
1126 GFileAttributeMatcher *g_file_attribute_matcher_ref (GFileAttributeMatcher *matcher);
1127 GLIB_AVAILABLE_IN_ALL
1128 void g_file_attribute_matcher_unref (GFileAttributeMatcher *matcher);
1129 GLIB_AVAILABLE_IN_ALL
1130 GFileAttributeMatcher *g_file_attribute_matcher_subtract (GFileAttributeMatcher *matcher,
1131 GFileAttributeMatcher *subtract);
1132 GLIB_AVAILABLE_IN_ALL
1133 gboolean g_file_attribute_matcher_matches (GFileAttributeMatcher *matcher,
1134 const char *attribute);
1135 GLIB_AVAILABLE_IN_ALL
1136 gboolean g_file_attribute_matcher_matches_only (GFileAttributeMatcher *matcher,
1137 const char *attribute);
1138 GLIB_AVAILABLE_IN_ALL
1139 gboolean g_file_attribute_matcher_enumerate_namespace (GFileAttributeMatcher *matcher,
1141 GLIB_AVAILABLE_IN_ALL
1142 const char * g_file_attribute_matcher_enumerate_next (GFileAttributeMatcher *matcher);
1143 GLIB_AVAILABLE_IN_2_32
1144 char * g_file_attribute_matcher_to_string (GFileAttributeMatcher *matcher);
1148 #endif /* __G_FILE_INFO_H__ */