utils.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 #ifndef _LIBGNOMEVFSMM_UTILS_H
00003 #define _LIBGNOMEVFSMM_UTILS_H
00004 /* $Id: utils.h,v 1.2 2005/04/07 11:04:00 murrayc Exp $ */
00005 
00006 /* utils.h
00007  *
00008  * Copyright 2004      gnome-vfsmm development team.
00009  *
00010  * This library is free software; you can redistribute it and/or
00011  * modify it under the terms of the GNU Library General Public
00012  * License as published by the Free Software Foundation; either
00013  * version 2 of the License, or (at your option) any later version.
00014  *
00015  * This library is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * Library General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU Library General Public
00021  * License along with this library; if not, write to the Free
00022  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00023  */
00024 
00025 #include <libgnomevfsmm/types.h>
00026 #include <libgnomevfsmm/exception.h>
00027 #include <glibmm/ustring.h>
00028 
00029 
00030 namespace Gnome
00031 {
00032 
00033 namespace Vfs
00034 {
00035 
00043 Glib::ustring format_file_size_for_display(FileSize  size);
00044 
00050 Glib::ustring escape_string(const Glib::ustring& unescaped_string);
00051 
00058 Glib::ustring escape_path_string(const Glib::ustring& path);
00059 
00066 Glib::ustring escape_host_and_path_string(const Glib::ustring& path);
00067 
00074 Glib::ustring escape_slashes(const Glib::ustring& unescaped_string);
00075 
00086 Glib::ustring unescape_string(const Glib::ustring& escaped_string, const Glib::ustring& illegal_characters = Glib::ustring());
00087 
00102 Glib::ustring unescape_string_for_display(const Glib::ustring& escaped_string);
00103 
00113 Glib::ustring make_uri_canonical(const Glib::ustring& uri);
00114 
00115 Glib::ustring make_path_name_canonical(const Glib::ustring& path);
00116 
00124 Glib::ustring expand_initial_tilde(const Glib::ustring& path);
00125 
00126 
00134 Glib::ustring get_local_path_from_uri(const Glib::ustring& uri);
00135 
00141 Glib::ustring get_uri_from_local_path(const Glib::ustring& local_full_path);
00142 
00149 bool is_executable_command_string(const Glib::ustring& command_string);
00150 
00151 Glib::ustring icon_path_from_filename(const Glib::ustring& filename);
00152 
00153 void url_show (const Glib::ustring& url) throw(exception);
00154 
00155 //TODO: Where does this envp come from? It seems to be an input parameter.
00156 //void url_show (const Glib::ustring& url, char** envp) throw(exception);
00157 
00158 } //namespace Vfs
00159 } //namespace Gnome
00160 
00161 #endif //_LIBGNOMEVFSMM_UTILS_H
00162 

Generated on Tue Aug 22 09:07:07 2006 for libgnomevfsmm by  doxygen 1.4.7