| Top |
| #define | PEONY_FILE_DEFINED |
| typedef | PeonyFile |
| typedef | PeonyFileInfo |
| struct | PeonyFileInfoIface |
PeonyFileInfo provides methods to get and modify information about file objects in the file manager.
PeonyFileInfo * (*peony_file_info_getter) (GFile *location,gboolean create);
GList *
peony_file_info_list_copy (GList *files);
a copy of files
.
Use peony_file_info_list_free to free the list and unref its contents.
[element-type PeonyFileInfo][transfer full]
char *
peony_file_info_get_activation_uri (PeonyFileInfo *file);
GFile *
peony_file_info_get_parent_location (PeonyFileInfo *file);
PeonyFileInfo *
peony_file_info_get_parent_info (PeonyFileInfo *file);
gboolean peony_file_info_is_mime_type (PeonyFileInfo *file,const char *mime_type);
void peony_file_info_add_emblem (PeonyFileInfo *file,const char *emblem_name);
char * peony_file_info_get_string_attribute (PeonyFileInfo *file,const char *attribute_name);
void peony_file_info_add_string_attribute (PeonyFileInfo *file,const char *attribute_name,const char *value);
void
peony_file_info_invalidate_extension_info
(PeonyFileInfo *file);
struct PeonyFileInfoIface {
GTypeInterface g_iface;
gboolean (*is_gone) (PeonyFileInfo *file);
char *(*get_name) (PeonyFileInfo *file);
char *(*get_uri) (PeonyFileInfo *file);
char *(*get_parent_uri) (PeonyFileInfo *file);
char *(*get_uri_scheme) (PeonyFileInfo *file);
char *(*get_mime_type) (PeonyFileInfo *file);
gboolean (*is_mime_type) (PeonyFileInfo *file,
const char *mime_Type);
gboolean (*is_directory) (PeonyFileInfo *file);
void (*add_emblem) (PeonyFileInfo *file,
const char *emblem_name);
char *(*get_string_attribute) (PeonyFileInfo *file,
const char *attribute_name);
void (*add_string_attribute) (PeonyFileInfo *file,
const char *attribute_name,
const char *value);
void (*invalidate_extension_info) (PeonyFileInfo *file);
char *(*get_activation_uri) (PeonyFileInfo *file);
GFileType (*get_file_type) (PeonyFileInfo *file);
GFile *(*get_location) (PeonyFileInfo *file);
GFile *(*get_parent_location) (PeonyFileInfo *file);
PeonyFileInfo *(*get_parent_info) (PeonyFileInfo *file);
GMount *(*get_mount) (PeonyFileInfo *file);
gboolean (*can_write) (PeonyFileInfo *file);
};
Interface for extensions to get and modify information about file objects.
Returns whether the file info is gone.
See |
||
Returns the file name as a string.
See |
||
Returns the file URI as a string.
See |
||
Returns the file parent URI as a string.
See |
||
Returns the file URI scheme as a string.
See |
||
Returns the file mime type as a string.
See |
||
Returns whether the file is the given mime type.
See |
||
Returns whether the file is a directory.
See |
||
Adds an emblem to this file.
See |
||
Returns the specified file attribute as a string.
See |
||
Sets the specified string file attribute value.
See |
||
Invalidates information of the file provided by extensions.
See |
||
Returns the file activation URI as a string.
See |
||
Returns the file type.
See |
||
Returns the file location as a GFile.
See |
||
Returns the file parent location as a GFile.
See |
||
Returns the file parent PeonyFileInfo.
See |
||
Returns the file mount as a GMount.
See |
||
Returns whether the file is writable.
See |