Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > 3e51fe12b8ba8995c218e071f1ad9ec1 > files > 123

gnome-vfsmm2.6-doc-2.26.0-14.mga7.armv7hl.rpm

<!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: file-info.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.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;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>file-info.h</h1><a href="file-info_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_FILE_INFO_H</span>
<a name="l00004"></a>00004 <span class="preprocessor"></span><span class="preprocessor">#define _LIBGNOMEVFSMM_FILE_INFO_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 &lt;glibmm.h&gt;</span>
<a name="l00008"></a>00008 
<a name="l00009"></a>00009 <span class="comment">/* $Id: file-info.hg,v 1.13 2005/11/16 19:50:26 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 Lesser 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.1 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"> * Lesser 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 Lesser 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 
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;<a class="code" href="enums_8h.html">libgnomevfsmm/enums.h</a>&gt;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;<a class="code" href="types_8h.html">libgnomevfsmm/types.h</a>&gt;</span>
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 <span class="keyword">namespace </span>Gnome
<a name="l00035"></a>00035 {
<a name="l00036"></a>00036 
<a name="l00037"></a>00037 <span class="keyword">namespace </span>Vfs
<a name="l00038"></a>00038 {
<a name="l00039"></a>00039 
<a name="l00040"></a>00040 <span class="comment">//TODO: This is actually now a boxed-type, with a get_type() function.</span>
<a name="l00041"></a>00041 
<a name="l00042"></a><a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html">00042</a> <span class="keyword">class </span><a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html">FileInfo</a>
<a name="l00043"></a>00043 {
<a name="l00044"></a>00044   <span class="keyword">public</span>:
<a name="l00045"></a>00045 <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span>  <span class="keyword">typedef</span> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html">FileInfo</a> CppObjectType;
<a name="l00047"></a>00047   <span class="keyword">typedef</span> GnomeVFSFileInfo BaseObjectType;
<a name="l00048"></a>00048 <span class="preprocessor">#endif </span><span class="comment">/* DOXYGEN_SHOULD_SKIP_THIS */</span>
<a name="l00049"></a>00049 
<a name="l00050"></a>00050   <span class="keyword">static</span> Glib::RefPtr&lt;FileInfo&gt; <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#f18fe46fda15306278792be38e9b8cfc">create</a>();
<a name="l00051"></a>00051 
<a name="l00052"></a>00052   <span class="comment">// For use with Glib::RefPtr&lt;&gt; only.</span>
<a name="l00053"></a>00053   <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#d39db208b8591a7b7b1b9495242c9354">reference</a>()   <span class="keyword">const</span>;
<a name="l00054"></a>00054   <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#0834df9fb6a685ef1da1e495d23a1bfc">unreference</a>() <span class="keyword">const</span>;
<a name="l00055"></a>00055 
<a name="l00057"></a>00057   GnomeVFSFileInfo*       <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#99771a7203cadf559658087f97421d93" title="Provides access to the underlying C instance.">gobj</a>();
<a name="l00058"></a>00058 
<a name="l00060"></a>00060   <span class="keyword">const</span> GnomeVFSFileInfo* <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#99771a7203cadf559658087f97421d93" title="Provides access to the underlying C instance.">gobj</a>() <span class="keyword">const</span>;
<a name="l00061"></a>00061 
<a name="l00063"></a>00063   GnomeVFSFileInfo* <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#28862319f6e7d26b09f2e722f9e4c7ea" title="Provides access to the underlying C instance. The caller is responsible for unrefing...">gobj_copy</a>() <span class="keyword">const</span>;
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 <span class="keyword">protected</span>:
<a name="l00066"></a>00066   <span class="comment">// Do not derive this.  Gnome::Vfs::FileInfo can neither be constructed nor deleted.</span>
<a name="l00067"></a>00067   <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#3bc77e94178a68104c63ec7d77277ca3">FileInfo</a>();
<a name="l00068"></a>00068   <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#adf159d802720d6f06073cba86342909">operator delete</a>(<span class="keywordtype">void</span>*, <span class="keywordtype">size_t</span>);
<a name="l00069"></a>00069 
<a name="l00070"></a>00070 <span class="keyword">private</span>:
<a name="l00071"></a>00071   <span class="comment">// noncopyable</span>
<a name="l00072"></a>00072   <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#3bc77e94178a68104c63ec7d77277ca3">FileInfo</a>(<span class="keyword">const</span> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html">FileInfo</a>&amp;);
<a name="l00073"></a>00073   <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;);
<a name="l00074"></a>00074 
<a name="l00075"></a>00075 
<a name="l00076"></a>00076 <span class="keyword">public</span>:
<a name="l00077"></a>00077 
<a name="l00078"></a>00078   
<a name="l00081"></a>00081   <span class="keywordtype">void</span> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#5ac38b8a7dcc587de3f71cef363c9380" title="Clears the attributes so they are ready to accept new data.">clear</a>();
<a name="l00082"></a>00082   
<a name="l00086"></a>00086   Glib::ustring <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#f509b90880efcfeb9830b17e3a0af3e6" title="Retrieve MIME type from this object.">get_mime_type</a>() <span class="keyword">const</span>;
<a name="l00087"></a>00087   
<a name="l00091"></a>00091   Glib::RefPtr&lt;FileInfo&gt; <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#fa902cc627eec58154ff742656fb5bff" title="Duplicates orig and returns it.">duplicate</a>();
<a name="l00092"></a>00092   
<a name="l00093"></a>00093 
<a name="l00097"></a>00097    std::string <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#25c2f71059212fe1ae66450da018ee73" title="Get the name property of this FileInfo.">get_name</a>() <span class="keyword">const</span>;
<a name="l00098"></a>00098  
<a name="l00099"></a>00099         <span class="comment">/* Fields which are actually valid in this structure. */</span>
<a name="l00100"></a>00100 <span class="comment">//GnomeVFSFileInfoFields valid_fields;</span>
<a name="l00101"></a>00101 
<a name="l00105"></a>00105    <a class="code" href="group__libgnomevfsmmEnums.html#gd97ac541b575540537dd32d6777cb0d9">FileType</a> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#ade7903458a73faa0731bbcf3aaf9891" title="Get the file type of this FileInfo.">get_type</a>() <span class="keyword">const</span>;
<a name="l00106"></a>00106  
<a name="l00110"></a>00110    <a class="code" href="group__libgnomevfsmmEnums.html#g0b98be1869cb267ac8cbd2ddbcfe74fd">FilePermissions</a> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#5eecee7d33efd890c7f5117d468e4881" title="Get the permissions of this FileInfo.">get_permissions</a>() <span class="keyword">const</span>;
<a name="l00111"></a>00111    
<a name="l00115"></a>00115    <a class="code" href="group__libgnomevfsmmEnums.html#g212689c79b808689f7797dc5e3d8cc11">FileFlags</a> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#279dd9e5604b78bfafa83099b6d5b1d4" title="Get the special flags of this FileInfo.">get_flags</a>() <span class="keyword">const</span>;
<a name="l00116"></a>00116  
<a name="l00117"></a>00117   <span class="comment">/* These are only valid if `is_local' is TRUE (see below).  */</span>
<a name="l00118"></a>00118   <span class="comment">//dev_t device;</span>
<a name="l00119"></a>00119   <span class="comment">//GnomeVFSInodeNumber inode;</span>
<a name="l00120"></a>00120 
<a name="l00121"></a>00121 
<a name="l00125"></a>00125    guint <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#9bcdbc7812c3e94ea02cc1e123f4ed5b" title="Get the link count of this FileInfo.">get_link_count</a>() <span class="keyword">const</span>;
<a name="l00126"></a>00126      
<a name="l00130"></a>00130    guint <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#d76bc82a9b6991516fd1bd6d72a6c924" title="Get the user id of this FileInfo.">get_uid</a>() <span class="keyword">const</span>;
<a name="l00131"></a>00131    
<a name="l00135"></a>00135    guint <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#8eb2a5bc59683b2fb0217520174908ad" title="Get the group id of this FileInfo.">get_gid</a>() <span class="keyword">const</span>;
<a name="l00136"></a>00136    
<a name="l00141"></a>00141    <a class="code" href="namespaceGnome_1_1Vfs.html#46d71f215c684f228c1cd6b96145dbf3">FileSize</a> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#037b389dc9dac4ad9332c218fa1d5d62" title="Get the size of this FileInfo.">get_size</a>() <span class="keyword">const</span>;
<a name="l00142"></a>00142    
<a name="l00147"></a>00147    <a class="code" href="namespaceGnome_1_1Vfs.html#46d71f215c684f228c1cd6b96145dbf3">FileSize</a> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#e9c86a5099c6d2b0e3f092fc14442608" title="Get the size of this FileInfo.">get_block_count</a>() <span class="keyword">const</span>;
<a name="l00148"></a>00148    
<a name="l00153"></a>00153    guint <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#6899b6eaef4ec4170e71e5fc77689a73" title="Get the I/O block size of this FileInfo.">get_io_block_size</a>() <span class="keyword">const</span>;
<a name="l00154"></a>00154  
<a name="l00158"></a>00158    time_t <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#bc3ac8bfd04b2f8916c9a3daeeb3536c" title="Get the access time of this FileInfo.">get_access_time</a>() <span class="keyword">const</span>;
<a name="l00159"></a>00159    
<a name="l00163"></a>00163    time_t <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#29985c4fcb4eae4520079f6e4c2d20a9" title="Get the modification time of this FileInfo.">get_modification_time</a>() <span class="keyword">const</span>;
<a name="l00164"></a>00164    
<a name="l00168"></a>00168    time_t <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#46c40887f2f35352f80651a619601e6c" title="Get the creation time of this FileInfo.">get_creation_time</a>() <span class="keyword">const</span>;
<a name="l00169"></a>00169  
<a name="l00173"></a>00173    std::string <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#54a64e14079e763e057f88290133d530" title="Get the symlink name of this FileInfo.">get_symlink_name</a>() <span class="keyword">const</span>;
<a name="l00174"></a>00174    
<a name="l00179"></a>00179   <span class="keywordtype">bool</span> <a class="code" href="classGnome_1_1Vfs_1_1FileInfo.html#4c34e61240575b502dc14bc8615f500a" title="Find out if this FileInfo is a symbolic link.">is_symlink</a>() <span class="keyword">const</span>;
<a name="l00180"></a>00180           
<a name="l00181"></a>00181 
<a name="l00182"></a>00182 };
<a name="l00183"></a>00183 
<a name="l00184"></a>00184 } <span class="comment">// namespace Vfs</span>
<a name="l00185"></a>00185 } <span class="comment">// namespace Gnome</span>
<a name="l00186"></a>00186 
<a name="l00187"></a>00187 <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span>
<a name="l00188"></a>00188 <span class="preprocessor"></span><span class="keyword">namespace </span>Glib
<a name="l00189"></a>00189 {  
<a name="l00190"></a>00190   RefPtr&lt;Gnome::Vfs::FileInfo&gt; wrap(GnomeVFSFileInfo* <span class="keywordtype">object</span>, <span class="keywordtype">bool</span> take_copy);
<a name="l00191"></a>00191 
<a name="l00192"></a>00192   <span class="keyword">namespace </span>Container_Helpers
<a name="l00193"></a>00193   {
<a name="l00198"></a>00198     <span class="keyword">template</span> &lt;&gt;
<a name="l00199"></a>00199     <span class="keyword">struct </span>TypeTraits&lt; Glib::RefPtr&lt;Gnome::Vfs::FileInfo&gt; &gt;
<a name="l00200"></a>00200     {
<a name="l00201"></a>00201       <span class="keyword">typedef</span> Glib::RefPtr&lt;Gnome::Vfs::FileInfo&gt;              CppType;
<a name="l00202"></a>00202       <span class="keyword">typedef</span> Gnome::Vfs::FileInfo::BaseObjectType * CType;
<a name="l00203"></a>00203       <span class="keyword">typedef</span> Gnome::Vfs::FileInfo::BaseObjectType * CTypeNonConst;
<a name="l00204"></a>00204 
<a name="l00205"></a>00205       <span class="keyword">static</span> CType   to_c_type      (<span class="keyword">const</span> CppType&amp; ptr) { <span class="keywordflow">return</span> Glib::unwrap(ptr);     }
<a name="l00206"></a>00206       <span class="keyword">static</span> CType   to_c_type      (CType          ptr) { <span class="keywordflow">return</span> ptr;                   }
<a name="l00207"></a>00207       <span class="keyword">static</span> CppType to_cpp_type    (CType          ptr)
<a name="l00208"></a>00208       {
<a name="l00209"></a>00209         <span class="keywordflow">return</span> Glib::wrap(ptr, <span class="keyword">true</span>);
<a name="l00210"></a>00210       }
<a name="l00211"></a>00211   
<a name="l00212"></a>00212       <span class="keyword">static</span> <span class="keywordtype">void</span>    release_c_type (CType          ptr)
<a name="l00213"></a>00213       {
<a name="l00214"></a>00214         gnome_vfs_file_info_unref(const_cast&lt;CTypeNonConst&gt;(ptr));
<a name="l00215"></a>00215       }
<a name="l00216"></a>00216     };
<a name="l00217"></a>00217   } <span class="comment">// namespace Container_Helpers</span>
<a name="l00218"></a>00218 } <span class="comment">// namespace Glib</span>
<a name="l00219"></a>00219 
<a name="l00220"></a>00220 <span class="preprocessor">#endif // DOXYGEN_SHOULD_SKIP_THIS</span>
<a name="l00221"></a>00221 <span class="preprocessor"></span>
<a name="l00222"></a>00222 
<a name="l00223"></a>00223 <span class="keyword">namespace </span>Gnome
<a name="l00224"></a>00224 {
<a name="l00225"></a>00225 
<a name="l00226"></a>00226 <span class="keyword">namespace </span>Vfs
<a name="l00227"></a>00227 {
<a name="l00228"></a>00228 
<a name="l00234"></a>00234 <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> FileInfo&amp; lhs, <span class="keyword">const</span> FileInfo&amp; rhs);
<a name="l00235"></a>00235 
<a name="l00241"></a>00241 <span class="keywordtype">bool</span> operator!=(<span class="keyword">const</span> FileInfo&amp; lhs, <span class="keyword">const</span> FileInfo&amp; rhs);
<a name="l00242"></a>00242 
<a name="l00243"></a>00243 
<a name="l00244"></a>00244 } <span class="comment">// namespace Vfs</span>
<a name="l00245"></a>00245 
<a name="l00246"></a>00246 } <span class="comment">// namespace Gnome</span>
<a name="l00247"></a>00247 
<a name="l00248"></a>00248 
<a name="l00249"></a>00249 <span class="keyword">namespace </span>Glib
<a name="l00250"></a>00250 {
<a name="l00251"></a>00251 
<a name="l00260"></a>00260   Glib::RefPtr&lt;Gnome::Vfs::FileInfo&gt; wrap(GnomeVFSFileInfo* <span class="keywordtype">object</span>, <span class="keywordtype">bool</span> take_copy = <span class="keyword">false</span>);
<a name="l00261"></a>00261 
<a name="l00262"></a>00262 } <span class="comment">// namespace Glib</span>
<a name="l00263"></a>00263 
<a name="l00264"></a>00264 
<a name="l00265"></a>00265 <span class="preprocessor">#endif </span><span class="comment">/* _LIBGNOMEVFSMM_FILE_INFO_H */</span>
<a name="l00266"></a>00266 
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Mar 16 18:27:50 2009 for libgnomevfsmm by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>