Interface
NautilusFileInfo
Description [src]
interface Nautilus.FileInfo : GObject.Object
File interface for nautilus extensions.
NautilusFileInfo provides methods to get and modify information
about file objects in the file manager.
Prerequisite
In order to implement FileInfo, your type must inherit fromGObject.
Functions
nautilus_file_info_create
Get an existing NautilusFileInfo (if it exists) or create a new one is it
does not exist.
nautilus_file_info_create_for_uri
Get an existing NautilusFileInfo (if it exists) or create a new one is it
does not exist.
nautilus_file_info_lookup
Get an existing NautilusFileInfo or NULL if it does not exist in the
application cache.
nautilus_file_info_lookup_for_uri
Get an existing NautilusFileInfo or NULL if it does not exist in the
application cache.
Instance methods
nautilus_file_info_add_string_attribute
Set’s the attributes value or replacing the existing value (if one exists).
nautilus_file_info_is_mime_type
Gets whether the mime_type of the NautilusFileInfo matches the given type.
Interface structure
struct NautilusFileInfoInterface {
GTypeInterface g_iface;
gboolean (* is_gone) (
NautilusFileInfo* file_info
);
char* (* get_name) (
NautilusFileInfo* file_info
);
char* (* get_uri) (
NautilusFileInfo* file_info
);
char* (* get_parent_uri) (
NautilusFileInfo* file_info
);
char* (* get_uri_scheme) (
NautilusFileInfo* file_info
);
char* (* get_mime_type) (
NautilusFileInfo* file_info
);
gboolean (* is_mime_type) (
NautilusFileInfo* file_info,
const char* mime_type
);
gboolean (* is_directory) (
NautilusFileInfo* file_info
);
void (* add_emblem) (
NautilusFileInfo* file_info,
const char* emblem_name
);
char* (* get_string_attribute) (
NautilusFileInfo* file_info,
const char* attribute_name
);
void (* add_string_attribute) (
NautilusFileInfo* file_info,
const char* attribute_name,
const char* value
);
void (* invalidate_extension_info) (
NautilusFileInfo* file_info
);
char* (* get_activation_uri) (
NautilusFileInfo* file_info
);
GFileType (* get_file_type) (
NautilusFileInfo* file_info
);
GFile* (* get_location) (
NautilusFileInfo* file_info
);
GFile* (* get_parent_location) (
NautilusFileInfo* file_info
);
NautilusFileInfo* (* get_parent_info) (
NautilusFileInfo* file_info
);
GMount* (* get_mount) (
NautilusFileInfo* file_info
);
gboolean (* can_write) (
NautilusFileInfo* file_info
);
}
No description available.
Interface members
g_iface |
|
No description available. |
|
is_gone |
|
No description available. |
|
get_name |
|
No description available. |
|
get_uri |
|
No description available. |
|
get_parent_uri |
|
No description available. |
|
get_uri_scheme |
|
No description available. |
|
get_mime_type |
|
No description available. |
|
is_mime_type |
|
No description available. |
|
is_directory |
|
No description available. |
|
add_emblem |
|
No description available. |
|
get_string_attribute |
|
No description available. |
|
add_string_attribute |
|
No description available. |
|
invalidate_extension_info |
|
No description available. |
|
get_activation_uri |
|
No description available. |
|
get_file_type |
|
No description available. |
|
get_location |
|
No description available. |
|
get_parent_location |
|
No description available. |
|
get_parent_info |
|
No description available. |
|
get_mount |
|
No description available. |
|
can_write |
|
No description available. |
Virtual methods
Nautilus.FileInfo.add_string_attribute
Set’s the attributes value or replacing the existing value (if one exists).
Nautilus.FileInfo.is_mime_type
Gets whether the mime_type of the NautilusFileInfo matches the given type.