|
Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
|
#include <glib.h>#include <gio/gio.h>
Include dependency graph for ev-file-helpers.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Enumerations | |
| enum | EvCompressionType { EV_COMPRESSION_NONE, EV_COMPRESSION_BZIP2, EV_COMPRESSION_GZIP, EV_COMPRESSION_LZMA } |
Functions | |
| void | _ev_file_helpers_init (void) |
| void | _ev_file_helpers_shutdown (void) |
| int | ev_mkstemp (const char *tmpl, char **file_name, GError **error) |
| GFile * | ev_mkstemp_file (const char *tmpl, GError **error) |
| gchar * | ev_mkdtemp (const char *tmpl, GError **error) |
| void | ev_tmp_filename_unlink (const gchar *filename) |
| void | ev_tmp_file_unlink (GFile *file) |
| void | ev_tmp_uri_unlink (const gchar *uri) |
| gboolean | ev_file_is_temp (GFile *file) |
| gboolean | ev_xfer_uri_simple (const char *from, const char *to, GError **error) |
| gboolean | ev_file_copy_metadata (const char *from, const char *to, GError **error) |
| gchar * | ev_file_get_mime_type (const gchar *uri, gboolean fast, GError **error) |
| gchar * | ev_file_uncompress (const gchar *uri, EvCompressionType type, GError **error) |
| gchar * | ev_file_compress (const gchar *uri, EvCompressionType type, GError **error) |
| enum EvCompressionType |
| Enumerator | |
|---|---|
| EV_COMPRESSION_NONE | |
| EV_COMPRESSION_BZIP2 | |
| EV_COMPRESSION_GZIP | |
| EV_COMPRESSION_LZMA | |
Definition at line 32 of file ev-file-helpers.h.
| void _ev_file_helpers_init | ( | void | ) |
| void _ev_file_helpers_shutdown | ( | void | ) |
| gchar* ev_file_compress | ( | const gchar * | uri, |
| EvCompressionType | type, | ||
| GError ** | error | ||
| ) |
ev_file_compress: : a file URI : the compression type : a #GError location to store an error, or NULL
Compresses the file at .
If is EV_COMPRESSION_NONE, it does nothing and returns NULL.
Otherwise, it returns the filename of a temporary file containing the compressed data from the file at .
On error it returns NULL and fills in .
It is the caller's responsibility to unlink the temp file after use.
Returns: a newly allocated string URI, or NULL on error
Definition at line 735 of file ev-file-helpers.c.
Here is the caller graph for this function:| gboolean ev_file_copy_metadata | ( | const char * | from, |
| const char * | to, | ||
| GError ** | error | ||
| ) |
ev_file_copy_metadata: : the source URI : the target URI : a #GError location to store an error, or NULL
Performs a g_file_copy_attributes() with G_FILE_COPY_ALL_METADATA from to .
Returns: TRUE if the attributes were copied successfully, FALSE otherwise.
Since: 3.4
Definition at line 444 of file ev-file-helpers.c.
Here is the caller graph for this function:| gchar* ev_file_get_mime_type | ( | const gchar * | uri, |
| gboolean | fast, | ||
| GError ** | error | ||
| ) |
ev_file_get_mime_type: : the URI : whether to use fast MIME type detection : a #GError location to store an error, or NULL
Returns: a newly allocated string with the MIME type of the file at , or NULL on error or if the MIME type could not be determined
Definition at line 573 of file ev-file-helpers.c.
Here is the caller graph for this function:| gboolean ev_file_is_temp | ( | GFile * | file) |
| gchar* ev_file_uncompress | ( | const gchar * | uri, |
| EvCompressionType | type, | ||
| GError ** | error | ||
| ) |
ev_file_uncompress: : a file URI : the compression type : a #GError location to store an error, or NULL
Uncompresses the file at .
If is EV_COMPRESSION_NONE, it does nothing and returns NULL.
Otherwise, it returns the filename of a temporary file containing the decompressed data from the file at . On error it returns NULL and fills in .
It is the caller's responsibility to unlink the temp file after use.
Returns: a newly allocated string URI, or NULL on error
Definition at line 706 of file ev-file-helpers.c.
Here is the caller graph for this function:| gchar* ev_mkdtemp | ( | const char * | tmpl, |
| GError ** | error | ||
| ) |
ev_mkdtemp: : a template string; must end in 'XXXXXX' : a location to store a #GError
Creates a temp directory in the evince temp directory.
Returns: a newly allocated string with the temp directory name, or NULL on error with filled in
Definition at line 295 of file ev-file-helpers.c.
| int ev_mkstemp | ( | const char * | tmpl, |
| char ** | file_name, | ||
| GError ** | error | ||
| ) |
ev_mkstemp: : a template string; must contain 'XXXXXX', but not necessarily as a suffix : a location to store the filename of the temp file : a location to store a #GError
Creates a temp file in the evince temp directory.
Returns: a file descriptor to the newly created temp file name, or %-1 on error with filled in
Definition at line 129 of file ev-file-helpers.c.
Here is the caller graph for this function:| GFile* ev_mkstemp_file | ( | const char * | tmpl, |
| GError ** | error | ||
| ) |
ev_mkstemp_file: : a template string; must contain 'XXXXXX', but not necessarily as a suffix : a location to store a #GError
Creates a temp #GFile in the evince temp directory. See ev_mkstemp() for more information.
Returns: (transfer full): a newly allocated #GFile for the newly created temp file name, or NULL on error with filled in
Definition at line 179 of file ev-file-helpers.c.
Here is the caller graph for this function:| void ev_tmp_file_unlink | ( | GFile * | file) |
| void ev_tmp_filename_unlink | ( | const gchar * | filename) |
| void ev_tmp_uri_unlink | ( | const gchar * | uri) |
| gboolean ev_xfer_uri_simple | ( | const char * | from, |
| const char * | to, | ||
| GError ** | error | ||
| ) |
ev_xfer_uri_simple: : the source URI : the target URI : a #GError location to store an error, or NULL
Performs a g_file_copy() from to .
Returns: TRUE on success, or FALSE on error with filled in
Definition at line 403 of file ev-file-helpers.c.
Here is the caller graph for this function: