Blame gio/gfileinfo.h

Packit ae235b
/* GIO - GLib Input, Output and Streaming Library
Packit ae235b
 *
Packit ae235b
 * Copyright (C) 2006-2007 Red Hat, Inc.
Packit ae235b
 *
Packit ae235b
 * This library is free software; you can redistribute it and/or
Packit ae235b
 * modify it under the terms of the GNU Lesser General Public
Packit ae235b
 * License as published by the Free Software Foundation; either
Packit ae235b
 * version 2.1 of the License, or (at your option) any later version.
Packit ae235b
 *
Packit ae235b
 * This library is distributed in the hope that it will be useful,
Packit ae235b
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit ae235b
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit ae235b
 * Lesser General Public License for more details.
Packit ae235b
 *
Packit ae235b
 * You should have received a copy of the GNU Lesser General
Packit ae235b
 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
Packit ae235b
 *
Packit ae235b
 * Author: Alexander Larsson <alexl@redhat.com>
Packit ae235b
 */
Packit ae235b
Packit ae235b
#ifndef __G_FILE_INFO_H__
Packit ae235b
#define __G_FILE_INFO_H__
Packit ae235b
Packit ae235b
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
Packit ae235b
#error "Only <gio/gio.h> can be included directly."
Packit ae235b
#endif
Packit ae235b
Packit ae235b
#include <gio/giotypes.h>
Packit ae235b
Packit ae235b
G_BEGIN_DECLS
Packit ae235b
Packit ae235b
#define G_TYPE_FILE_INFO         (g_file_info_get_type ())
Packit ae235b
#define G_FILE_INFO(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_FILE_INFO, GFileInfo))
Packit ae235b
#define G_FILE_INFO_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_FILE_INFO, GFileInfoClass))
Packit ae235b
#define G_IS_FILE_INFO(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_FILE_INFO))
Packit ae235b
#define G_IS_FILE_INFO_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_FILE_INFO))
Packit ae235b
#define G_FILE_INFO_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_FILE_INFO, GFileInfoClass))
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GFileInfo:
Packit ae235b
 *
Packit ae235b
 * Stores information about a file system object referenced by a #GFile.
Packit ae235b
 **/
Packit ae235b
typedef struct _GFileInfoClass   GFileInfoClass;
Packit ae235b
Packit ae235b
Packit ae235b
/* Common Attributes:  */
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_STANDARD_TYPE:
Packit ae235b
 *
Packit ae235b
 * A key in the "standard" namespace for storing file types.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
Packit ae235b
 * The value for this key should contain a #GFileType.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_STANDARD_TYPE "standard::type"                     /* uint32 (GFileType) */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN:
Packit ae235b
 *
Packit ae235b
 * A key in the "standard" namespace for checking if a file is hidden.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN "standard::is-hidden"           /* boolean */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP:
Packit ae235b
 *
Packit ae235b
 * A key in the "standard" namespace for checking if a file is a backup file.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP "standard::is-backup"           /* boolean */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK:
Packit ae235b
 *
Packit ae235b
 * A key in the "standard" namespace for checking if the file is a symlink.
Packit ae235b
 * Typically the actual type is something else, if we followed the symlink
Packit ae235b
 * to get the type.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK "standard::is-symlink"         /* boolean */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL:
Packit ae235b
 *
Packit ae235b
 * A key in the "standard" namespace for checking if a file is virtual.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL "standard::is-virtual"         /* boolean */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_STANDARD_IS_VOLATILE:
Packit ae235b
 *
Packit ae235b
 * A key in the "standard" namespace for checking if a file is
Packit ae235b
 * volatile. This is meant for opaque, non-POSIX-like backends to
Packit ae235b
 * indicate that the URI is not persistent. Applications should look
Packit ae235b
 * at #G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET for the persistent URI.
Packit ae235b
 *
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 *
Packit ae235b
 * Since: 2.46
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_STANDARD_IS_VOLATILE "standard::is-volatile"      /* boolean */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_STANDARD_NAME:
Packit ae235b
 *
Packit ae235b
 * A key in the "standard" namespace for getting the name of the file.
Packit ae235b
 * The name is the on-disk filename which may not be in any known encoding,
Packit ae235b
 * and can thus not be generally displayed as is.
Packit ae235b
 * Use #G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME if you need to display the
Packit ae235b
 * name in a user interface.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_STANDARD_NAME "standard::name"                     /* byte string */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME:
Packit ae235b
 *
Packit ae235b
 * A key in the "standard" namespace for getting the display name of the file.
Packit ae235b
 * A display name is guaranteed to be in UTF8 and can thus be displayed in
Packit ae235b
 * the UI.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME "standard::display-name"     /* string */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME:
Packit ae235b
 *
Packit ae235b
 * A key in the "standard" namespace for edit name of the file.
Packit ae235b
 * An edit name is similar to the display name, but it is meant to be
Packit ae235b
 * used when you want to rename the file in the UI. The display name
Packit ae235b
 * might contain information you don't want in the new filename (such as
Packit ae235b
 * "(invalid unicode)" if the filename was in an invalid encoding).
Packit ae235b
 *
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME "standard::edit-name"           /* string */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_STANDARD_COPY_NAME:
Packit ae235b
 *
