summaryrefslogtreecommitdiff
path: root/gio/gfileinfo.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-03-08 00:36:00 -0500
committerMatthias Clasen <mclasen@redhat.com>2010-03-08 00:36:00 -0500
commit826abbefcee6c7f64ed8c21d9a2671f9cd0be089 (patch)
tree56aba593121bb693a77bb9cb43ec6b0541a8a8f8 /gio/gfileinfo.h
parent96d105906ef267b687ee6fbe085a791f3b17afc6 (diff)
downloadglib-826abbefcee6c7f64ed8c21d9a2671f9cd0be089.tar.gz
Add defines for trash::orig-path and trash::deletion-date
See bug 612107.
Diffstat (limited to 'gio/gfileinfo.h')
-rw-r--r--gio/gfileinfo.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/gio/gfileinfo.h b/gio/gfileinfo.h
index 0064502fa..2b5110f1e 100644
--- a/gio/gfileinfo.h
+++ b/gio/gfileinfo.h
@@ -783,6 +783,30 @@ typedef struct _GFileInfoClass GFileInfoClass;
**/
#define G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT "trash::item-count" /* uint32 */
+/**
+ * G_FILE_ATTRIBUTE_TRASH_ORIG_PATH:
+ *
+ * A key in the "trash" namespace. When requested against
+ * items in "trash:///", will return the original path to the file before it
+ * was trashed. Corresponding #GFileAttributeType is
+ * %G_FILE_ATTRIBUTE_TYPE_STRING.
+ *
+ * Since: 2.24.
+ **/
+#define G_FILE_ATTRIBUTE_TRASH_ORIG_PATH "trash::orig-path" /* string */
+
+/**
+ * G_FILE_ATTRIBUTE_TRASH_DELETION_DATE:
+ *
+ * A key in the "trash" namespace. When requested against
+ * items in "trash:///", will return the date and time when the file
+ * was trashed. The format of the returned string is YYYY-MM-DDThh:mm:ss.
+ * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
+ *
+ * Since: 2.24.
+ **/
+#define G_FILE_ATTRIBUTE_TRASH_DELETION_DATE "trash::deletion-date" /* string */
+
GType g_file_info_get_type (void) G_GNUC_CONST;
GFileInfo * g_file_info_new (void);