<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>libgnomevfsmm: uri.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.5 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="classes.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <h1>uri.h</h1><a href="uri_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- c++ -*-</span> <a name="l00002"></a>00002 <span class="comment">// Generated by gtkmmproc -- DO NOT MODIFY!</span> <a name="l00003"></a>00003 <span class="preprocessor">#ifndef _LIBGNOMEVFSMM_URI_H</span> <a name="l00004"></a>00004 <span class="preprocessor"></span><span class="preprocessor">#define _LIBGNOMEVFSMM_URI_H</span> <a name="l00005"></a>00005 <span class="preprocessor"></span> <a name="l00006"></a>00006 <a name="l00007"></a>00007 <span class="preprocessor">#include <glibmm.h></span> <a name="l00008"></a>00008 <a name="l00009"></a>00009 <span class="comment">/* $Id: uri.hg,v 1.20 2006/10/31 09:06:50 murrayc Exp $ */</span> <a name="l00010"></a>00010 <span class="comment">// -*- C++ -*- // this is for the .hg, I realize gensig puts one in</span> <a name="l00011"></a>00011 <a name="l00012"></a>00012 <span class="comment">/* Copyright 2003 gnome-vfsmm Development Team</span> <a name="l00013"></a>00013 <span class="comment"> *</span> <a name="l00014"></a>00014 <span class="comment"> * This library is free software; you can redistribute it and/or</span> <a name="l00015"></a>00015 <span class="comment"> * modify it under the terms of the GNU Library General Public</span> <a name="l00016"></a>00016 <span class="comment"> * License as published by the Free Software Foundation; either</span> <a name="l00017"></a>00017 <span class="comment"> * version 2 of the License, or (at your option) any later version.</span> <a name="l00018"></a>00018 <span class="comment"> *</span> <a name="l00019"></a>00019 <span class="comment"> * This library is distributed in the hope that it will be useful,</span> <a name="l00020"></a>00020 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <a name="l00021"></a>00021 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span> <a name="l00022"></a>00022 <span class="comment"> * Library General Public License for more details.</span> <a name="l00023"></a>00023 <span class="comment"> *</span> <a name="l00024"></a>00024 <span class="comment"> * You should have received a copy of the GNU Library General Public</span> <a name="l00025"></a>00025 <span class="comment"> * License along with this library; if not, write to the Free</span> <a name="l00026"></a>00026 <span class="comment"> * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span> <a name="l00027"></a>00027 <span class="comment"> */</span> <a name="l00028"></a>00028 <a name="l00029"></a>00029 <span class="preprocessor">#include <<a class="code" href="file-info_8h.html">libgnomevfsmm/file-info.h</a>></span> <a name="l00030"></a>00030 <span class="preprocessor">#include <<a class="code" href="enums_8h.html">libgnomevfsmm/enums.h</a>></span> <a name="l00031"></a>00031 <span class="preprocessor">#include <<a class="code" href="exception_8h.html">libgnomevfsmm/exception.h</a>></span> <a name="l00032"></a>00032 <span class="preprocessor">#include <libgnomevfs/gnome-vfs-uri.h></span> <a name="l00033"></a>00033 <span class="preprocessor">#include <libgnomevfs/gnome-vfs-ops.h></span> <a name="l00034"></a>00034 <a name="l00035"></a>00035 <a name="l00036"></a>00036 <span class="keyword">namespace </span>Gnome <a name="l00037"></a>00037 { <a name="l00038"></a>00038 <a name="l00039"></a>00039 <span class="keyword">namespace </span>Vfs <a name="l00040"></a>00040 { <a name="l00041"></a>00041 <a name="l00055"></a><a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">00055</a> <span class="keyword">enum</span> <a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a> <a name="l00056"></a>00056 { <a name="l00057"></a><a class="code" href="group__libgnomevfsmmEnums.html#ggdb988818708d58d1a8dd0256429ac3b39b1da32c7faf96bfcd31da8154732d6c">00057</a> <a class="code" href="group__libgnomevfsmmEnums.html#ggdb988818708d58d1a8dd0256429ac3b39b1da32c7faf96bfcd31da8154732d6c">MAKE_URI_DIR_NONE</a> = 0, <a name="l00058"></a><a class="code" href="group__libgnomevfsmmEnums.html#ggdb988818708d58d1a8dd0256429ac3b3cc1d6f44ee9de6cf453ea1a9f122462a">00058</a> <a class="code" href="group__libgnomevfsmmEnums.html#ggdb988818708d58d1a8dd0256429ac3b3cc1d6f44ee9de6cf453ea1a9f122462a">MAKE_URI_DIR_HOMEDIR</a> = 1 << 0, <a name="l00059"></a><a class="code" href="group__libgnomevfsmmEnums.html#ggdb988818708d58d1a8dd0256429ac3b3472b07ded077edd1a20d50edd7c7bdd3">00059</a> <a class="code" href="group__libgnomevfsmmEnums.html#ggdb988818708d58d1a8dd0256429ac3b3472b07ded077edd1a20d50edd7c7bdd3">MAKE_URI_DIR_CURRENT</a> = 1 << 1 <a name="l00060"></a>00060 }; <a name="l00061"></a>00061 <a name="l00063"></a><a class="code" href="group__libgnomevfsmmEnums.html#g1f66aa8266e0c9fe55114402f0ffc162">00063</a> <span class="keyword">inline</span> <a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a> <a class="code" href="group__libgnomevfsmmEnums.html#g2d898bc21e8a7fc5d79f6341fc0998bf">operator|</a>(<a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a> lhs, <a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a> rhs) <a name="l00064"></a>00064 { <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a><span class="keyword">></span>(<span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span><span class="keyword">></span>(lhs) | static_cast<unsigned>(rhs)); } <a name="l00065"></a>00065 <a name="l00067"></a><a class="code" href="group__libgnomevfsmmEnums.html#g47e191f1c4665278c03c2eb390d8da95">00067</a> <span class="keyword">inline</span> <a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a> <a class="code" href="group__libgnomevfsmmEnums.html#g8cafb4073e8d3aaad2bd8b42e12964b4">operator&</a>(<a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a> lhs, <a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a> rhs) <a name="l00068"></a>00068 { <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a><span class="keyword">></span>(<span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span><span class="keyword">></span>(lhs) & static_cast<unsigned>(rhs)); } <a name="l00069"></a>00069 <a name="l00071"></a><a class="code" href="group__libgnomevfsmmEnums.html#g281b5bf5ade38c07337d27265ebb0392">00071</a> <span class="keyword">inline</span> <a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a> <a class="code" href="group__libgnomevfsmmEnums.html#gb3906b6ead56761d895a5ac5a0b250ed">operator^</a>(<a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a> lhs, <a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a> rhs) <a name="l00072"></a>00072 { <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a><span class="keyword">></span>(<span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span><span class="keyword">></span>(lhs) ^ static_cast<unsigned>(rhs)); } <a name="l00073"></a>00073 <a name="l00075"></a><a class="code" href="group__libgnomevfsmmEnums.html#g98d98bbbe6a9627d82c0e19f4e1a5672">00075</a> <span class="keyword">inline</span> <a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a> <a class="code" href="group__libgnomevfsmmEnums.html#g7ff0e6daea1362cd18fb94bafe4b7e6a">operator~</a>(<a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a> flags) <a name="l00076"></a>00076 { <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a><span class="keyword">></span>(~static_cast<<span class="keywordtype">unsigned</span>>(flags)); } <a name="l00077"></a>00077 <a name="l00079"></a><a class="code" href="group__libgnomevfsmmEnums.html#ga9e76187d303e61066c3b3a11390874b">00079</a> <span class="keyword">inline</span> <a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a>& <a class="code" href="group__libgnomevfsmmEnums.html#g23658d2d44d424aa98347151b6bb41e1">operator|=</a>(<a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a>& lhs, <a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a> rhs) <a name="l00080"></a>00080 { <span class="keywordflow">return</span> (lhs = static_cast<MakeURIDirs>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); } <a name="l00081"></a>00081 <a name="l00083"></a><a class="code" href="group__libgnomevfsmmEnums.html#gbedb82d03f07d2461f974776418406df">00083</a> <span class="keyword">inline</span> <a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a>& <a class="code" href="group__libgnomevfsmmEnums.html#g446769045a715cdcd29305074faadf8a">operator&=</a>(<a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a>& lhs, <a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a> rhs) <a name="l00084"></a>00084 { <span class="keywordflow">return</span> (lhs = static_cast<MakeURIDirs>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); } <a name="l00085"></a>00085 <a name="l00087"></a><a class="code" href="group__libgnomevfsmmEnums.html#g81339826399efede4127ae1858cbaf22">00087</a> <span class="keyword">inline</span> <a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a>& <a class="code" href="group__libgnomevfsmmEnums.html#g6ed217e4dc7689a6d7bc13fcc21bf703">operator^=</a>(<a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a>& lhs, <a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a> rhs) <a name="l00088"></a>00088 { <span class="keywordflow">return</span> (lhs = static_cast<MakeURIDirs>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); } <a name="l00089"></a>00089 <a name="l00090"></a>00090 <a name="l00091"></a><a class="code" href="classGnome_1_1Vfs_1_1Uri.html">00091</a> <span class="keyword">class </span><a class="code" href="classGnome_1_1Vfs_1_1Uri.html">Uri</a> <a name="l00092"></a>00092 { <a name="l00093"></a>00093 <span class="keyword">public</span>: <a name="l00094"></a>00094 <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span> <a name="l00095"></a>00095 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html">Uri</a> CppObjectType; <a name="l00096"></a>00096 <span class="keyword">typedef</span> GnomeVFSURI BaseObjectType; <a name="l00097"></a>00097 <span class="preprocessor">#endif </span><span class="comment">/* DOXYGEN_SHOULD_SKIP_THIS */</span> <a name="l00098"></a>00098 <a name="l00099"></a>00099 <a name="l00100"></a>00100 <span class="comment">// For use with Glib::RefPtr<> only.</span> <a name="l00101"></a>00101 <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#5b28300704312faeddc6de209c4ea452">reference</a>() <span class="keyword">const</span>; <a name="l00102"></a>00102 <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#a7637f6ad7967dcd66366ba6e039fdf9">unreference</a>() <span class="keyword">const</span>; <a name="l00103"></a>00103 <a name="l00105"></a>00105 GnomeVFSURI* <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#c0d90e0acfde966f1d4b32b3ce28f05e" title="Provides access to the underlying C instance.">gobj</a>(); <a name="l00106"></a>00106 <a name="l00108"></a>00108 <span class="keyword">const</span> GnomeVFSURI* <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#c0d90e0acfde966f1d4b32b3ce28f05e" title="Provides access to the underlying C instance.">gobj</a>() <span class="keyword">const</span>; <a name="l00109"></a>00109 <a name="l00111"></a>00111 GnomeVFSURI* <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#141b5f3a1840b51a3f46d29a66cc995a" title="Provides access to the underlying C instance. The caller is responsible for unrefing...">gobj_copy</a>() <span class="keyword">const</span>; <a name="l00112"></a>00112 <a name="l00113"></a>00113 <span class="keyword">protected</span>: <a name="l00114"></a>00114 <span class="comment">// Do not derive this. Gnome::Vfs::Uri can neither be constructed nor deleted.</span> <a name="l00115"></a>00115 <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#b75a7b465a4bdd3b2982c03260e22686">Uri</a>(); <a name="l00116"></a>00116 <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#32198eaecb34ef75956021bd9f574142">operator delete</a>(<span class="keywordtype">void</span>*, <span class="keywordtype">size_t</span>); <a name="l00117"></a>00117 <a name="l00118"></a>00118 <span class="keyword">private</span>: <a name="l00119"></a>00119 <span class="comment">// noncopyable</span> <a name="l00120"></a>00120 <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#b75a7b465a4bdd3b2982c03260e22686">Uri</a>(<span class="keyword">const</span> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html">Uri</a>&); <a name="l00121"></a>00121 <a class="code" href="classGnome_1_1Vfs_1_1Uri.html">Uri</a>& operator=(<span class="keyword">const</span> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html">Uri</a>&); <a name="l00122"></a>00122 <a name="l00123"></a>00123 <a name="l00124"></a>00124 <span class="keyword">public</span>: <a name="l00125"></a>00125 <a name="l00130"></a>00130 <span class="keyword">static</span> Glib::RefPtr<Uri> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#e2993d867d5842eb506f44f479c92eaf" title="Create a new Uri from the text string uri.">create</a>(<span class="keyword">const</span> Glib::ustring& uri); <a name="l00131"></a>00131 <a name="l00132"></a>00132 <a name="l00137"></a>00137 Glib::RefPtr<Uri> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#ff86b93fcf562183cebe7110a83a58f1" title="Create a new Uri from relative_reference to this object.">resolve_relative</a>(<span class="keyword">const</span> Glib::ustring& relative_reference); <a name="l00138"></a>00138 <a name="l00139"></a>00139 <a name="l00146"></a>00146 Glib::RefPtr<Uri> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#364de8e78886ecf97c0a8e7092360c2c" title="Create a new Uri object by appending uri_fragment to this Uri object.">append_string</a>(<span class="keyword">const</span> Glib::ustring& uri_fragment); <a name="l00147"></a>00147 <a name="l00154"></a>00154 Glib::RefPtr<Uri> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#286403eed60dd715b11ba1dc224d3db7" title="Create a new Uri object by appending path to this Uri object.">append_path</a>(<span class="keyword">const</span> Glib::ustring& path); <a name="l00155"></a>00155 <a name="l00162"></a>00162 Glib::RefPtr<Uri> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#692be1630ed422441b392db8950d6bde" title="Create a new Uri object by appending filename to this Uri object.">append_file_name</a>(<span class="keyword">const</span> Glib::ustring& filename); <a name="l00163"></a>00163 <a name="l00170"></a>00170 Glib::ustring <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#86771dc9a75ee204ee7e59605d0ab8ba" title="Translate this Uri into a printable string.">to_string</a>(<a class="code" href="group__libgnomevfsmmEnums.html#g2e538034ddbd8257acecde1a164bceec">URIHideOptions</a> hide_options = <a class="code" href="group__libgnomevfsmmEnums.html#gg2e538034ddbd8257acecde1a164bceec3ca625cd64f96a23b8c1a521e3b2b78e">URI_HIDE_NONE</a>) <span class="keyword">const</span>; <a name="l00171"></a>00171 <a name="l00175"></a>00175 Glib::RefPtr<Uri> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#7a0c7a5eb212fe8a4e74481ac4632bd0" title="Duplicate this Uri.">dup</a>(); <a name="l00176"></a>00176 <a name="l00180"></a>00180 <span class="keywordtype">bool</span> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#4edc70855249f42188fd09ae63b25d8d" title="Check if this Uri is a local (native) file system.">is_local</a>() <span class="keyword">const</span>; <a name="l00181"></a>00181 <a name="l00185"></a>00185 <span class="keywordtype">bool</span> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#2b0a3f1f2fb3f2eb2ac487b9d51c60b9" title="Check if this Uri has a parent or not.">has_parent</a>() <span class="keyword">const</span>; <a name="l00186"></a>00186 <a name="l00190"></a>00190 Glib::RefPtr<Uri> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#299e8a37412f7b7183dab4ec3ccb05b6" title="Retrieve this object&#39;s parent Uri.">get_parent</a>(); <a name="l00191"></a>00191 <a name="l00195"></a>00195 Glib::RefPtr<const Uri> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#299e8a37412f7b7183dab4ec3ccb05b6" title="Retrieve this object&#39;s parent Uri.">get_parent</a>() <span class="keyword">const</span>; <a name="l00196"></a>00196 <a name="l00197"></a>00197 <span class="comment">//TODO: GnomeVFSToplevelURI inherits from GnomeVFSUri, but they are not GObjects. That needs a little work. </span> <a name="l00198"></a>00198 <span class="comment">//_WRAP_METHOD(GnomeVFSToplevelURI* get_toplevel(), gnome_vfs_uri_get_toplevel)</span> <a name="l00199"></a>00199 <span class="comment">//_WRAP_METHOD(const GnomeVFSToplevelURI* get_toplevel() const, gnome_vfs_uri_get_toplevel)</span> <a name="l00200"></a>00200 <a name="l00201"></a>00201 <a name="l00205"></a>00205 Glib::ustring <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#6b323307a9142333491894d209792758" title="Retrieve this object&#39;s host name.">get_host_name</a>() <span class="keyword">const</span>; <a name="l00206"></a>00206 <a name="l00210"></a>00210 Glib::ustring <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#4a0b765a24fe429ceafb2ce7f05d9450" title="Retrieve this object&#39;s scheme.">get_scheme</a>() <span class="keyword">const</span>; <a name="l00211"></a>00211 <a name="l00215"></a>00215 guint <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#a2c30671089e8fd2e904ac21ae2f400e" title="Retrieve this object&#39;s host port number.">get_host_port</a>() <span class="keyword">const</span>; <a name="l00216"></a>00216 <a name="l00220"></a>00220 Glib::ustring <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#83010f1bd230c5e92ddaf877dac9bcf5" title="Retrieve the user name in this object.">get_user_name</a>() <span class="keyword">const</span>; <a name="l00221"></a>00221 <a name="l00225"></a>00225 Glib::ustring <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#284edc41f5425fb80a2409c7d8aac61e" title="Retrieve the password for this object.">get_password</a>() <span class="keyword">const</span>; <a name="l00226"></a>00226 <a name="l00227"></a>00227 <a name="l00231"></a>00231 <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#d1632ba3b07477500307cc21c77b4962" title="Set host_name as the host name accessed by this Uri.">set_host_name</a>(<span class="keyword">const</span> Glib::ustring& host_name); <a name="l00232"></a>00232 <a name="l00237"></a>00237 <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#3e95040b2fd0fa9107932b29f9478fcd" title="Set the host port number in this Uri.">set_host_port</a>(guint host_port); <a name="l00238"></a>00238 <a name="l00242"></a>00242 <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#5a983205594d53763a8da1a79edd79c6" title="Set user_name as the user name for this Uri.">set_user_name</a>(<span class="keyword">const</span> Glib::ustring& user_name); <a name="l00243"></a>00243 <a name="l00247"></a>00247 <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#2daa94e19da8472683a3fbe8a5e8c02a" title="Set password as the password for this Uri.">set_password</a>(<span class="keyword">const</span> Glib::ustring& password); <a name="l00248"></a>00248 <a name="l00249"></a>00249 <a name="l00258"></a>00258 <span class="keywordtype">bool</span> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#c4d16376ca9934df69f705c5971e937e" title="Compare a and b .">equal</a>(<span class="keyword">const</span> Glib::RefPtr<const Uri>& uri) <span class="keyword">const</span>; <a name="l00259"></a>00259 <span class="comment">//We wrap this as equal() as well, because operator== requires an operator*.</span> <a name="l00260"></a>00260 <a name="l00261"></a>00261 <a name="l00269"></a>00269 <span class="keywordtype">bool</span> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#f05c86cabb56bf4ad3e6669627dae28f" title="Check if possible_child is contained by this Uri.">is_parent</a>(<span class="keyword">const</span> Glib::RefPtr<const Uri>& possible_child, <span class="keywordtype">bool</span> recursive = <span class="keyword">true</span>) <span class="keyword">const</span>; <a name="l00270"></a>00270 <a name="l00271"></a>00271 <a name="l00275"></a>00275 Glib::ustring <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#4615970f5dff597fe1d6661a4eb308b0" title="Retrieve full path name for this Uri.">get_path</a>() <span class="keyword">const</span>; <a name="l00276"></a>00276 <a name="l00280"></a>00280 Glib::ustring <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#af307f13d68c8f90a50f7bea2eb4c690" title="Retrieve the optional fragment identifier for this Uri.">get_fragment_identifier</a>() <span class="keyword">const</span>; <a name="l00281"></a>00281 <a name="l00286"></a>00286 Glib::ustring <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#2b474f8e621abc2155c6a654220c9f88" title="Extract the name of the directory in which the file pointed to by this Uri is stored...">extract_dirname</a>() <span class="keyword">const</span>; <a name="l00287"></a>00287 <a name="l00298"></a>00298 Glib::ustring <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#bc7ca5c19c34be0d5f1690f791232789" title="Retrieve base file name for this Uri, ignoring any trailing path separators.">extract_short_name</a>() <span class="keyword">const</span>; <a name="l00299"></a>00299 <a name="l00310"></a>00310 Glib::ustring <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#52e145beddd8ac5eae2e9ae67234b3e1" title="Retrieve base file name for this Uri, ignoring any trailing path separators.">extract_short_path_name</a>() <span class="keyword">const</span>; <a name="l00311"></a>00311 <a name="l00312"></a>00312 <span class="comment">//These are used for creating hashes for hash tables, apparently.</span> <a name="l00313"></a>00313 <span class="comment">//I don't see the point of wrapping them.</span> <a name="l00314"></a>00314 <a name="l00315"></a>00315 <a name="l00316"></a>00316 <span class="comment">/*</span> <a name="l00317"></a>00317 <span class="comment">GList* gnome_vfs_uri_list_parse(const Glib::ustring& uri_list), )</span> <a name="l00318"></a>00318 <span class="comment">*/</span> <a name="l00319"></a>00319 <a name="l00320"></a>00320 <a name="l00327"></a>00327 <span class="keyword">static</span> Glib::ustring <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#e26f44513baef1ba5721837a5cdd273c" title="Returns a full Uri given a full base URI, and a secondary URI which may be relative...">make_full_from_relative</a>(<span class="keyword">const</span> Glib::ustring& base_uri, <span class="keyword">const</span> Glib::ustring& relative_uri); <a name="l00328"></a>00328 <a name="l00329"></a>00329 <a name="l00344"></a>00344 <span class="keyword">static</span> Glib::ustring <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#7bd48e980033c82eed8f918923ac3539" title="Filter, modify, unescape and change URIs to make them appropriate to display to users...">format_for_display</a>(<span class="keyword">const</span> Glib::ustring& uri); <a name="l00345"></a>00345 <a name="l00356"></a>00356 <span class="keyword">static</span> Glib::ustring <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#d37bb07ee02d469c74739eed07ca4ce4" title="Takes a user input path/URI and makes a valid URI out of it.">make_from_input</a>(<span class="keyword">const</span> Glib::ustring& uri); <a name="l00357"></a>00357 <a name="l00358"></a>00358 <span class="keyword">static</span> Glib::ustring <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#d37bb07ee02d469c74739eed07ca4ce4" title="Takes a user input path/URI and makes a valid URI out of it.">make_from_input</a>(<span class="keyword">const</span> Glib::ustring& uri, <a class="code" href="group__libgnomevfsmmEnums.html#gdb988818708d58d1a8dd0256429ac3b3">MakeURIDirs</a> dirs); <a name="l00359"></a>00359 <a name="l00366"></a>00366 <span class="keyword">static</span> Glib::ustring <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#51717b01d1305acc6a17a65ebe4fa331" title="If the uri passed contains a fragment (anything after a &#39;#&#39;) strips if, then...">make_canonical_strip_fragment</a>(<span class="keyword">const</span> Glib::ustring& uri); <a name="l00367"></a>00367 <a name="l00375"></a>00375 <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#2babf339f9a7a76a26c49b282e44377e" title="Compare two URIs.">uris_match</a>(<span class="keyword">const</span> Glib::ustring& uri_1, <span class="keyword">const</span> Glib::ustring& uri_2); <a name="l00376"></a>00376 <a name="l00383"></a>00383 <span class="keyword">static</span> Glib::ustring <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#4a0b765a24fe429ceafb2ce7f05d9450" title="Retrieve this object&#39;s scheme.">get_scheme</a>(<span class="keyword">const</span> Glib::ustring& uri); <a name="l00384"></a>00384 <a name="l00395"></a>00395 <span class="keyword">static</span> Glib::ustring <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#2b1fc72b405c6f9c58b9e7a9c44520e4" title="Similar to gnome_vfs_make_uri_from_input, except that:.">make_from_shell_arg</a>(<span class="keyword">const</span> Glib::ustring& uri); <a name="l00396"></a>00396 <a name="l00397"></a>00397 <a name="l00402"></a>00402 <span class="preprocessor"> #ifdef GLIBMM_EXCEPTIONS_ENABLED</span> <a name="l00403"></a>00403 <span class="preprocessor"></span> Glib::RefPtr<FileInfo> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#8dd66163905da8f9fcca28427d3a54e3" title="Retrieve the file info for this Uri.">get_file_info</a>(<a class="code" href="group__libgnomevfsmmEnums.html#g169841389391d136dcf6dd2e542a1556">FileInfoOptions</a> options = <a class="code" href="group__libgnomevfsmmEnums.html#gg169841389391d136dcf6dd2e542a15564cd6a76edaad39b4552fc5aed11676cc">FILE_INFO_DEFAULT</a>) <span class="keyword">const</span> <span class="keywordflow">throw</span>(<a class="code" href="classGnome_1_1Vfs_1_1exception.html">exception</a>); <a name="l00404"></a>00404 <span class="preprocessor"> #else</span> <a name="l00405"></a>00405 <span class="preprocessor"></span> Glib::RefPtr<FileInfo> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#8dd66163905da8f9fcca28427d3a54e3" title="Retrieve the file info for this Uri.">get_file_info</a>(<a class="code" href="group__libgnomevfsmmEnums.html#g169841389391d136dcf6dd2e542a1556">FileInfoOptions</a> options, std::auto_ptr<Gnome::Vfs::exception>& error) <span class="keyword">const</span>; <a name="l00406"></a>00406 <span class="preprocessor"> #endif</span> <a name="l00407"></a>00407 <span class="preprocessor"></span> <a name="l00411"></a>00411 <span class="preprocessor"> #ifdef GLIBMM_EXCEPTIONS_ENABLED</span> <a name="l00412"></a>00412 <span class="preprocessor"></span> <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#c6f0bdf38cbcdebadfbe07f78232ab7c" title="Creates a symbolic link from this Uri to target_reference.">create_symbolic_link</a>(<span class="keyword">const</span> Glib::ustring& target_reference) <span class="keywordflow">throw</span>(<a class="code" href="classGnome_1_1Vfs_1_1exception.html">exception</a>); <a name="l00413"></a>00413 <span class="preprocessor"> #else</span> <a name="l00414"></a>00414 <span class="preprocessor"></span> <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#c6f0bdf38cbcdebadfbe07f78232ab7c" title="Creates a symbolic link from this Uri to target_reference.">create_symbolic_link</a>(<span class="keyword">const</span> Glib::ustring& target_reference, std::auto_ptr<Gnome::Vfs::exception>& error); <a name="l00415"></a>00415 <span class="preprocessor"> #endif</span> <a name="l00416"></a>00416 <span class="preprocessor"></span> <a name="l00420"></a>00420 <span class="keywordtype">bool</span> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#28798e22f380f07211b8df6edcd516f8" title="Check if this Uri points to an existing entity.">uri_exists</a>() <span class="keyword">const</span>; <a name="l00421"></a>00421 <a name="l00427"></a>00427 <span class="preprocessor"> #ifdef GLIBMM_EXCEPTIONS_ENABLED</span> <a name="l00428"></a>00428 <span class="preprocessor"></span> <a class="code" href="namespaceGnome_1_1Vfs.html#46d71f215c684f228c1cd6b96145dbf3">FileSize</a> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#ecb33ee39adeada1caf73ad0f0714309" title="This only works for URIs with the file: scheme.">get_volume_free_space</a>() <span class="keyword">const</span> <span class="keywordflow">throw</span>(<a class="code" href="classGnome_1_1Vfs_1_1exception.html">exception</a>); <a name="l00429"></a>00429 <span class="preprocessor"> #else</span> <a name="l00430"></a>00430 <span class="preprocessor"></span> <a class="code" href="namespaceGnome_1_1Vfs.html#46d71f215c684f228c1cd6b96145dbf3">FileSize</a> <a class="code" href="classGnome_1_1Vfs_1_1Uri.html#ecb33ee39adeada1caf73ad0f0714309" title="This only works for URIs with the file: scheme.">get_volume_free_space</a>(std::auto_ptr<Gnome::Vfs::exception>& error) <span class="keyword">const</span>; <a name="l00431"></a>00431 <span class="preprocessor"> #endif</span> <a name="l00432"></a>00432 <span class="preprocessor"></span> <a name="l00433"></a>00433 <a name="l00434"></a>00434 }; <a name="l00435"></a>00435 <a name="l00436"></a>00436 <a name="l00437"></a>00437 <span class="comment">//TODO: GnomeVFSToplevelURI inherits from GnomeVFSUri, but they are not GObjects. That needs a little work.</span> <a name="l00438"></a>00438 <span class="comment">/*</span> <a name="l00439"></a>00439 <span class="comment">class TopLevelUri : Uri</span> <a name="l00440"></a>00440 <span class="comment">{</span> <a name="l00441"></a>00441 <span class="comment"> //TODO: Constructors/memory-management so we can wrap a GnomeVFSToplevelURI* in this.</span> <a name="l00442"></a>00442 <span class="comment"> //TODO: member accessors?</span> <a name="l00443"></a>00443 <span class="comment">};</span> <a name="l00444"></a>00444 <span class="comment">*/</span> <a name="l00445"></a>00445 <a name="l00446"></a>00446 <a name="l00447"></a>00447 } <span class="comment">// namespace Vfs</span> <a name="l00448"></a>00448 } <span class="comment">// namespace Gnome</span> <a name="l00449"></a>00449 <a name="l00450"></a>00450 <a name="l00451"></a>00451 <span class="keyword">namespace </span>Gnome <a name="l00452"></a>00452 { <a name="l00453"></a>00453 <a name="l00454"></a>00454 <span class="keyword">namespace </span>Vfs <a name="l00455"></a>00455 { <a name="l00456"></a>00456 <a name="l00462"></a>00462 <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> Uri& lhs, <span class="keyword">const</span> Uri& rhs); <a name="l00463"></a>00463 <a name="l00469"></a>00469 <span class="keywordtype">bool</span> operator!=(<span class="keyword">const</span> Uri& lhs, <span class="keyword">const</span> Uri& rhs); <a name="l00470"></a>00470 <a name="l00471"></a>00471 <a name="l00472"></a>00472 } <span class="comment">// namespace Vfs</span> <a name="l00473"></a>00473 <a name="l00474"></a>00474 } <span class="comment">// namespace Gnome</span> <a name="l00475"></a>00475 <a name="l00476"></a>00476 <a name="l00477"></a>00477 <span class="keyword">namespace </span>Glib <a name="l00478"></a>00478 { <a name="l00479"></a>00479 <a name="l00488"></a>00488 Glib::RefPtr<Gnome::Vfs::Uri> wrap(GnomeVFSURI* <span class="keywordtype">object</span>, <span class="keywordtype">bool</span> take_copy = <span class="keyword">false</span>); <a name="l00489"></a>00489 <a name="l00490"></a>00490 } <span class="comment">// namespace Glib</span> <a name="l00491"></a>00491 <a name="l00492"></a>00492 <a name="l00493"></a>00493 <span class="preprocessor">#endif </span><span class="comment">/* _LIBGNOMEVFSMM_URI_H */</span> <a name="l00494"></a>00494 </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Sun Mar 9 14:42:04 2008 for libgnomevfsmm by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address> </body> </html>