Packit ae235b
 * A key in the "standard" namespace for getting the copy name of the file.
Packit ae235b
 * The copy name is an optional version of the name. If available it's always
Packit ae235b
 * in UTF8, and corresponds directly to the original filename (only transcoded to
Packit ae235b
 * UTF8). This is useful if you want to copy the file to another filesystem that
Packit ae235b
 * might have a different encoding. If the filename is not a valid string in the
Packit ae235b
 * encoding selected for the filesystem it is in then the copy name will not be set.
Packit ae235b
 *
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_STANDARD_COPY_NAME "standard::copy-name"           /* string */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_STANDARD_DESCRIPTION:
Packit ae235b
 *
Packit ae235b
 * A key in the "standard" namespace for getting the description of the file.
Packit ae235b
 * The description is a utf8 string that describes the file, generally containing
Packit ae235b
 * the filename, but can also contain furter information. Example descriptions
Packit ae235b
 * could be "filename (on hostname)" for a remote file or "filename (in trash)"
Packit ae235b
 * for a file in the trash. This is useful for instance as the window title
Packit ae235b
 * when displaying a directory or for a bookmarks menu.
Packit ae235b
 *
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_STANDARD_DESCRIPTION "standard::description"        /* string */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_STANDARD_ICON:
Packit ae235b
 *
Packit ae235b
 * A key in the "standard" namespace for getting the icon for the file.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_OBJECT.
Packit ae235b
 * The value for this key should contain a #GIcon.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_STANDARD_ICON "standard::icon"                     /* object (GIcon) */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON:
Packit ae235b
 *
Packit ae235b
 * A key in the "standard" namespace for getting the symbolic icon for the file.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_OBJECT.
Packit ae235b
 * The value for this key should contain a #GIcon.
Packit ae235b
 *
Packit ae235b
 * Since: 2.34
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON "standard::symbolic-icon"   /* object (GIcon) */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE:
Packit ae235b
 *
Packit ae235b
 * A key in the "standard" namespace for getting the content type of the file.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
Packit ae235b
 * The value for this key should contain a valid content type.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE "standard::content-type"     /* string */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE:
Packit ae235b
 *
Packit ae235b
 * A key in the "standard" namespace for getting the fast content type.
Packit ae235b
 * The fast content type isn't as reliable as the regular one, as it
Packit ae235b
 * only uses the filename to guess it, but it is faster to calculate than the
Packit ae235b
 * regular content type.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
Packit ae235b
 *
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE "standard::fast-content-type" /* string */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_STANDARD_SIZE:
Packit ae235b
 *
Packit ae235b
 * A key in the "standard" namespace for getting the file's size (in bytes).
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_STANDARD_SIZE "standard::size"                     /* uint64 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE:
Packit ae235b
 *
Packit ae235b
 * A key in the "standard" namespace for getting the amount of disk space
Packit ae235b
 * that is consumed by the file (in bytes).  This will generally be larger
Packit ae235b
 * than the file size (due to block size overhead) but can occasionally be
Packit ae235b
 * smaller (for example, for sparse files).
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64.
Packit ae235b
 *
Packit ae235b
 * Since: 2.20
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE "standard::allocated-size" /* uint64 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET:
Packit ae235b
 *
Packit ae235b
 * A key in the "standard" namespace for getting the symlink target, if the file
Packit ae235b
 * is a symlink. Corresponding #GFileAttributeType is
Packit ae235b
 * %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET "standard::symlink-target" /* byte string */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_STANDARD_TARGET_URI:
Packit ae235b
 *
Packit ae235b
 * A key in the "standard" namespace for getting the target URI for the file, in
Packit ae235b
 * the case of %G_FILE_TYPE_SHORTCUT or %G_FILE_TYPE_MOUNTABLE files.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_STANDARD_TARGET_URI "standard::target-uri"         /* string */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER:
Packit ae235b
 *
Packit ae235b
 * A key in the "standard" namespace for setting the sort order of a file.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_INT32.
Packit ae235b
 * An example use would be in file managers, which would use this key
Packit ae235b
 * to set the order files are displayed. Files with smaller sort order
Packit ae235b
 * should be sorted first, and files without sort order as if sort order
Packit ae235b
 * was zero.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER "standard::sort-order"         /* int32  */
Packit ae235b
Packit ae235b
/* Entity tags, used to avoid missing updates on save */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_ETAG_VALUE:
Packit ae235b
 *
Packit ae235b
 * A key in the "etag" namespace for getting the value of the file's
Packit ae235b
 * entity tag. Corresponding #GFileAttributeType is
Packit ae235b
 * %G_FILE_ATTRIBUTE_TYPE_STRING.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_ETAG_VALUE "etag::value"                 /* string */
Packit ae235b
Packit ae235b
/* File identifier, for e.g. avoiding loops when doing recursive
Packit ae235b
 * directory scanning
Packit ae235b
 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_ID_FILE:
Packit ae235b
 *
Packit ae235b
 * A key in the "id" namespace for getting a file identifier.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
Packit ae235b
 * An example use would be during listing files, to avoid recursive
Packit ae235b
 * directory scanning.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_ID_FILE "id::file"                     /* string */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_ID_FILESYSTEM:
