Sophie

Sophie

distrib > Mandriva > 10.0 > i586 > by-pkgid > 03dba9756e43ac2594de02e80fbfa250 > files > 89

libgnomevfsmm1.3_6-devel-1.3.5-2mdk.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>libgnomevfsmm: file-info.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.3 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Compound&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Compound&nbsp;Members</a></div>
<h1>file-info.h</h1><a href="file-info_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">// -*- c++ -*-</span>
00002 <span class="comment">// Generated by gtkmmproc -- DO NOT MODIFY!</span>
00003 <span class="preprocessor">#ifndef _LIBGNOMEVFSMM_FILE_INFO_H</span>
00004 <span class="preprocessor"></span><span class="preprocessor">#define _LIBGNOMEVFSMM_FILE_INFO_H</span>
00005 <span class="preprocessor"></span>
00006 <span class="preprocessor">#include &lt;glibmm.h&gt;</span>
00007 
00008 <span class="comment">/* $Id: file-info.hg,v 1.9 2003/07/31 18:06:23 mxpxpod Exp $ */</span>
00009 <span class="comment">// -*- C++ -*- // this is for the .hg, I realize gensig puts one in</span>
00010 
00011 <span class="comment">/* Copyright 2003 gnome-vfsmm Development Team</span>
00012 <span class="comment"> *</span>
00013 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
00014 <span class="comment"> * modify it under the terms of the GNU Library General Public</span>
00015 <span class="comment"> * License as published by the Free Software Foundation; either</span>
00016 <span class="comment"> * version 2 of the License, or (at your option) any later version.</span>
00017 <span class="comment"> *</span>
00018 <span class="comment"> * This library is distributed in the hope that it will be useful,</span>
00019 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
00020 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
00021 <span class="comment"> * Library General Public License for more details.</span>
00022 <span class="comment"> *</span>
00023 <span class="comment"> * You should have received a copy of the GNU Library General Public</span>
00024 <span class="comment"> * License along with this library; if not, write to the Free</span>
00025 <span class="comment"> * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span>
00026 <span class="comment"> */</span>
00027 
00028 <span class="preprocessor">#include &lt;libgnomevfs/gnome-vfs-file-info.h&gt;</span>
00029 <span class="preprocessor">#include &lt;<a class="code" href="enums_8h.html">libgnomevfsmm/enums.h</a>&gt;</span>
00030 <span class="preprocessor">#include &lt;<a class="code" href="types_8h.html">libgnomevfsmm/types.h</a>&gt;</span>
00031 
00032 
00033 <span class="keyword">namespace </span>Gnome
00034 {
00035 
00036 <span class="keyword">namespace </span>Vfs
00037 {
00038 
<a name="l00039"></a><a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html">00039</a> <span class="keyword">class </span><a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html">FileInfo</a>
00040 {
00041   <span class="keyword">public</span>:
00042 <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span>
00043 <span class="preprocessor"></span>  <span class="keyword">typedef</span> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html">FileInfo</a> CppObjectType;
00044   <span class="keyword">typedef</span> GnomeVFSFileInfo BaseObjectType;
00045 <span class="preprocessor">#endif </span><span class="comment">/* DOXYGEN_SHOULD_SKIP_THIS */</span>
00046 
00047   <span class="keyword">static</span> Glib::RefPtr&lt;FileInfo&gt; <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#e0">create</a>();
00048 
00049   <span class="comment">// For use with Glib::RefPtr&lt;&gt; only.</span>
00050   <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#a0">reference</a>()   <span class="keyword">const</span>;
00051   <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#a1">unreference</a>() <span class="keyword">const</span>;
00052 
00054   GnomeVFSFileInfo*       <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#a2">gobj</a>();
00055 
00057   <span class="keyword">const</span> GnomeVFSFileInfo* <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#a2">gobj</a>() <span class="keyword">const</span>;
00058 
00059   <span class="comment">// The caller is responsible for freeing it. Use when directly setting fields in structs.</span>
00060   GnomeVFSFileInfo* <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#a4">gobj_copy</a>() <span class="keyword">const</span>;
00061 
00062 <span class="keyword">protected</span>:
00063   <span class="comment">// Do not derive this.  Gnome::Vfs::FileInfo can neither be constructed nor deleted.</span>
00064   <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#b0">FileInfo</a>();
00065   <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#b1">operator delete</a>(<span class="keywordtype">void</span>*, size_t);
00066 
00067 <span class="keyword">private</span>:
00068   <span class="comment">// noncopyable</span>
00069   <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#b0">FileInfo</a>(<span class="keyword">const</span> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html">FileInfo</a>&amp;);
00070   <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html">FileInfo</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html">FileInfo</a>&amp;);
00071 
00072 
00073 <span class="keyword">public</span>:
00074 
00075   
00078   <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#a5">clear</a>();
00079   
00082   Glib::ustring <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#a6">get_mime_type</a>() <span class="keyword">const</span>;
00083   
00087   Glib::RefPtr&lt;FileInfo&gt; <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#a7">duplicate</a>();
00088   
00089 
00090 <span class="comment">/* TODO</span>
00091 <span class="comment">GList *           gnome_vfs_file_info_list_ref      (GList                  *list);</span>
00092 <span class="comment">GList *           gnome_vfs_file_info_list_unref    (GList                  *list);</span>
00093 <span class="comment">GList *           gnome_vfs_file_info_list_copy     (GList                  *list);</span>
00094 <span class="comment">void              gnome_vfs_file_info_list_free     (GList                  *list);</span>
00095 <span class="comment">*/</span>
00096 
00097 
00101   std::string <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#a8">get_name</a>() <span class="keyword">const</span>;
00102 
00103         <span class="comment">/* Fields which are actually valid in this structure. */</span>
00104 <span class="comment">//GnomeVFSFileInfoFields valid_fields;</span>
00105 
00109   <a class="code" href="group__libgnomevfsmmEnums.html#a63">FileType</a> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#a9">get_type</a>() <span class="keyword">const</span>;
00110 
00114   <a class="code" href="group__libgnomevfsmmEnums.html#a64">FilePermissions</a> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#a10">get_permissions</a>() <span class="keyword">const</span>;
00115   
00119   <a class="code" href="group__libgnomevfsmmEnums.html#a62">FileFlags</a> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#a11">get_flags</a>() <span class="keyword">const</span>;
00120 
00121         <span class="comment">/* These are only valid if `is_local' is TRUE (see below).  */</span>
00122   <span class="comment">//dev_t device;</span>
00123   <span class="comment">//GnomeVFSInodeNumber inode;</span>
00124 
00125 
00129   guint <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#a12">get_link_count</a>() <span class="keyword">const</span>;
00130     
00134   guint <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#a13">get_uid</a>() <span class="keyword">const</span>;
00135   
00139   guint <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#a14">get_gid</a>() <span class="keyword">const</span>;
00140   
00145   <a class="code" href="namespaceGnome_1_1Vfs.html#a164">FileSize</a> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#a15">get_size</a>() <span class="keyword">const</span>;
00146   
00151   <a class="code" href="namespaceGnome_1_1Vfs.html#a164">FileSize</a> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#a16">get_block_count</a>() <span class="keyword">const</span>;
00152   
00157   guint <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#a17">get_io_block_size</a>() <span class="keyword">const</span>;
00158 
00162   time_t <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#a18">get_access_time</a>() <span class="keyword">const</span>;
00163   
00167   time_t <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#a19">get_modification_time</a>() <span class="keyword">const</span>;
00168   
00172   time_t <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#a20">get_creation_time</a>() <span class="keyword">const</span>;
00173 
00177   std::string <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#a21">get_symlink_name</a>() <span class="keyword">const</span>;
00178   
00183   <span class="keywordtype">bool</span> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#a22">is_symlink</a>() <span class="keyword">const</span>;
00184           
00185 
00186 };
00187 
00188 } <span class="comment">// namespace Vfs</span>
00189 } <span class="comment">// namespace Gnome</span>
00190 
00191 
00192 <span class="keyword">namespace </span>Gnome
00193 {
00194 
00195 <span class="keyword">namespace </span>Vfs
00196 {
00197 
00199 <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> FileInfo&amp; lhs, <span class="keyword">const</span> FileInfo&amp; rhs);
00200 
00202 <span class="keywordtype">bool</span> operator!=(<span class="keyword">const</span> FileInfo&amp; lhs, <span class="keyword">const</span> FileInfo&amp; rhs);
00203 
00204 
00205 } <span class="comment">// namespace Vfs</span>
00206 
00207 } <span class="comment">// namespace Gnome</span>
00208 
00209 
<a name="l00210"></a><a class="code" href="namespaceGlib.html">00210</a> <span class="keyword">namespace </span>Glib
00211 {
00212 
00214 Glib::RefPtr&lt;Gnome::Vfs::FileInfo&gt; wrap(GnomeVFSFileInfo* object, <span class="keywordtype">bool</span> take_copy = <span class="keyword">false</span>);
00215 
00216 } <span class="comment">// namespace Glib</span>
00217 
00218 <span class="preprocessor">#endif </span><span class="comment">/* _LIBGNOMEVFSMM_FILE_INFO_H */</span>
00219 
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Dec 12 07:51:28 2003 for libgnomevfsmm by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 > 
</a>1.3.3 </small></address>
</body>
</html>