Top |
#define | CAJA_FILE_DEFINED |
typedef | CajaFile |
typedef | CajaFileInfo |
struct | CajaFileInfoIface |
CajaFileInfo provides methods to get and modify information about file objects in the file manager.
CajaFileInfo * (*caja_file_info_getter) (GFile *location
,gboolean create
);
GList *
caja_file_info_list_copy (GList *files
);
a copy of files
.
Use caja_file_info_list_free to free the list and unref its contents.
[element-type CajaFileInfo][transfer full]
GFile *
caja_file_info_get_parent_location (CajaFileInfo *file
);
CajaFileInfo *
caja_file_info_get_parent_info (CajaFileInfo *file
);
gboolean caja_file_info_is_mime_type (CajaFileInfo *file
,const char *mime_type
);
void caja_file_info_add_emblem (CajaFileInfo *file
,const char *emblem_name
);
char * caja_file_info_get_string_attribute (CajaFileInfo *file
,const char *attribute_name
);
void caja_file_info_add_string_attribute (CajaFileInfo *file
,const char *attribute_name
,const char *value
);
void
caja_file_info_invalidate_extension_info
(CajaFileInfo *file
);
struct CajaFileInfoIface { GTypeInterface g_iface; gboolean (*is_gone) (CajaFileInfo *file); char *(*get_name) (CajaFileInfo *file); char *(*get_uri) (CajaFileInfo *file); char *(*get_parent_uri) (CajaFileInfo *file); char *(*get_uri_scheme) (CajaFileInfo *file); char *(*get_mime_type) (CajaFileInfo *file); gboolean (*is_mime_type) (CajaFileInfo *file, const char *mime_Type); gboolean (*is_directory) (CajaFileInfo *file); void (*add_emblem) (CajaFileInfo *file, const char *emblem_name); char *(*get_string_attribute) (CajaFileInfo *file, const char *attribute_name); void (*add_string_attribute) (CajaFileInfo *file, const char *attribute_name, const char *value); void (*invalidate_extension_info) (CajaFileInfo *file); char *(*get_activation_uri) (CajaFileInfo *file); GFileType (*get_file_type) (CajaFileInfo *file); GFile *(*get_location) (CajaFileInfo *file); GFile *(*get_parent_location) (CajaFileInfo *file); CajaFileInfo *(*get_parent_info) (CajaFileInfo *file); GMount *(*get_mount) (CajaFileInfo *file); gboolean (*can_write) (CajaFileInfo *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 CajaFileInfo.
See |
||
Returns the file mount as a GMount.
See |
||
Returns whether the file is writable.
See |