Packit ae235b
 *
Packit ae235b
 * A key in the "id" namespace for getting the file system identifier.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
Packit ae235b
 * An example use would be during drag and drop to see if the source
Packit ae235b
 * and target are on the same filesystem (default to move) or not (default
Packit ae235b
 * to copy).
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_ID_FILESYSTEM "id::filesystem"         /* string */
Packit ae235b
Packit ae235b
/* Calculated Access Rights for current user */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_ACCESS_CAN_READ:
Packit ae235b
 *
Packit ae235b
 * A key in the "access" namespace for getting read privileges.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 * This attribute will be %TRUE if the user is able to read the file.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_ACCESS_CAN_READ "access::can-read"       /* boolean */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE:
Packit ae235b
 *
Packit ae235b
 * A key in the "access" namespace for getting write privileges.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 * This attribute will be %TRUE if the user is able to write to the file.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE "access::can-write"     /* boolean */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE:
Packit ae235b
 *
Packit ae235b
 * A key in the "access" namespace for getting execution privileges.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 * This attribute will be %TRUE if the user is able to execute the file.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE "access::can-execute" /* boolean */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE:
Packit ae235b
 *
Packit ae235b
 * A key in the "access" namespace for checking deletion privileges.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 * This attribute will be %TRUE if the user is able to delete the file.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE "access::can-delete"   /* boolean */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH:
Packit ae235b
 *
Packit ae235b
 * A key in the "access" namespace for checking trashing privileges.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 * This attribute will be %TRUE if the user is able to move the file to
Packit ae235b
 * the trash.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH "access::can-trash"     /* boolean */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_ACCESS_CAN_RENAME:
Packit ae235b
 *
Packit ae235b
 * A key in the "access" namespace for checking renaming privileges.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 * This attribute will be %TRUE if the user is able to rename the file.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_ACCESS_CAN_RENAME "access::can-rename"   /* boolean */
Packit ae235b
Packit ae235b
/* TODO: Should we have special version for directories? can_enumerate, etc */
Packit ae235b
Packit ae235b
/* Mountable attributes */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT:
Packit ae235b
 *
Packit ae235b
 * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) is mountable.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT "mountable::can-mount"     /* boolean */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT:
Packit ae235b
 *
Packit ae235b
 * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE)  is unmountable.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT "mountable::can-unmount" /* boolean */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT:
Packit ae235b
 *
Packit ae235b
 * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) can be ejected.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT "mountable::can-eject"     /* boolean */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE:
Packit ae235b
 *
Packit ae235b
 * A key in the "mountable" namespace for getting the unix device.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE "mountable::unix-device" /* uint32 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE:
Packit ae235b
 *
Packit ae235b
 * A key in the "mountable" namespace for getting the unix device file.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
Packit ae235b
 *
Packit ae235b
 * Since: 2.22
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE "mountable::unix-device-file" /* string */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI:
Packit ae235b
 *
Packit ae235b
 * A key in the "mountable" namespace for getting the HAL UDI for the mountable
Packit ae235b
 * file. Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI "mountable::hal-udi"         /* string */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START:
Packit ae235b
 *
Packit ae235b
 * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) can be started.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 *
Packit ae235b
 * Since: 2.22
Packit ae235b
 */
Packit ae235b
#define G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START "mountable::can-start"     /* boolean */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED:
Packit ae235b
 *
Packit ae235b
 * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) can be started
Packit ae235b
 * degraded.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 *
Packit ae235b
 * Since: 2.22
Packit ae235b
 */
Packit ae235b
#define G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED "mountable::can-start-degraded"     /* boolean */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP:
Packit ae235b
 *
Packit ae235b
 * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) can be stopped.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 *
Packit ae235b
 * Since: 2.22
Packit ae235b
 */
Packit ae235b
#define G_FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP "mountable::can-stop"      /* boolean */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE:
Packit ae235b
 *
Packit ae235b
 * A key in the "mountable" namespace for getting the #GDriveStartStopType.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
Packit ae235b
 *
Packit ae235b
 * Since: 2.22
Packit ae235b
 */
Packit ae235b
#define G_FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE "mountable::start-stop-type" /* uint32 (GDriveStartStopType) */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL:
Packit ae235b
 *
Packit ae235b
 * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) can be polled.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 *
Packit ae235b
 * Since: 2.22
Packit ae235b
 */
Packit ae235b
#define G_FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL "mountable::can-poll"      /* boolean */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC:
Packit ae235b
 *
Packit ae235b
 * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE)
Packit ae235b
 * is automatically polled for media.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 *
Packit ae235b
 * Since: 2.22
Packit ae235b
 */
Packit ae235b
#define G_FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC "mountable::is-media-check-automatic"      /* boolean */
Packit ae235b
Packit ae235b
/* Time attributes */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_TIME_MODIFIED:
Packit ae235b
 *
Packit ae235b
 * A key in the "time" namespace for getting the time the file was last
Packit ae235b
 * modified. Corresponding #GFileAttributeType is
Packit ae235b
 * %G_FILE_ATTRIBUTE_TYPE_UINT64, and contains the time since the
