#include <goffice/goffice-config.h>
#include <goffice/goffice.h>
#include <gsf/gsf-input-memory.h>
#include <gsf/gsf-input-stdio.h>
#include <gsf/gsf-output-stdio.h>
#include <glib/gstdio.h>
#include <glib/gi18n-lib.h>
#include <gsf/gsf-input-gio.h>
#include <gsf/gsf-output-gio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
Enumerations | |
enum | GOFileDateType { GO_FILE_DATE_TYPE_ACCESSED = 0, GO_FILE_DATE_TYPE_MODIFIED, GO_FILE_DATE_TYPE_CHANGED, GO_FILE_DATE_TYPE_ACCESSED = 0, GO_FILE_DATE_TYPE_MODIFIED, GO_FILE_DATE_TYPE_CHANGED } |
Functions | |
char * | go_filename_from_uri (char const *uri) |
char * | go_filename_to_uri (char const *filename) |
char * | go_filename_simplify (char const *filename, GODotDot dotdot, gboolean make_absolute) |
static char * | simplify_path (char const *uri) |
static char * | simplify_host_path (char const *uri, size_t hstart) |
char * | go_url_simplify (char const *uri) |
char * | go_url_resolve_relative (char const *ref_uri, char const *rel_uri) |
static char * | make_rel (char const *uri, char const *ref_uri, char const *uri_host, char const *slash) |
char * | go_url_make_relative (char const *uri, char const *ref_uri) |
static gboolean | is_fd_uri (char const *uri, int *fd) |
char * | go_shell_arg_to_uri (char const *arg) |
char * | go_basename_from_uri (char const *uri) |
go_basename_from_uri: : The uri | |
char * | go_dirname_from_uri (char const *uri, gboolean brief) |
go_dirname_from_uri: : target | |
static GsfInput * | open_plain_file (char const *path, GError **err) |
GsfInput * | go_file_open (char const *uri, GError **err) |
go_file_open : : target uri : GError | |
GsfOutput * | go_file_create (char const *uri, GError **err) |
GSList * | go_file_split_urls (char const *data) |
GOFilePermissions * | go_get_file_permissions (char const *uri) |
void | go_set_file_permissions (char const *uri, GOFilePermissions *file_permissions) |
static time_t | go_file_get_date (char const *uri, GOFileDateType type) |
time_t | go_file_get_date_accessed (char const *uri) |
time_t | go_file_get_date_modified (char const *uri) |
time_t | go_file_get_date_changed (char const *uri) |
gchar * | go_url_decode (gchar const *text) |
go_url_decode: : constant buffer to decode. | |
gchar * | go_url_encode (gchar const *text, int type) |
go_url_encode: : The constant text to be encoded : 0 : mailto, 1: file or http | |
GError * | go_url_show (gchar const *url) |
gchar * | go_get_mime_type (gchar const *uri) |
go_get_mime_type_for_data: : the uri. | |
gchar * | go_get_mime_type_for_data (gconstpointer data, int data_size) |
go_get_mime_type_for_data: : the data. | |
gchar * | go_mime_type_get_description (gchar const *mime_type) |
go_mime_type_get_description: : the mime type to describe. | |
gchar const ** | go_shell_argv_to_glib_encoding (G_GNUC_UNUSED gint argc, gchar const **argv) |
void | go_shell_argv_to_glib_encoding_free (void) |
gint | go_file_access (char const *uri, gint mode) |
enum GOFileDateType |
char* go_basename_from_uri | ( | char const * | uri | ) |
go_basename_from_uri: : The uri
Decode the final path component. Returns as UTF-8 encoded suitable for display.
Returns: a string that the caller is responsible for freeing.
Referenced by go_gtk_url_is_writeable().
char* go_dirname_from_uri | ( | char const * | uri, | |
gboolean | brief | |||
) |
go_dirname_from_uri: : target
: if TRUE, hide "file://" if present.
Decode the all but the final path component. Returns as UTF-8 encoded suitable for display.
Returns: dirname which the caller is responsible for freeing.
Referenced by go_gtk_url_is_writeable().
gint go_file_access | ( | char const * | uri, | |
gint | mode | |||
) |
Referenced by go_gtk_url_is_writeable().
GsfOutput* go_file_create | ( | char const * | uri, | |
GError ** | err | |||
) |
static time_t go_file_get_date | ( | char const * | uri, | |
GOFileDateType | type | |||
) | [static] |
References GO_FILE_DATE_TYPE_ACCESSED, GO_FILE_DATE_TYPE_CHANGED, and GO_FILE_DATE_TYPE_MODIFIED.
Referenced by go_file_get_date_accessed(), go_file_get_date_changed(), and go_file_get_date_modified().
time_t go_file_get_date_accessed | ( | char const * | uri | ) |
time_t go_file_get_date_changed | ( | char const * | uri | ) |
time_t go_file_get_date_modified | ( | char const * | uri | ) |
GsfInput* go_file_open | ( | char const * | uri, | |
GError ** | err | |||
) |
go_file_open : : target uri : GError
Try all available methods to open a file or return an error Returns: non-NULL on success
GSList* go_file_split_urls | ( | char const * | data | ) |
char* go_filename_from_uri | ( | char const * | uri | ) |
Referenced by go_basename_from_uri(), go_dirname_from_uri(), go_file_access(), go_file_create(), go_file_get_date(), go_file_get_group_name(), go_file_get_owner_name(), go_file_open(), go_get_file_permissions(), go_gtk_url_is_writeable(), go_set_file_permissions(), go_shell_arg_to_uri(), and go_url_simplify().
char* go_filename_simplify | ( | char const * | filename, | |
GODotDot | dotdot, | |||
gboolean | make_absolute | |||
) |
Referenced by go_filename_to_uri().
char* go_filename_to_uri | ( | char const * | filename | ) |
Referenced by go_shell_arg_to_uri(), and go_url_simplify().
GOFilePermissions* go_get_file_permissions | ( | char const * | uri | ) |
gchar* go_get_mime_type | ( | gchar const * | uri | ) |
go_get_mime_type_for_data: : the uri.
returns: the mime type for the file as a newly allocated string. Needs to be freed with g_free().
References gchar.
Referenced by AbiGOComponent_FileInsert().
gchar* go_get_mime_type_for_data | ( | gconstpointer | data, | |
int | data_size | |||
) |
go_get_mime_type_for_data: : the data.
: the data size
returns: the mime type for the data as a newly allocated string. Needs to be freed with g_free().
References gchar.
Referenced by IE_Imp_Component::_parseStream(), and IE_Imp_Component_Sniffer::recognizeContents().
gchar* go_mime_type_get_description | ( | gchar const * | mime_type | ) |
go_mime_type_get_description: : the mime type to describe.
returns: the description for the mime type as a newly allocated string. Needs to be freed with g_free(). If the description is not found, the mime type itself will be returned.
Referenced by AbiGOComponent_Create().
void go_set_file_permissions | ( | char const * | uri, | |
GOFilePermissions * | file_permissions | |||
) |
char* go_shell_arg_to_uri | ( | char const * | arg | ) |
gchar const** go_shell_argv_to_glib_encoding | ( | G_GNUC_UNUSED gint | argc, | |
gchar const ** | argv | |||
) |
References gchar.
void go_shell_argv_to_glib_encoding_free | ( | void | ) |
gchar* go_url_decode | ( | gchar const * | text | ) |
go_url_decode: : constant buffer to decode.
Decode the result of go_url_encode.
Returns: a decoded string which the caller is responsible for freeing.
gchar* go_url_encode | ( | gchar const * | text, | |
int | type | |||
) |
go_url_encode: : The constant text to be encoded : 0 : mailto, 1: file or http
url-encode a string according to RFC 2368.
Returns: an encoded string which the caller is responsible for freeing.
char* go_url_make_relative | ( | char const * | uri, | |
char const * | ref_uri | |||
) |
char* go_url_resolve_relative | ( | char const * | ref_uri, | |
char const * | rel_uri | |||
) |
GError* go_url_show | ( | gchar const * | url | ) |
char* go_url_simplify | ( | char const * | uri | ) |
Referenced by go_shell_arg_to_uri(), and go_url_resolve_relative().
static gboolean is_fd_uri | ( | char const * | uri, | |
int * | fd | |||
) | [static] |
Referenced by go_file_create(), go_file_open(), and go_shell_arg_to_uri().
static char* make_rel | ( | char const * | uri, | |
char const * | ref_uri, | |||
char const * | uri_host, | |||
char const * | slash | |||
) | [static] |
Referenced by go_url_make_relative().
static GsfInput* open_plain_file | ( | char const * | path, | |
GError ** | err | |||
) | [static] |
Referenced by go_file_open().
static char* simplify_host_path | ( | char const * | uri, | |
size_t | hstart | |||
) | [static] |
References simplify_path().
Referenced by go_url_simplify().
static char* simplify_path | ( | char const * | uri | ) | [static] |
Referenced by simplify_host_path().