Top | ![]() |
![]() |
![]() |
![]() |
int | ev_mkstemp () |
GFile * | ev_mkstemp_file () |
gchar * | ev_mkdtemp () |
void | ev_tmp_filename_unlink () |
void | ev_tmp_file_unlink () |
void | ev_tmp_uri_unlink () |
gboolean | ev_xfer_uri_simple () |
gboolean | ev_file_copy_metadata () |
gchar * | ev_file_get_mime_type () |
gchar * | ev_file_uncompress () |
gchar * | ev_file_compress () |
gboolean | ev_file_is_temp () |
const gchar * | ev_get_locale_dir () |
int ev_mkstemp (const char *tmpl
,char **file_name
,GError **error
);
Creates a temp file in the evince temp directory.
tmpl |
a template string; must contain 'XXXXXX', but not necessarily as a suffix |
|
file_name |
a location to store the filename of the temp file |
|
error |
a location to store a GError |
GFile * ev_mkstemp_file (const char *tmpl
,GError **error
);
Creates a temp GFile in the evince temp directory. See ev_mkstemp()
for more information.
tmpl |
a template string; must contain 'XXXXXX', but not necessarily as a suffix |
|
error |
a location to store a GError |
gchar * ev_mkdtemp (const char *tmpl
,GError **error
);
Creates a temp directory in the evince temp directory.
a newly allocated string with the temp directory name, or NULL
on error with error
filled in
gboolean ev_xfer_uri_simple (const char *from
,const char *to
,GError **error
);
Performs a g_file_copy()
from from
to to
.
gboolean ev_file_copy_metadata (const char *from
,const char *to
,GError **error
);
Performs a g_file_copy_attributes()
with G_FILE_COPY_ALL_METADATA
from from
to to
.
Since: 3.4
gchar * ev_file_get_mime_type (const gchar *uri
,gboolean fast
,GError **error
);
a newly allocated string with the MIME type of the file at
uri
, or NULL
on error or if the MIME type could not be determined
gchar * ev_file_uncompress (const gchar *uri
,EvCompressionType type
,GError **error
);
Uncompresses the file at uri
.
If type
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 uri
.
On error it returns NULL
and fills in error
.
It is the caller's responsibility to unlink the temp file after use.
gchar * ev_file_compress (const gchar *uri
,EvCompressionType type
,GError **error
);
Compresses the file at uri
.
If type
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 uri
.
On error it returns NULL
and fills in error
.
It is the caller's responsibility to unlink the temp file after use.