Packit ae235b
 * file was modified, in seconds since the UNIX epoch.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_TIME_MODIFIED "time::modified"           /* uint64 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC:
Packit ae235b
 *
Packit ae235b
 * A key in the "time" namespace for getting the microseconds of the time
Packit ae235b
 * the file was last modified. This should be used in conjunction with
Packit ae235b
 * #G_FILE_ATTRIBUTE_TIME_MODIFIED. Corresponding #GFileAttributeType is
Packit ae235b
 * %G_FILE_ATTRIBUTE_TYPE_UINT32.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC "time::modified-usec" /* uint32 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_TIME_ACCESS:
Packit ae235b
 *
Packit ae235b
 * A key in the "time" namespace for getting the time the file was last
Packit ae235b
 * accessed. Corresponding #GFileAttributeType is
Packit ae235b
 * %G_FILE_ATTRIBUTE_TYPE_UINT64, and contains the time since the
Packit ae235b
 * file was last accessed, in seconds since the UNIX epoch.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_TIME_ACCESS "time::access"               /* uint64 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_TIME_ACCESS_USEC:
Packit ae235b
 *
Packit ae235b
 * A key in the "time" namespace for getting the microseconds of the time
Packit ae235b
 * the file was last accessed. This should be used in conjunction with
Packit ae235b
 * #G_FILE_ATTRIBUTE_TIME_ACCESS. Corresponding #GFileAttributeType is
Packit ae235b
 * %G_FILE_ATTRIBUTE_TYPE_UINT32.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_TIME_ACCESS_USEC "time::access-usec"     /* uint32 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_TIME_CHANGED:
Packit ae235b
 *
Packit ae235b
 * A key in the "time" namespace for getting the time the file was last
Packit ae235b
 * changed. Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64,
Packit ae235b
 * and contains the time since the file was last changed, in seconds since the
Packit ae235b
 * UNIX epoch.
Packit ae235b
 *
Packit ae235b
 * This corresponds to the traditional UNIX ctime.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_TIME_CHANGED "time::changed"             /* uint64 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_TIME_CHANGED_USEC:
Packit ae235b
 *
Packit ae235b
 * A key in the "time" namespace for getting the microseconds of the time
Packit ae235b
 * the file was last changed. This should be used in conjunction with
Packit ae235b
 * #G_FILE_ATTRIBUTE_TIME_CHANGED. Corresponding #GFileAttributeType is
Packit ae235b
 * %G_FILE_ATTRIBUTE_TYPE_UINT32.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_TIME_CHANGED_USEC "time::changed-usec"   /* uint32 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_TIME_CREATED:
Packit ae235b
 *
Packit ae235b
 * A key in the "time" namespace for getting the time the file was created.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64,
Packit ae235b
 * and contains the time since the file was created, in seconds since the UNIX
Packit ae235b
 * epoch.
Packit ae235b
 *
Packit ae235b
 * This corresponds to the NTFS ctime.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_TIME_CREATED "time::created"             /* uint64 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_TIME_CREATED_USEC:
Packit ae235b
 *
Packit ae235b
 * A key in the "time" namespace for getting the microseconds of the time
Packit ae235b
 * the file was created. This should be used in conjunction with
Packit ae235b
 * #G_FILE_ATTRIBUTE_TIME_CREATED. Corresponding #GFileAttributeType is
Packit ae235b
 * %G_FILE_ATTRIBUTE_TYPE_UINT32.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_TIME_CREATED_USEC "time::created-usec"   /* uint32 */
Packit ae235b
Packit ae235b
/* Unix specific attributes */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_UNIX_DEVICE:
Packit ae235b
 *
Packit ae235b
 * A key in the "unix" namespace for getting the device id of the device the
Packit ae235b
 * file is located on (see stat() documentation). This attribute is only
Packit ae235b
 * available for UNIX file systems. Corresponding #GFileAttributeType is
Packit ae235b
 * %G_FILE_ATTRIBUTE_TYPE_UINT32.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_UNIX_DEVICE "unix::device"               /* uint32 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_UNIX_INODE:
Packit ae235b
 *
Packit ae235b
 * A key in the "unix" namespace for getting the inode of the file.
Packit ae235b
 * This attribute is only available for UNIX file systems. Corresponding
Packit ae235b
 * #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_UNIX_INODE "unix::inode"                 /* uint64 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_UNIX_MODE:
Packit ae235b
 *
Packit ae235b
 * A key in the "unix" namespace for getting the mode of the file
Packit ae235b
 * (e.g. whether the file is a regular file, symlink, etc). See lstat()
Packit ae235b
 * documentation. This attribute is only available for UNIX file systems.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_UNIX_MODE "unix::mode"                   /* uint32 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_UNIX_NLINK:
Packit ae235b
 *
Packit ae235b
 * A key in the "unix" namespace for getting the number of hard links
Packit ae235b
 * for a file. See lstat() documentation. This attribute is only available
Packit ae235b
 * for UNIX file systems. Corresponding #GFileAttributeType is
Packit ae235b
 * %G_FILE_ATTRIBUTE_TYPE_UINT32.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_UNIX_NLINK "unix::nlink"                 /* uint32 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_UNIX_UID:
Packit ae235b
 *
Packit ae235b
 * A key in the "unix" namespace for getting the user ID for the file.
Packit ae235b
 * This attribute is only available for UNIX file systems.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_UNIX_UID "unix::uid"                     /* uint32 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_UNIX_GID:
Packit ae235b
 *
Packit ae235b
 * A key in the "unix" namespace for getting the group ID for the file.
Packit ae235b
 * This attribute is only available for UNIX file systems.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_UNIX_GID "unix::gid"                     /* uint32 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_UNIX_RDEV:
Packit ae235b
 *
Packit ae235b
 * A key in the "unix" namespace for getting the device ID for the file
Packit ae235b
 * (if it is a special file). See lstat() documentation. This attribute
Packit ae235b
 * is only available for UNIX file systems. Corresponding #GFileAttributeType
Packit ae235b
 * is %G_FILE_ATTRIBUTE_TYPE_UINT32.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_UNIX_RDEV "unix::rdev"                   /* uint32 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_UNIX_BLOCK_SIZE:
Packit ae235b
 *
Packit ae235b
 * A key in the "unix" namespace for getting the block size for the file
Packit ae235b
 * system. This attribute is only available for UNIX file systems.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_UNIX_BLOCK_SIZE "unix::block-size"       /* uint32 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_UNIX_BLOCKS:
Packit ae235b
 *
Packit ae235b
 * A key in the "unix" namespace for getting the number of blocks allocated
Packit ae235b
 * for the file. This attribute is only available for UNIX file systems.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_UNIX_BLOCKS "unix::blocks"               /* uint64 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT:
Packit ae235b
 *
Packit ae235b
 * A key in the "unix" namespace for checking if the file represents a
Packit ae235b
 * UNIX mount point. This attribute is %TRUE if the file is a UNIX mount
Packit ae235b
 * point. This attribute is only available for UNIX file systems.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT "unix::is-mountpoint" /* boolean */
Packit ae235b
Packit ae235b
/* DOS specific attributes */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_DOS_IS_ARCHIVE:
Packit ae235b
 *
Packit ae235b
 * A key in the "dos" namespace for checking if the file's archive flag
Packit ae235b
 * is set. This attribute is %TRUE if the archive flag is set. This attribute
Packit ae235b
 * is only available for DOS file systems. Corresponding #GFileAttributeType
Packit ae235b
 * is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_DOS_IS_ARCHIVE "dos::is-archive"         /* boolean */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_DOS_IS_SYSTEM:
Packit ae235b
 *
Packit ae235b
 * A key in the "dos" namespace for checking if the file's backup flag
Packit ae235b
 * is set. This attribute is %TRUE if the backup flag is set. This attribute
Packit ae235b
 * is only available for DOS file systems. Corresponding #GFileAttributeType
Packit ae235b
 * is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_DOS_IS_SYSTEM "dos::is-system"           /* boolean */
Packit ae235b
Packit ae235b
/* Owner attributes */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_OWNER_USER:
Packit ae235b
 *
Packit ae235b
 * A key in the "owner" namespace for getting the user name of the
Packit ae235b
 * file's owner. Corresponding #GFileAttributeType is
Packit ae235b
 * %G_FILE_ATTRIBUTE_TYPE_STRING.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_OWNER_USER "owner::user"                 /* string */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_OWNER_USER_REAL:
Packit ae235b
 *
Packit ae235b
 * A key in the "owner" namespace for getting the real name of the
Packit ae235b
 * user that owns the file. Corresponding #GFileAttributeType is
Packit ae235b
 * %G_FILE_ATTRIBUTE_TYPE_STRING.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_OWNER_USER_REAL "owner::user-real"       /* string */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_OWNER_GROUP:
Packit ae235b
 *
Packit ae235b
 * A key in the "owner" namespace for getting the file owner's group.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_OWNER_GROUP "owner::group"               /* string */
Packit ae235b
Packit ae235b
/* Thumbnails */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_THUMBNAIL_PATH:
Packit ae235b
 *
Packit ae235b
 * A key in the "thumbnail" namespace for getting the path to the thumbnail
Packit ae235b
 * image. Corresponding #GFileAttributeType is
Packit ae235b
 * %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_THUMBNAIL_PATH "thumbnail::path"         /* bytestring */
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_THUMBNAILING_FAILED:
Packit ae235b
 *
Packit ae235b
 * A key in the "thumbnail" namespace for checking if thumbnailing failed.
Packit ae235b
 * This attribute is %TRUE if thumbnailing failed. Corresponding
Packit ae235b
 * #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_THUMBNAILING_FAILED "thumbnail::failed"         /* boolean */
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID:
Packit ae235b
 *
Packit ae235b
 * A key in the "thumbnail" namespace for checking whether the thumbnail is outdated.
Packit ae235b
 * This attribute is %TRUE if the thumbnail is up-to-date with the file it represents,
Packit ae235b
 * and %FALSE if the file has been modified since the thumbnail was generated.
Packit ae235b
 *
Packit ae235b
 * If %G_FILE_ATTRIBUTE_THUMBNAILING_FAILED is %TRUE and this attribute is %FALSE,
Packit ae235b
 * it indicates that thumbnailing may be attempted again and may succeed.
Packit ae235b
 *
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 *
Packit ae235b
 * Since: 2.40
