Classes | Typedefs | Enumerations | Functions

ut_go_file.h File Reference

#include "ut_types.h"
#include "ut_compiler.h"
#include <glib.h>
#include <gsf/gsf.h>
#include <time.h>

Go to the source code of this file.

Classes

struct  _UT_GOFilePermissions

Typedefs

typedef
typedefABI_W_NO_CONST_QUAL
ABI_W_POP G_BEGIN_DECLS struct
_UT_GOFilePermissions 
UT_GOFilePermissions

Enumerations

enum  UT_GODotDot { UT_GO_DOTDOT_SYNTACTIC, UT_GO_DOTDOT_TEST, UT_GO_DOTDOT_LEAVE }

Functions

ABI_EXPORT gboolean UT_go_path_is_uri (const char *path)
ABI_EXPORT gboolean UT_go_path_is_path (const char *path)
ABI_EXPORT char * UT_go_filename_simplify (const char *filename, UT_GODotDot dotdot, gboolean make_absolute)
ABI_EXPORT char * UT_go_url_simplify (const char *uri)
ABI_EXPORT char * UT_go_filename_from_uri (const char *uri)
ABI_EXPORT char * UT_go_filename_to_uri (const char *filename)
ABI_EXPORT char * UT_go_url_resolve_relative (const char *ref_uri, const char *rel_uri)
ABI_EXPORT char * UT_go_url_make_relative (const char *uri, const char *ref_uri)
ABI_EXPORT char * UT_go_shell_arg_to_uri (const char *arg)
ABI_EXPORT char * UT_go_basename_from_uri (const char *uri)
 UT_go_basename_from_uri: :
ABI_EXPORT char * UT_go_dirname_from_uri (const char *uri, gboolean brief)
 UT_go_dirname_from_uri: :
ABI_EXPORT gboolean UT_go_directory_create (char const *uri, GError **err)
ABI_EXPORT GsfInput * UT_go_file_open (char const *uri, GError **err)
 UT_go_file_open : : : GError.
ABI_EXPORT GsfOutput * UT_go_file_create (char const *uri, GError **err)
ABI_EXPORT gboolean UT_go_file_remove (char const *uri, GError **err)
ABI_EXPORT gboolean UT_go_file_exists (char const *uri)
ABI_EXPORT UT_GOFilePermissionsUT_go_get_file_permissions (char const *uri)
ABI_EXPORT void UT_go_set_file_permissions (char const *uri, UT_GOFilePermissions *file_permissions)
ABI_EXPORT time_t UT_go_file_get_date_accessed (char const *uri)
ABI_EXPORT time_t UT_go_file_get_date_modified (char const *uri)
ABI_EXPORT time_t UT_go_file_get_date_changed (char const *uri)
ABI_EXPORT GError * UT_go_url_show (gchar const *url)
ABI_EXPORT gchar * UT_go_get_mime_type (gchar const *uri)
ABI_EXPORT gint UT_go_utf8_collate_casefold (const char *a, const char *b)

Typedef Documentation

typedef typedefABI_W_NO_CONST_QUAL ABI_W_POP G_BEGIN_DECLS struct _UT_GOFilePermissions UT_GOFilePermissions

Enumeration Type Documentation

Enumerator:
UT_GO_DOTDOT_SYNTACTIC 
UT_GO_DOTDOT_TEST 
UT_GO_DOTDOT_LEAVE 

Function Documentation

ABI_EXPORT char* UT_go_basename_from_uri ( const char *  uri  ) 
ABI_EXPORT gboolean UT_go_directory_create ( char const *  uri,
GError **  err 
)
ABI_EXPORT char* UT_go_dirname_from_uri ( const char *  uri,
gboolean  brief 
)

UT_go_dirname_from_uri: :

: if TRUE, hide "file://" if present.

Decode the all but the final path component. Returns as UTF-8 encoded suitable for display.

References UT_go_filename_from_uri().

Referenced by s_LaTeX_Listener::_handleImage(), and XAP_UnixDialog_FileOpenSaveAs::runModal().

ABI_EXPORT GsfOutput* UT_go_file_create ( char const *  uri,
GError **  err 
)
ABI_EXPORT gboolean UT_go_file_exists ( char const *  uri  ) 
ABI_EXPORT time_t UT_go_file_get_date_accessed ( char const *  uri  ) 
ABI_EXPORT time_t UT_go_file_get_date_changed ( char const *  uri  ) 
ABI_EXPORT time_t UT_go_file_get_date_modified ( char const *  uri  ) 
ABI_EXPORT GsfInput* UT_go_file_open ( char const *  uri,
GError **  err 
)
ABI_EXPORT gboolean UT_go_file_remove ( char const *  uri,
GError **  err 
)
ABI_EXPORT char* UT_go_filename_from_uri ( const char *  uri  ) 
ABI_EXPORT char* UT_go_filename_simplify ( const char *  filename,
UT_GODotDot  dotdot,
gboolean  make_absolute 
)
ABI_EXPORT char* UT_go_filename_to_uri ( const char *  filename  ) 
ABI_EXPORT UT_GOFilePermissions* UT_go_get_file_permissions ( char const *  uri  ) 
ABI_EXPORT gchar* UT_go_get_mime_type ( gchar const *  uri  ) 
ABI_EXPORT gboolean UT_go_path_is_path ( const char *  path  ) 
ABI_EXPORT gboolean UT_go_path_is_uri ( const char *  path  ) 
ABI_EXPORT void UT_go_set_file_permissions ( char const *  uri,
UT_GOFilePermissions file_permissions 
)
ABI_EXPORT char* UT_go_shell_arg_to_uri ( const char *  arg  ) 
ABI_EXPORT char* UT_go_url_make_relative ( const char *  uri,
const char *  ref_uri 
)

References make_rel().

ABI_EXPORT char* UT_go_url_resolve_relative ( const char *  ref_uri,
const char *  rel_uri 
)
ABI_EXPORT GError* UT_go_url_show ( gchar const *  url  ) 
ABI_EXPORT char* UT_go_url_simplify ( const char *  uri  ) 
ABI_EXPORT gint UT_go_utf8_collate_casefold ( const char *  a,
const char *  b 
)