| Top |
| #define | BAUL_FILE_DEFINED |
| typedef | BaulFile |
| typedef | BaulFileInfo |
| struct | BaulFileInfoIface |
BaulFileInfo provides methods to get and modify information about file objects in the file manager.
BaulFileInfo * (*baul_file_info_getter) (GFile *location,gboolean create);
GList *
baul_file_info_list_copy (GList *files);
a copy of files
.
Use baul_file_info_list_free to free the list and unref its contents.
[element-type BaulFileInfo][transfer full]
GFile *
baul_file_info_get_parent_location (BaulFileInfo *file);
BaulFileInfo *
baul_file_info_get_parent_info (BaulFileInfo *file);
gboolean baul_file_info_is_mime_type (BaulFileInfo *file,const char *mime_type);
void baul_file_info_add_emblem (BaulFileInfo *file,const char *emblem_name);
char * baul_file_info_get_string_attribute (BaulFileInfo *file,const char *attribute_name);
void baul_file_info_add_string_attribute (BaulFileInfo *file,const char *attribute_name,const char *value);
void
baul_file_info_invalidate_extension_info
(BaulFileInfo *file);
struct BaulFileInfoIface {
GTypeInterface g_iface;
gboolean (*is_gone) (BaulFileInfo *file);
char *(*get_name) (BaulFileInfo *file);
char *(*get_uri) (BaulFileInfo *file);
char *(*get_parent_uri) (BaulFileInfo *file);
char *(*get_uri_scheme) (BaulFileInfo *file);
char *(*get_mime_type) (BaulFileInfo *file);
gboolean (*is_mime_type) (BaulFileInfo *file,
const char *mime_Type);
gboolean (*is_directory) (BaulFileInfo *file);
void (*add_emblem) (BaulFileInfo *file,
const char *emblem_name);
char *(*get_string_attribute) (BaulFileInfo *file,
const char *attribute_name);
void (*add_string_attribute) (BaulFileInfo *file,
const char *attribute_name,
const char *value);
void (*invalidate_extension_info) (BaulFileInfo *file);
char *(*get_activation_uri) (BaulFileInfo *file);
GFileType (*get_file_type) (BaulFileInfo *file);
GFile *(*get_location) (BaulFileInfo *file);
GFile *(*get_parent_location) (BaulFileInfo *file);
BaulFileInfo *(*get_parent_info) (BaulFileInfo *file);
GMount *(*get_mount) (BaulFileInfo *file);
gboolean (*can_write) (BaulFileInfo *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 BaulFileInfo.
See |
||
Returns the file mount as a GMount.
See |
||
Returns whether the file is writable.
See |