Packit ae235b
 */
Packit ae235b
#define G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID "thumbnail::is-valid"        /* boolean */
Packit ae235b
Packit ae235b
/* Preview */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_PREVIEW_ICON:
Packit ae235b
 *
Packit ae235b
 * A key in the "preview" namespace for getting a #GIcon that can be
Packit ae235b
 * used to get preview of the file. For example, it may be a low
Packit ae235b
 * resolution thumbnail without metadata. Corresponding
Packit ae235b
 * #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_OBJECT.  The value
Packit ae235b
 * for this key should contain a #GIcon.
Packit ae235b
 *
Packit ae235b
 * Since: 2.20
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_PREVIEW_ICON "preview::icon"         /* object (GIcon) */
Packit ae235b
Packit ae235b
/* File system info (for g_file_get_filesystem_info) */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_FILESYSTEM_SIZE:
Packit ae235b
 *
Packit ae235b
 * A key in the "filesystem" namespace for getting the total size (in bytes) of the file system,
Packit ae235b
 * used in g_file_query_filesystem_info(). Corresponding #GFileAttributeType
Packit ae235b
 * is %G_FILE_ATTRIBUTE_TYPE_UINT64.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_FILESYSTEM_SIZE "filesystem::size"                       /* uint64 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_FILESYSTEM_FREE:
Packit ae235b
 *
Packit ae235b
 * A key in the "filesystem" namespace for getting the number of bytes of free space left on the
Packit ae235b
 * file system. Corresponding #GFileAttributeType is
Packit ae235b
 * %G_FILE_ATTRIBUTE_TYPE_UINT64.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_FILESYSTEM_FREE "filesystem::free"                       /* uint64 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_FILESYSTEM_USED:
Packit ae235b
 *
Packit ae235b
 * A key in the "filesystem" namespace for getting the number of bytes of used on the
Packit ae235b
 * file system. Corresponding #GFileAttributeType is
Packit ae235b
 * %G_FILE_ATTRIBUTE_TYPE_UINT64.
Packit ae235b
 *
Packit ae235b
 * Since: 2.32
Packit ae235b
 */
Packit ae235b
#define G_FILE_ATTRIBUTE_FILESYSTEM_USED "filesystem::used"                       /* uint64 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_FILESYSTEM_TYPE:
Packit ae235b
 *
Packit ae235b
 * A key in the "filesystem" namespace for getting the file system's type.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_FILESYSTEM_TYPE "filesystem::type"                       /* string */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_FILESYSTEM_READONLY:
Packit ae235b
 *
Packit ae235b
 * A key in the "filesystem" namespace for checking if the file system
Packit ae235b
 * is read only. Is set to %TRUE if the file system is read only.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_FILESYSTEM_READONLY "filesystem::readonly"               /* boolean */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW:
Packit ae235b
 *
Packit ae235b
 * A key in the "filesystem" namespace for hinting a file manager
Packit ae235b
 * application whether it should preview (e.g. thumbnail) files on the
Packit ae235b
 * file system. The value for this key contain a
Packit ae235b
 * #GFilesystemPreviewType.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW "filesystem::use-preview"        /* uint32 (GFilesystemPreviewType) */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE:
Packit ae235b
 *
Packit ae235b
 * A key in the "filesystem" namespace for checking if the file system
Packit ae235b
 * is remote. Is set to %TRUE if the file system is remote.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE "filesystem::remote"                   /* boolean */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_GVFS_BACKEND:
Packit ae235b
 *
Packit ae235b
 * A key in the "gvfs" namespace that gets the name of the current
Packit ae235b
 * GVFS backend in use. Corresponding #GFileAttributeType is
Packit ae235b
 * %G_FILE_ATTRIBUTE_TYPE_STRING.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_GVFS_BACKEND "gvfs::backend"             /* string */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_SELINUX_CONTEXT:
Packit ae235b
 *
Packit ae235b
 * A key in the "selinux" namespace for getting the file's SELinux
Packit ae235b
 * context. Corresponding #GFileAttributeType is
Packit ae235b
 * %G_FILE_ATTRIBUTE_TYPE_STRING. Note that this attribute is only
Packit ae235b
 * available if GLib has been built with SELinux support.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_SELINUX_CONTEXT "selinux::context"       /* string */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT:
Packit ae235b
 *
Packit ae235b
 * A key in the "trash" namespace.  When requested against
Packit ae235b
 * `trash:///` returns the number of (toplevel) items in the trash folder.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT "trash::item-count"     /* uint32 */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_TRASH_ORIG_PATH:
Packit ae235b
 *
Packit ae235b
 * A key in the "trash" namespace.  When requested against
Packit ae235b
 * items in `trash:///`, will return the original path to the file before it
Packit ae235b
 * was trashed. Corresponding #GFileAttributeType is
Packit ae235b
 * %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING.
Packit ae235b
 *
Packit ae235b
 * Since: 2.24
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_TRASH_ORIG_PATH "trash::orig-path"     /* byte string */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_TRASH_DELETION_DATE:
Packit ae235b
 *
Packit ae235b
 * A key in the "trash" namespace.  When requested against
Packit ae235b
 * items in `trash:///`, will return the date and time when the file
Packit ae235b
 * was trashed. The format of the returned string is YYYY-MM-DDThh:mm:ss.
Packit ae235b
 * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
Packit ae235b
 *
Packit ae235b
 * Since: 2.24
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_TRASH_DELETION_DATE "trash::deletion-date"  /* string */
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_FILE_ATTRIBUTE_RECENT_MODIFIED:
Packit ae235b
 *
Packit ae235b
 * A key in the "recent" namespace for getting time, when the metadata for the
Packit ae235b
 * file in `recent:///` was last changed. Corresponding #GFileAttributeType is
Packit ae235b
 * %G_FILE_ATTRIBUTE_TYPE_INT64.
Packit ae235b
 *
Packit ae235b
 * Since: 2.52
Packit ae235b
 **/
Packit ae235b
#define G_FILE_ATTRIBUTE_RECENT_MODIFIED "recent::modified"          /* int64 (time_t) */
Packit ae235b
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GType              g_file_info_get_type                  (void) G_GNUC_CONST;
Packit ae235b
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GFileInfo *        g_file_info_new                       (void);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GFileInfo *        g_file_info_dup                       (GFileInfo  *other);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void               g_file_info_copy_into                 (GFileInfo  *src_info,
Packit ae235b
							  GFileInfo  *dest_info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
gboolean           g_file_info_has_attribute             (GFileInfo  *info,
Packit ae235b
							  const char *attribute);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
gboolean           g_file_info_has_namespace             (GFileInfo  *info,
Packit ae235b
							  const char *name_space);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
char **            g_file_info_list_attributes           (GFileInfo  *info,
Packit ae235b
							  const char *name_space);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
gboolean           g_file_info_get_attribute_data        (GFileInfo  *info,
Packit ae235b
							  const char *attribute,
Packit ae235b
							  GFileAttributeType *type,
Packit ae235b
							  gpointer   *value_pp,
Packit ae235b
							  GFileAttributeStatus *status);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GFileAttributeType g_file_info_get_attribute_type        (GFileInfo  *info,
Packit ae235b
							  const char *attribute);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void               g_file_info_remove_attribute          (GFileInfo  *info,
Packit ae235b
							  const char *attribute);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GFileAttributeStatus g_file_info_get_attribute_status    (GFileInfo  *info,
Packit ae235b
							  const char *attribute);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
gboolean           g_file_info_set_attribute_status      (GFileInfo  *info,
Packit ae235b
							  const char *attribute,
Packit ae235b
							  GFileAttributeStatus status);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
char *             g_file_info_get_attribute_as_string   (GFileInfo  *info,
Packit ae235b
							  const char *attribute);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
const char *       g_file_info_get_attribute_string      (GFileInfo  *info,
Packit ae235b
							  const char *attribute);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
const char *       g_file_info_get_attribute_byte_string (GFileInfo  *info,
Packit ae235b
							  const char *attribute);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
gboolean           g_file_info_get_attribute_boolean     (GFileInfo  *info,
Packit ae235b
							  const char *attribute);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
guint32            g_file_info_get_attribute_uint32      (GFileInfo  *info,
Packit ae235b
							  const char *attribute);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
gint32             g_file_info_get_attribute_int32       (GFileInfo  *info,
Packit ae235b
							  const char *attribute);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
guint64            g_file_info_get_attribute_uint64      (GFileInfo  *info,
Packit ae235b
							  const char *attribute);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
gint64             g_file_info_get_attribute_int64       (GFileInfo  *info,
Packit ae235b
							  const char *attribute);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GObject *          g_file_info_get_attribute_object      (GFileInfo  *info,
Packit ae235b
							  const char *attribute);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
char **            g_file_info_get_attribute_stringv     (GFileInfo  *info,
Packit ae235b
							  const char *attribute);
Packit ae235b
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void               g_file_info_set_attribute             (GFileInfo  *info,
Packit ae235b
							  const char *attribute,
Packit ae235b
							  GFileAttributeType type,
Packit ae235b
							  gpointer    value_p);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void               g_file_info_set_attribute_string      (GFileInfo  *info,
Packit ae235b
							  const char *attribute,
Packit ae235b
							  const char *attr_value);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void               g_file_info_set_attribute_byte_string (GFileInfo  *info,
Packit ae235b
							  const char *attribute,
Packit ae235b
							  const char *attr_value);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void               g_file_info_set_attribute_boolean     (GFileInfo  *info,
Packit ae235b
							  const char *attribute,
Packit ae235b
							  gboolean    attr_value);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void               g_file_info_set_attribute_uint32      (GFileInfo  *info,
Packit ae235b
							  const char *attribute,
Packit ae235b
							  guint32     attr_value);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void               g_file_info_set_attribute_int32       (GFileInfo  *info,
Packit ae235b
							  const char *attribute,
Packit ae235b
							  gint32      attr_value);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void               g_file_info_set_attribute_uint64      (GFileInfo  *info,
Packit ae235b
							  const char *attribute,
Packit ae235b
							  guint64     attr_value);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void               g_file_info_set_attribute_int64       (GFileInfo  *info,
Packit ae235b
							  const char *attribute,
Packit ae235b
							  gint64      attr_value);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void               g_file_info_set_attribute_object      (GFileInfo  *info,
Packit ae235b
							  const char *attribute,
Packit ae235b
							  GObject    *attr_value);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void               g_file_info_set_attribute_stringv     (GFileInfo  *info,
Packit ae235b
							  const char *attribute,
Packit ae235b
							  char      **attr_value);
Packit ae235b
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void               g_file_info_clear_status              (GFileInfo  *info);
Packit ae235b
Packit ae235b
/* Helper getters: */
Packit ae235b
GLIB_AVAILABLE_IN_2_36
Packit ae235b
GDateTime *       g_file_info_get_deletion_date      (GFileInfo         *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GFileType         g_file_info_get_file_type          (GFileInfo         *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
gboolean          g_file_info_get_is_hidden          (GFileInfo         *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
gboolean          g_file_info_get_is_backup          (GFileInfo         *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
gboolean          g_file_info_get_is_symlink         (GFileInfo         *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
const char *      g_file_info_get_name               (GFileInfo         *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
const char *      g_file_info_get_display_name       (GFileInfo         *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
const char *      g_file_info_get_edit_name          (GFileInfo         *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GIcon *           g_file_info_get_icon               (GFileInfo         *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GIcon *           g_file_info_get_symbolic_icon      (GFileInfo         *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
const char *      g_file_info_get_content_type       (GFileInfo         *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
goffset           g_file_info_get_size               (GFileInfo         *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void              g_file_info_get_modification_time  (GFileInfo         *info,
Packit ae235b
						      GTimeVal          *result);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
const char *      g_file_info_get_symlink_target     (GFileInfo         *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
const char *      g_file_info_get_etag               (GFileInfo         *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
gint32            g_file_info_get_sort_order         (GFileInfo         *info);
Packit ae235b
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void              g_file_info_set_attribute_mask     (GFileInfo         *info,
Packit ae235b
						      GFileAttributeMatcher *mask);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void              g_file_info_unset_attribute_mask   (GFileInfo         *info);
Packit ae235b
Packit ae235b
/* Helper setters: */
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void              g_file_info_set_file_type          (GFileInfo         *info,
Packit ae235b
						      GFileType          type);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void              g_file_info_set_is_hidden          (GFileInfo         *info,
Packit ae235b
						      gboolean           is_hidden);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void              g_file_info_set_is_symlink         (GFileInfo         *info,
Packit ae235b
						      gboolean           is_symlink);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void              g_file_info_set_name               (GFileInfo         *info,
Packit ae235b
						      const char        *name);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void              g_file_info_set_display_name       (GFileInfo         *info,
Packit ae235b
						      const char        *display_name);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void              g_file_info_set_edit_name          (GFileInfo         *info,
Packit ae235b
						      const char        *edit_name);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void              g_file_info_set_icon               (GFileInfo         *info,
Packit ae235b
						      GIcon             *icon);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void              g_file_info_set_symbolic_icon      (GFileInfo         *info,
Packit ae235b
						      GIcon             *icon);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void              g_file_info_set_content_type       (GFileInfo         *info,
Packit ae235b
						      const char        *content_type);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void              g_file_info_set_size               (GFileInfo         *info,
Packit ae235b
						      goffset            size);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void              g_file_info_set_modification_time  (GFileInfo         *info,
Packit ae235b
						      GTimeVal          *mtime);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void              g_file_info_set_symlink_target     (GFileInfo         *info,
Packit ae235b
						      const char        *symlink_target);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void              g_file_info_set_sort_order         (GFileInfo         *info,
Packit ae235b
						      gint32             sort_order);
Packit ae235b
Packit ae235b
#define G_TYPE_FILE_ATTRIBUTE_MATCHER (g_file_attribute_matcher_get_type ())
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GType g_file_attribute_matcher_get_type (void) G_GNUC_CONST;
Packit ae235b
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GFileAttributeMatcher *g_file_attribute_matcher_new            (const char            *attributes);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GFileAttributeMatcher *g_file_attribute_matcher_ref            (GFileAttributeMatcher *matcher);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void                   g_file_attribute_matcher_unref          (GFileAttributeMatcher *matcher);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GFileAttributeMatcher *g_file_attribute_matcher_subtract       (GFileAttributeMatcher *matcher,
Packit ae235b
                                                                GFileAttributeMatcher *subtract);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
gboolean               g_file_attribute_matcher_matches        (GFileAttributeMatcher *matcher,
Packit ae235b
								const char            *attribute);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
gboolean               g_file_attribute_matcher_matches_only   (GFileAttributeMatcher *matcher,
Packit ae235b
								const char            *attribute);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
gboolean               g_file_attribute_matcher_enumerate_namespace (GFileAttributeMatcher *matcher,
Packit ae235b
								     const char            *ns);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
const char *           g_file_attribute_matcher_enumerate_next (GFileAttributeMatcher *matcher);
Packit ae235b
GLIB_AVAILABLE_IN_2_32
Packit ae235b
char *                 g_file_attribute_matcher_to_string      (GFileAttributeMatcher *matcher);
Packit ae235b
Packit ae235b
G_END_DECLS
Packit ae235b
Packit ae235b
#endif /* __G_FILE_INFO_H__ */