Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > ff187cb994c94c614ecc64c5a8528b1b > files > 4769

qt-doc-4.8.5-10.fc18.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qabstractfileengine.cpp -->
  <title>Qt 4.8: QAbstractFileEngine Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/style.css" />
  <script src="scripts/jquery.js" type="text/javascript"></script>
  <script src="scripts/functions.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" href="style/superfish.css" />
  <link rel="stylesheet" type="text/css" href="style/narrow.css" />
  <!--[if IE]>
<meta name="MSSmartTagsPreventParsing" content="true">
<meta http-equiv="imagetoolbar" content="no">
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
<![endif]-->

<script src="scripts/superfish.js" type="text/javascript"></script>
<script src="scripts/narrow.js" type="text/javascript"></script>

</head>
<body class="" onload="CheckEmptyAndLoadList();">
 <div class="header" id="qtdocheader">
    <div class="content"> 
    <div id="nav-logo">
      <a href="index.html">Home</a></div>
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
    <div id="narrowsearch"></div>
    <div id="nav-topright">
      <ul>
        <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li>
        <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li>
        <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/">
          DOC</a></li>
        <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li>
      </ul>
    </div>
    <div id="shortCut">
      <ul>
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li>
        <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS        </a></li>
      </ul>
     </div>
 <ul class="sf-menu" id="narrowmenu"> 
             <li><a href="#">API Lookup</a> 
                 <ul> 
                     <li><a href="classes.html">Class index</a></li> 
           <li><a href="functions.html">Function index</a></li> 
           <li><a href="modules.html">Modules</a></li> 
           <li><a href="namespaces.html">Namespaces</a></li> 
           <li><a href="qtglobal.html">Global Declarations</a></li> 
           <li><a href="qdeclarativeelements.html">QML elements</a></li> 
             </ul> 
             </li> 
             <li><a href="#">Qt Topics</a> 
                 <ul> 
                        <li><a href="qt-basic-concepts.html">Programming with Qt</a></li>  
                        <li><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li>  
                        <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>  
                        <li><a href="supported-platforms.html">Supported Platforms</a></li>  
                        <li><a href="technology-apis.html">Qt and Key Technologies</a></li>  
                        <li><a href="best-practices.html">How-To's and Best Practices</a></li>  
              </ul> 
                 </li> 
                 <li><a href="#">Examples</a> 
                     <ul> 
                       <li><a href="all-examples.html">Examples</a></li> 
                       <li><a href="tutorials.html">Tutorials</a></li> 
                       <li><a href="demos.html">Demos</a></li> 
                       <li><a href="qdeclarativeexamples.html">QML Examples</a></li> 
                </ul> 
                     </li> 
                 </ul> 
    </div>
  </div>
  <div class="wrapper">
    <div class="hd">
      <span></span>
    </div>
    <div class="bd group">
      <div class="sidebar">
        <div class="searchlabel">
          Search index:</div>
        <div class="search" id="sidebarsearch">
          <form id="qtdocsearch" action="" onsubmit="return false;">
            <fieldset>
              <input type="text" name="searchstring" id="pageType" value="" />
 <div id="resultdialog"> 
 <a href="#" id="resultclose">Close</a> 
 <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> 
 <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span>&nbsp;results:</p> 
 <ul id="resultlist" class="all"> 
 </ul> 
 </div> 
            </fieldset>
          </form>
        </div>
        <div class="box first bottombar" id="lookup">
          <h2 title="API Lookup"><span></span>
            API Lookup</h2>
          <div  id="list001" class="list">
          <ul id="ul001" >
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
              <li class="defaultLink"><a href="functions.html">Function index</a></li>
              <li class="defaultLink"><a href="modules.html">Modules</a></li>
              <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
              <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
              <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
            </ul> 
          </div>
        </div>
        <div class="box bottombar" id="topics">
          <h2 title="Qt Topics"><span></span>
            Qt Topics</h2>
          <div id="list002" class="list">
            <ul id="ul002" >
               <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
               <li class="defaultLink"><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li> 
               <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
               <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li>  
               <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> 
               <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> 
            </ul>  
          </div>
        </div>
        <div class="box" id="examples">
          <h2 title="Examples"><span></span>
            Examples</h2>
          <div id="list003" class="list">
        <ul id="ul003">
              <li class="defaultLink"><a href="all-examples.html">Examples</a></li>
              <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
              <li class="defaultLink"><a href="demos.html">Demos</a></li>
              <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
            </ul> 
          </div>
        </div>
      </div>
      <div class="wrap">
        <div class="toolbar">
          <div class="breadcrumb toolblock">
            <ul>
              <li class="first"><a href="index.html">Home</a></li>
              <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtcore.html">QtCore</a></li>
<li>QAbstractFileEngine</li>
            </ul>
          </div>
          <div class="toolbuttons toolblock">
            <ul>
              <li id="smallA" class="t_button">A</li>
              <li id="medA" class="t_button active">A</li>
              <li id="bigA" class="t_button">A</li>
              <li id="print" class="t_button"><a href="javascript:this.print();">
                <span>Print</span></a></li>
            </ul>
        </div>
        </div>
        <div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#related-non-members">Related Non-Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QAbstractFileEngine Class Reference</h1>
<!-- $$$QAbstractFileEngine-brief -->
<p>The QAbstractFileEngine class provides an abstraction for accessing the filesystem. <a href="#details">More...</a></p>
<!-- @@@QAbstractFileEngine -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QAbstractFileEngine&gt;</span></pre><p><b>Inherited by: </b><a href="qfsfileengine.html">QFSFileEngine</a>.</p>
<p><b>Note:</b> All functions in this class are <a href="threads-reentrancy.html#reentrant">reentrant</a>.</p>
<p>This class was introduced in Qt 4.1.</p>
<ul>
<li><a href="qabstractfileengine-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> class </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine-extensionoption.html">ExtensionOption</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> class </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine-extensionreturn.html">ExtensionReturn</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> class </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine-mapextensionoption.html">MapExtensionOption</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> class </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine-mapextensionreturn.html">MapExtensionReturn</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> class </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine-unmapextensionoption.html">UnMapExtensionOption</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#Extension-enum">Extension</a></b> { AtEndExtension, FastReadLineExtension, MapExtension, UnMapExtension }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#FileFlag-enum">FileFlag</a></b> { ReadOwnerPerm, WriteOwnerPerm, ExeOwnerPerm, ReadUserPerm, ..., Refresh }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> flags </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#FileFlag-enum">FileFlags</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#FileName-enum">FileName</a></b> { DefaultName, BaseName, PathName, AbsoluteName, ..., BundleName }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#FileOwner-enum">FileOwner</a></b> { OwnerUser, OwnerGroup }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#FileTime-enum">FileTime</a></b> { CreationTime, ModificationTime, AccessTime }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#Iterator-typedef">Iterator</a></b></td></tr>
</table>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#dtor.QAbstractFileEngine">~QAbstractFileEngine</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#atEnd">atEnd</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual Iterator * </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#beginEntryList">beginEntryList</a></b> ( QDir::Filters <i>filters</i>, const QStringList &amp; <i>filterNames</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#caseSensitive">caseSensitive</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#close">close</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#copy">copy</a></b> ( const QString &amp; <i>newName</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QStringList </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#entryList">entryList</a></b> ( QDir::Filters <i>filters</i>, const QStringList &amp; <i>filterNames</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QFile::FileError </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#error">error</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#errorString">errorString</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#extension">extension</a></b> ( Extension <i>extension</i>, const ExtensionOption * <i>option</i> = 0, ExtensionReturn * <i>output</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual FileFlags </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#fileFlags">fileFlags</a></b> ( FileFlags <i>type</i> = FileInfoAll ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QString </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#fileName">fileName</a></b> ( FileName <i>file</i> = DefaultName ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QDateTime </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#fileTime">fileTime</a></b> ( FileTime <i>time</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#flush">flush</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#handle">handle</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#isRelativePath">isRelativePath</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#isSequential">isSequential</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#link">link</a></b> ( const QString &amp; <i>newName</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> uchar * </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#map">map</a></b> ( qint64 <i>offset</i>, qint64 <i>size</i>, QFile::MemoryMapFlags <i>flags</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#mkdir">mkdir</a></b> ( const QString &amp; <i>dirName</i>, bool <i>createParentDirectories</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#open">open</a></b> ( QIODevice::OpenMode <i>mode</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QString </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#owner">owner</a></b> ( FileOwner <i>owner</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual uint </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#ownerId">ownerId</a></b> ( FileOwner <i>owner</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual qint64 </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#pos">pos</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual qint64 </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#read">read</a></b> ( char * <i>data</i>, qint64 <i>maxlen</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual qint64 </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#readLine">readLine</a></b> ( char * <i>data</i>, qint64 <i>maxlen</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#remove">remove</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#rename">rename</a></b> ( const QString &amp; <i>newName</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#rmdir">rmdir</a></b> ( const QString &amp; <i>dirName</i>, bool <i>recurseParentDirectories</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#seek">seek</a></b> ( qint64 <i>offset</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#setFileName">setFileName</a></b> ( const QString &amp; <i>file</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#setPermissions">setPermissions</a></b> ( uint <i>perms</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#setSize">setSize</a></b> ( qint64 <i>size</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual qint64 </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#size">size</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#supportsExtension">supportsExtension</a></b> ( Extension <i>extension</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#unmap">unmap</a></b> ( uchar * <i>address</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual qint64 </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#write">write</a></b> ( const char * <i>data</i>, qint64 <i>len</i> )</td></tr>
</table>
<a name="static-public-members"></a>
<h2>Static Public Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QAbstractFileEngine * </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#create">create</a></b> ( const QString &amp; <i>fileName</i> )</td></tr>
</table>
<a name="protected-functions"></a>
<h2>Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#QAbstractFileEngine">QAbstractFileEngine</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#setError">setError</a></b> ( QFile::FileError <i>error</i>, const QString &amp; <i>errorString</i> )</td></tr>
</table>
<a name="related-non-members"></a>
<h2>Related Non-Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qabstractfileengine.html#Iterator-typedef">Iterator</a></b></td></tr>
</table>
<a name="details"></a>
<!-- $$$QAbstractFileEngine-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QAbstractFileEngine class provides an abstraction for accessing the filesystem.</p>
<p>The <a href="qdir.html">QDir</a>, <a href="qfile.html">QFile</a>, and <a href="qfileinfo.html">QFileInfo</a> classes all make use of a QAbstractFileEngine internally. If you create your own QAbstractFileEngine subclass (and register it with Qt by creating a <a href="qabstractfileenginehandler.html">QAbstractFileEngineHandler</a> subclass), your file engine will be used when the path is one that your file engine handles.</p>
<p>A QAbstractFileEngine refers to one file or one directory. If the referent is a file, the <a href="qabstractfileengine.html#setFileName">setFileName</a>(), <a href="qabstractfileengine.html#rename">rename</a>(), and <a href="qabstractfileengine.html#remove">remove</a>() functions are applicable. If the referent is a directory the <a href="qabstractfileengine.html#mkdir">mkdir</a>(), <a href="qabstractfileengine.html#rmdir">rmdir</a>(), and <a href="qabstractfileengine.html#entryList">entryList</a>() functions are applicable. In all cases the <a href="qabstractfileengine.html#caseSensitive">caseSensitive</a>(), <a href="qabstractfileengine.html#isRelativePath">isRelativePath</a>(), <a href="qabstractfileengine.html#fileFlags">fileFlags</a>(), <a href="qabstractfileengine.html#ownerId">ownerId</a>(), <a href="qabstractfileengine.html#owner">owner</a>(), and <a href="qabstractfileengine.html#fileTime">fileTime</a>() functions are applicable.</p>
<p>A QAbstractFileEngine subclass can be created to do synchronous network I/O based file system operations, local file system operations, or to operate as a resource system to access file based resources.</p>
</div>
<p><b>See also </b><a href="qabstractfileenginehandler.html">QAbstractFileEngineHandler</a>.</p>
<!-- @@@QAbstractFileEngine -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$Extension$$$AtEndExtension$$$FastReadLineExtension$$$MapExtension$$$UnMapExtension -->
<h3 class="fn"><a name="Extension-enum"></a>enum QAbstractFileEngine::<span class="name">Extension</span></h3>
<p>This enum describes the types of extensions that the file engine can support. Before using these extensions, you must verify that the extension is supported (i.e&#x2e;, call <a href="qabstractfileengine.html#supportsExtension">supportsExtension</a>()).</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::AtEndExtension</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">Whether the current file position is at the end of the file or not. This extension allows file engines that implement local buffering to report end-of-file status without having to check the size of the file. It is also useful for sequential files, where the size of the file cannot be used to determine whether or not you have reached the end. This extension returns true if the file is at the end; otherwise it returns false. The input and output arguments to <a href="qabstractfileengine.html#extension">extension</a>() are ignored.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::FastReadLineExtension</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">Whether the file engine provides a fast implementation for <a href="qabstractfileengine.html#readLine">readLine</a>() or not. If <a href="qabstractfileengine.html#readLine">readLine</a>() remains unimplemented in the file engine, <a href="qabstractfileengine.html">QAbstractFileEngine</a> will provide an implementation based on calling <a href="qabstractfileengine.html#read">read</a>() repeatedly. If <a href="qabstractfileengine.html#supportsExtension">supportsExtension</a>() returns false for this extension, however, <a href="qiodevice.html">QIODevice</a> can provide a faster implementation by making use of its internal buffer. For engines that already provide a fast <a href="qabstractfileengine.html#readLine">readLine</a>() implementation, returning false for this extension can avoid unnnecessary double-buffering in <a href="qiodevice.html">QIODevice</a>.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::MapExtension</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">Whether the file engine provides the ability to map a file to memory.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::UnMapExtension</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">Whether the file engine provides the ability to unmap memory that was previously mapped.</td></tr>
</table>
<p>This enum was introduced or modified in Qt 4.3.</p>
<!-- @@@Extension -->
<!-- $$$FileFlag$$$ReadOwnerPerm$$$WriteOwnerPerm$$$ExeOwnerPerm$$$ReadUserPerm$$$WriteUserPerm$$$ExeUserPerm$$$ReadGroupPerm$$$WriteGroupPerm$$$ExeGroupPerm$$$ReadOtherPerm$$$WriteOtherPerm$$$ExeOtherPerm$$$LinkType$$$FileType$$$DirectoryType$$$BundleType$$$HiddenFlag$$$LocalDiskFlag$$$ExistsFlag$$$RootFlag$$$Refresh$$$PermsMask$$$TypesMask$$$FlagsMask$$$FileInfoAll -->
<h3 class="flags"><a name="FileFlag-enum"></a>enum QAbstractFileEngine::<span class="name">FileFlag</span><br/>flags QAbstractFileEngine::<span class="name">FileFlags</span></h3>
<p>The permissions and types of a file, suitable for OR'ing together.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::ReadOwnerPerm</tt></td><td class="topAlign"><tt>0x4000</tt></td><td class="topAlign">The owner of the file has permission to read it.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::WriteOwnerPerm</tt></td><td class="topAlign"><tt>0x2000</tt></td><td class="topAlign">The owner of the file has permission to write to it.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::ExeOwnerPerm</tt></td><td class="topAlign"><tt>0x1000</tt></td><td class="topAlign">The owner of the file has permission to execute it.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::ReadUserPerm</tt></td><td class="topAlign"><tt>0x0400</tt></td><td class="topAlign">The current user has permission to read the file.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::WriteUserPerm</tt></td><td class="topAlign"><tt>0x0200</tt></td><td class="topAlign">The current user has permission to write to the file.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::ExeUserPerm</tt></td><td class="topAlign"><tt>0x0100</tt></td><td class="topAlign">The current user has permission to execute the file.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::ReadGroupPerm</tt></td><td class="topAlign"><tt>0x0040</tt></td><td class="topAlign">Members of the current user's group have permission to read the file.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::WriteGroupPerm</tt></td><td class="topAlign"><tt>0x0020</tt></td><td class="topAlign">Members of the current user's group have permission to write to the file.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::ExeGroupPerm</tt></td><td class="topAlign"><tt>0x0010</tt></td><td class="topAlign">Members of the current user's group have permission to execute the file.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::ReadOtherPerm</tt></td><td class="topAlign"><tt>0x0004</tt></td><td class="topAlign">All users have permission to read the file.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::WriteOtherPerm</tt></td><td class="topAlign"><tt>0x0002</tt></td><td class="topAlign">All users have permission to write to the file.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::ExeOtherPerm</tt></td><td class="topAlign"><tt>0x0001</tt></td><td class="topAlign">All users have permission to execute the file.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::LinkType</tt></td><td class="topAlign"><tt>0x10000</tt></td><td class="topAlign">The file is a link to another file (or link) in the file system (i.e&#x2e; not a file or directory).</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::FileType</tt></td><td class="topAlign"><tt>0x20000</tt></td><td class="topAlign">The file is a regular file to the file system (i.e&#x2e; not a link or directory)</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::BundleType</tt></td><td class="topAlign"><tt>0x80000</tt></td><td class="topAlign">The file is a Mac OS X bundle implies DirectoryType</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::DirectoryType</tt></td><td class="topAlign"><tt>0x40000</tt></td><td class="topAlign">The file is a directory in the file system (i.e&#x2e; not a link or file).</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::HiddenFlag</tt></td><td class="topAlign"><tt>0x0100000</tt></td><td class="topAlign">The file is hidden.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::ExistsFlag</tt></td><td class="topAlign"><tt>0x0400000</tt></td><td class="topAlign">The file actually exists in the file system.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::RootFlag</tt></td><td class="topAlign"><tt>0x0800000</tt></td><td class="topAlign">The file or the file pointed to is the root of the filesystem.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::LocalDiskFlag</tt></td><td class="topAlign"><tt>0x0200000</tt></td><td class="topAlign">The file resides on the local disk and can be passed to standard file functions.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::Refresh</tt></td><td class="topAlign"><tt>0x1000000</tt></td><td class="topAlign">Passing this flag will force the file engine to refresh all flags.</td></tr>
</table>
<p>The FileFlags type is a typedef for <a href="qflags.html">QFlags</a>&lt;FileFlag&gt;. It stores an OR combination of FileFlag values.</p>
<p><b>See also </b><a href="qabstractfileengine.html#fileFlags">fileFlags</a>() and <a href="qabstractfileengine.html#setFileName">setFileName</a>().</p>
<!-- @@@FileFlag -->
<!-- $$$FileName$$$DefaultName$$$BaseName$$$PathName$$$AbsoluteName$$$AbsolutePathName$$$LinkName$$$CanonicalName$$$CanonicalPathName$$$BundleName$$$NFileNames -->
<h3 class="fn"><a name="FileName-enum"></a>enum QAbstractFileEngine::<span class="name">FileName</span></h3>
<p>These values are used to request a file name in a particular format.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::DefaultName</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The same filename that was passed to the <a href="qabstractfileengine.html">QAbstractFileEngine</a>.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::BaseName</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The name of the file excluding the path.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::PathName</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">The path to the file excluding the base name.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::AbsoluteName</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">The absolute path to the file (including the base name).</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::AbsolutePathName</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">The absolute path to the file (excluding the base name).</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::LinkName</tt></td><td class="topAlign"><tt>5</tt></td><td class="topAlign">The full file name of the file that this file is a link to. (This will be empty if this file is not a link.)</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::CanonicalName</tt></td><td class="topAlign"><tt>6</tt></td><td class="topAlign">Often very similar to LinkName. Will return the true path to the file.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::CanonicalPathName</tt></td><td class="topAlign"><tt>7</tt></td><td class="topAlign">Same as CanonicalName, excluding the base name.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::BundleName</tt></td><td class="topAlign"><tt>8</tt></td><td class="topAlign">Returns the name of the bundle implies <a href="qabstractfileengine.html#FileFlag-enum">BundleType</a> is set.</td></tr>
</table>
<p><b>See also </b><a href="qabstractfileengine.html#fileName">fileName</a>() and <a href="qabstractfileengine.html#setFileName">setFileName</a>().</p>
<!-- @@@FileName -->
<!-- $$$FileOwner$$$OwnerUser$$$OwnerGroup -->
<h3 class="fn"><a name="FileOwner-enum"></a>enum QAbstractFileEngine::<span class="name">FileOwner</span></h3>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::OwnerUser</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The user who owns the file.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::OwnerGroup</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The group who owns the file.</td></tr>
</table>
<p><b>See also </b><a href="qabstractfileengine.html#owner">owner</a>(), <a href="qabstractfileengine.html#ownerId">ownerId</a>(), and <a href="qabstractfileengine.html#setFileName">setFileName</a>().</p>
<!-- @@@FileOwner -->
<!-- $$$FileTime$$$CreationTime$$$ModificationTime$$$AccessTime -->
<h3 class="fn"><a name="FileTime-enum"></a>enum QAbstractFileEngine::<span class="name">FileTime</span></h3>
<p>These are used by the <a href="qabstractfileengine.html#fileTime">fileTime</a>() function.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::CreationTime</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">When the file was created.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::ModificationTime</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">When the file was most recently modified.</td></tr>
<tr><td class="topAlign"><tt>QAbstractFileEngine::AccessTime</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">When the file was most recently accessed (e.g&#x2e; read or written to).</td></tr>
</table>
<p><b>See also </b><a href="qabstractfileengine.html#setFileName">setFileName</a>().</p>
<!-- @@@FileTime -->
<!-- $$$Iterator -->
<h3 class="fn"><a name="Iterator-typedef"></a>typedef QAbstractFileEngine::<span class="name">Iterator</span></h3>
<p>Synonym for <a href="qabstractfileengineiterator.html">QAbstractFileEngineIterator</a>.</p>
<p>This typedef was introduced in Qt 4.3.</p>
<!-- @@@Iterator -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QAbstractFileEngine[overload1]$$$QAbstractFileEngine -->
<h3 class="fn"><a name="QAbstractFileEngine"></a>QAbstractFileEngine::<span class="name">QAbstractFileEngine</span> ()<tt> [protected]</tt></h3>
<p>Constructs a new <a href="qabstractfileengine.html">QAbstractFileEngine</a> that does not refer to any file or directory.</p>
<p><b>See also </b><a href="qabstractfileengine.html#setFileName">setFileName</a>().</p>
<!-- @@@QAbstractFileEngine -->
<!-- $$$~QAbstractFileEngine[overload1]$$$~QAbstractFileEngine -->
<h3 class="fn"><a name="dtor.QAbstractFileEngine"></a>QAbstractFileEngine::<span class="name">~QAbstractFileEngine</span> ()<tt> [virtual]</tt></h3>
<p>Destroys the <a href="qabstractfileengine.html">QAbstractFileEngine</a>.</p>
<!-- @@@~QAbstractFileEngine -->
<!-- $$$atEnd[overload1]$$$atEnd -->
<h3 class="fn"><a name="atEnd"></a><span class="type">bool</span> QAbstractFileEngine::<span class="name">atEnd</span> () const</h3>
<p>Returns true if the current position is at the end of the file; otherwise, returns false.</p>
<p>This function bases its behavior on calling <a href="qabstractfileengine.html#extension">extension</a>() with <a href="qabstractfileengine.html#Extension-enum">AtEndExtension</a>. If the engine does not support this extension, false is returned.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qabstractfileengine.html#extension">extension</a>(), <a href="qabstractfileengine.html#supportsExtension">supportsExtension</a>(), and <a href="qfile.html#atEnd">QFile::atEnd</a>().</p>
<!-- @@@atEnd -->
<!-- $$$beginEntryList[overload1]$$$beginEntryListQDir::FiltersconstQStringList& -->
<h3 class="fn"><a name="beginEntryList"></a><span class="type"><a href="qabstractfileengine.html#Iterator-typedef">Iterator</a></span> * QAbstractFileEngine::<span class="name">beginEntryList</span> ( <span class="type"><a href="qdir.html#Filter-enum">QDir::Filters</a></span> <i>filters</i>, const <span class="type"><a href="qstringlist.html">QStringList</a></span> &amp; <i>filterNames</i> )<tt> [virtual]</tt></h3>
<p>Returns an instance of a <a href="qabstractfileengineiterator.html">QAbstractFileEngineIterator</a> using <i>filters</i> for entry filtering and <i>filterNames</i> for name filtering. This function is called by <a href="qdiriterator.html">QDirIterator</a> to initiate directory iteration.</p>
<p><a href="qdiriterator.html">QDirIterator</a> takes ownership of the returned instance, and deletes it when it's done.</p>
<p><b>See also </b><a href="qdiriterator.html">QDirIterator</a>.</p>
<!-- @@@beginEntryList -->
<!-- $$$caseSensitive[overload1]$$$caseSensitive -->
<h3 class="fn"><a name="caseSensitive"></a><span class="type">bool</span> QAbstractFileEngine::<span class="name">caseSensitive</span> () const<tt> [virtual]</tt></h3>
<p>Should return true if the underlying file system is case-sensitive; otherwise return false.</p>
<p>This virtual function must be reimplemented by all subclasses.</p>
<!-- @@@caseSensitive -->
<!-- $$$close[overload1]$$$close -->
<h3 class="fn"><a name="close"></a><span class="type">bool</span> QAbstractFileEngine::<span class="name">close</span> ()<tt> [virtual]</tt></h3>
<p>Closes the file, returning true if successful; otherwise returns false.</p>
<p>The default implementation always returns false.</p>
<!-- @@@close -->
<!-- $$$copy[overload1]$$$copyconstQString& -->
<h3 class="fn"><a name="copy"></a><span class="type">bool</span> QAbstractFileEngine::<span class="name">copy</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>newName</i> )<tt> [virtual]</tt></h3>
<p>Copies the contents of this file to a file with the name <i>newName</i>. Returns true on success; otherwise, false is returned.</p>
<!-- @@@copy -->
<!-- $$$create[overload1]$$$createconstQString& -->
<h3 class="fn"><a name="create"></a><span class="type">QAbstractFileEngine</span> * QAbstractFileEngine::<span class="name">create</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>fileName</i> )<tt> [static]</tt></h3>
<p>Creates and returns a <a href="qabstractfileengine.html">QAbstractFileEngine</a> suitable for processing <i>fileName</i>.</p>
<p>You should not need to call this function; use <a href="qfile.html">QFile</a>, <a href="qfileinfo.html">QFileInfo</a> or <a href="qdir.html">QDir</a> directly instead.</p>
<p>If you reimplemnt this function, it should only return file engines that knows how to handle <i>fileName</i>; otherwise, it should return 0.</p>
<p><b>See also </b><a href="qabstractfileenginehandler.html">QAbstractFileEngineHandler</a>.</p>
<!-- @@@create -->
<!-- $$$entryList[overload1]$$$entryListQDir::FiltersconstQStringList& -->
<h3 class="fn"><a name="entryList"></a><span class="type"><a href="qstringlist.html">QStringList</a></span> QAbstractFileEngine::<span class="name">entryList</span> ( <span class="type"><a href="qdir.html#Filter-enum">QDir::Filters</a></span> <i>filters</i>, const <span class="type"><a href="qstringlist.html">QStringList</a></span> &amp; <i>filterNames</i> ) const<tt> [virtual]</tt></h3>
<p>Requests that a list of all the files matching the <i>filters</i> list based on the <i>filterNames</i> in the file engine's directory are returned.</p>
<p>Should return an empty list if the file engine refers to a file rather than a directory, or if the directory is unreadable or does not exist or if nothing matches the specifications.</p>
<p>This virtual function must be reimplemented by all subclasses.</p>
<p><b>See also </b><a href="qabstractfileengine.html#setFileName">setFileName</a>().</p>
<!-- @@@entryList -->
<!-- $$$error[overload1]$$$error -->
<h3 class="fn"><a name="error"></a><span class="type"><a href="qfile.html#FileError-enum">QFile::FileError</a></span> QAbstractFileEngine::<span class="name">error</span> () const</h3>
<p>Returns the <a href="qfile.html#FileError-enum">QFile::FileError</a> that resulted from the last failed operation. If <a href="qfile.html#FileError-enum">QFile::UnspecifiedError</a> is returned, <a href="qfile.html">QFile</a> will use its own idea of the error status.</p>
<p><b>See also </b><a href="qabstractfileengine.html#setError">setError</a>(), <a href="qfile.html#FileError-enum">QFile::FileError</a>, and <a href="qabstractfileengine.html#errorString">errorString</a>().</p>
<!-- @@@error -->
<!-- $$$errorString[overload1]$$$errorString -->
<h3 class="fn"><a name="errorString"></a><span class="type"><a href="qstring.html">QString</a></span> QAbstractFileEngine::<span class="name">errorString</span> () const</h3>
<p>Returns the human-readable message appropriate to the current error reported by <a href="qabstractfileengine.html#error">error</a>(). If no suitable string is available, an empty string is returned.</p>
<p><b>See also </b><a href="qabstractfileengine.html#error">error</a>().</p>
<!-- @@@errorString -->
<!-- $$$extension[overload1]$$$extensionExtensionconstExtensionOption*ExtensionReturn* -->
<h3 class="fn"><a name="extension"></a><span class="type">bool</span> QAbstractFileEngine::<span class="name">extension</span> ( <span class="type"><a href="qabstractfileengine.html#Extension-enum">Extension</a></span> <i>extension</i>, const <span class="type"><a href="qabstractfileengine-extensionoption.html">ExtensionOption</a></span> * <i>option</i> = 0, <span class="type"><a href="qabstractfileengine-extensionreturn.html">ExtensionReturn</a></span> * <i>output</i> = 0 )<tt> [virtual]</tt></h3>
<p>This virtual function can be reimplemented in a <a href="qabstractfileengine.html">QAbstractFileEngine</a> subclass to provide support for extensions. The <i>option</i> argument is provided as input to the extension, and this function can store output results in <i>output</i>.</p>
<p>The behavior of this function is determined by <i>extension</i>; see the Extension documentation for details.</p>
<p>You can call <a href="qabstractfileengine.html#supportsExtension">supportsExtension</a>() to check if an extension is supported by the file engine.</p>
<p>By default, no extensions are supported, and this function returns false.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qabstractfileengine.html#supportsExtension">supportsExtension</a>() and <a href="qabstractfileengine.html#Extension-enum">Extension</a>.</p>
<!-- @@@extension -->
<!-- $$$fileFlags[overload1]$$$fileFlagsFileFlags -->
<h3 class="fn"><a name="fileFlags"></a><span class="type"><a href="qabstractfileengine.html#FileFlag-enum">FileFlags</a></span> QAbstractFileEngine::<span class="name">fileFlags</span> ( <span class="type"><a href="qabstractfileengine.html#FileFlag-enum">FileFlags</a></span> <i>type</i> = FileInfoAll ) const<tt> [virtual]</tt></h3>
<p>This function should return the set of OR'd flags that are true for the file engine's file, and that are in the <i>type</i>'s OR'd members.</p>
<p>In your reimplementation you can use the <i>type</i> argument as an optimization hint and only return the OR'd set of members that are true and that match those in <i>type</i>; in other words you can ignore any members not mentioned in <i>type</i>, thus avoiding some potentially expensive lookups or system calls.</p>
<p>This virtual function must be reimplemented by all subclasses.</p>
<p><b>See also </b><a href="qabstractfileengine.html#setFileName">setFileName</a>().</p>
<!-- @@@fileFlags -->
<!-- $$$fileName[overload1]$$$fileNameFileName -->
<h3 class="fn"><a name="fileName"></a><span class="type"><a href="qstring.html">QString</a></span> QAbstractFileEngine::<span class="name">fileName</span> ( <span class="type"><a href="qabstractfileengine.html#FileName-enum">FileName</a></span> <i>file</i> = DefaultName ) const<tt> [virtual]</tt></h3>
<p>Return the file engine's current file name in the format specified by <i>file</i>.</p>
<p>If you don't handle some <tt>FileName</tt> possibilities, return the file name set in <a href="qabstractfileengine.html#setFileName">setFileName</a>() when an unhandled format is requested.</p>
<p>This virtual function must be reimplemented by all subclasses.</p>
<p><b>See also </b><a href="qabstractfileengine.html#setFileName">setFileName</a>() and <a href="qabstractfileengine.html#FileName-enum">FileName</a>.</p>
<!-- @@@fileName -->
<!-- $$$fileTime[overload1]$$$fileTimeFileTime -->
<h3 class="fn"><a name="fileTime"></a><span class="type"><a href="qdatetime.html">QDateTime</a></span> QAbstractFileEngine::<span class="name">fileTime</span> ( <span class="type"><a href="qabstractfileengine.html#FileTime-enum">FileTime</a></span> <i>time</i> ) const<tt> [virtual]</tt></h3>
<p>If <i>time</i> is <tt>CreationTime</tt>, return when the file was created. If <i>time</i> is <tt>ModificationTime</tt>, return when the file was most recently modified. If <i>time</i> is <tt>AccessTime</tt>, return when the file was most recently accessed (e.g&#x2e; read or written). If the time cannot be determined return QDateTime() (an invalid date time).</p>
<p>This virtual function must be reimplemented by all subclasses.</p>
<p><b>See also </b><a href="qabstractfileengine.html#setFileName">setFileName</a>(), <a href="qdatetime.html">QDateTime</a>, <a href="qdatetime.html#isValid">QDateTime::isValid</a>(), and <a href="qabstractfileengine.html#FileTime-enum">FileTime</a>.</p>
<!-- @@@fileTime -->
<!-- $$$flush[overload1]$$$flush -->
<h3 class="fn"><a name="flush"></a><span class="type">bool</span> QAbstractFileEngine::<span class="name">flush</span> ()<tt> [virtual]</tt></h3>
<p>Flushes the open file, returning true if successful; otherwise returns false.</p>
<p>The default implementation always returns false.</p>
<!-- @@@flush -->
<!-- $$$handle[overload1]$$$handle -->
<h3 class="fn"><a name="handle"></a><span class="type">int</span> QAbstractFileEngine::<span class="name">handle</span> () const<tt> [virtual]</tt></h3>
<p>Returns the native file handle for this file engine. This handle must be used with care; its value and type are platform specific, and using it will most likely lead to non-portable code.</p>
<!-- @@@handle -->
<!-- $$$isRelativePath[overload1]$$$isRelativePath -->
<h3 class="fn"><a name="isRelativePath"></a><span class="type">bool</span> QAbstractFileEngine::<span class="name">isRelativePath</span> () const<tt> [virtual]</tt></h3>
<p>Return true if the file referred to by this file engine has a relative path; otherwise return false.</p>
<p>This virtual function must be reimplemented by all subclasses.</p>
<p><b>See also </b><a href="qabstractfileengine.html#setFileName">setFileName</a>().</p>
<!-- @@@isRelativePath -->
<!-- $$$isSequential[overload1]$$$isSequential -->
<h3 class="fn"><a name="isSequential"></a><span class="type">bool</span> QAbstractFileEngine::<span class="name">isSequential</span> () const<tt> [virtual]</tt></h3>
<p>Returns true if the file is a sequential access device; returns false if the file is a direct access device.</p>
<p>Operations involving <a href="qabstractfileengine.html#size">size</a>() and seek(int) are not valid on sequential devices.</p>
<!-- @@@isSequential -->
<!-- $$$link[overload1]$$$linkconstQString& -->
<h3 class="fn"><a name="link"></a><span class="type">bool</span> QAbstractFileEngine::<span class="name">link</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>newName</i> )<tt> [virtual]</tt></h3>
<p>Creates a link from the file currently specified by <a href="qabstractfileengine.html#fileName">fileName</a>() to <i>newName</i>. What a link is depends on the underlying filesystem (be it a shortcut on Windows or a symbolic link on Unix). Returns true if successful; otherwise returns false.</p>
<!-- @@@link -->
<!-- $$$map[overload1]$$$mapqint64qint64QFile::MemoryMapFlags -->
<h3 class="fn"><a name="map"></a><span class="type"><a href="qtglobal.html#uchar-typedef">uchar</a></span> * QAbstractFileEngine::<span class="name">map</span> ( <span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> <i>offset</i>, <span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> <i>size</i>, <span class="type"><a href="qfile.html#MemoryMapFlags-enum">QFile::MemoryMapFlags</a></span> <i>flags</i> )</h3>
<p>Maps <i>size</i> bytes of the file into memory starting at <i>offset</i>. Returns a pointer to the memory if successful; otherwise returns false if, for example, an error occurs.</p>
<p>This function bases its behavior on calling <a href="qabstractfileengine.html#extension">extension</a>() with <a href="qabstractfileengine-mapextensionoption.html">MapExtensionOption</a>. If the engine does not support this extension, 0 is returned.</p>
<p><i>flags</i> is currently not used, but could be used in the future.</p>
<p>This function was introduced in Qt 4.4.</p>
<p><b>See also </b><a href="qabstractfileengine.html#unmap">unmap</a>() and <a href="qabstractfileengine.html#supportsExtension">supportsExtension</a>().</p>
<!-- @@@map -->
<!-- $$$mkdir[overload1]$$$mkdirconstQString&bool -->
<h3 class="fn"><a name="mkdir"></a><span class="type">bool</span> QAbstractFileEngine::<span class="name">mkdir</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>dirName</i>, <span class="type">bool</span> <i>createParentDirectories</i> ) const<tt> [virtual]</tt></h3>
<p>Requests that the directory <i>dirName</i> be created. If <i>createParentDirectories</i> is true, then any sub-directories in <i>dirName</i> that don't exist must be created. If <i>createParentDirectories</i> is false then any sub-directories in <i>dirName</i> must already exist for the function to succeed. If the operation succeeds return true; otherwise return false.</p>
<p>This virtual function must be reimplemented by all subclasses.</p>
<p><b>See also </b><a href="qabstractfileengine.html#setFileName">setFileName</a>(), <a href="qabstractfileengine.html#rmdir">rmdir</a>(), and <a href="qabstractfileengine.html#isRelativePath">isRelativePath</a>().</p>
<!-- @@@mkdir -->
<!-- $$$open[overload1]$$$openQIODevice::OpenMode -->
<h3 class="fn"><a name="open"></a><span class="type">bool</span> QAbstractFileEngine::<span class="name">open</span> ( <span class="type"><a href="qiodevice.html#OpenModeFlag-enum">QIODevice::OpenMode</a></span> <i>mode</i> )<tt> [virtual]</tt></h3>
<p>Opens the file in the specified <i>mode</i>. Returns true if the file was successfully opened; otherwise returns false.</p>
<p>The <i>mode</i> is an OR combination of <a href="qiodevice.html#OpenModeFlag-enum">QIODevice::OpenMode</a> and QIODevice::HandlingMode values.</p>
<!-- @@@open -->
<!-- $$$owner[overload1]$$$ownerFileOwner -->
<h3 class="fn"><a name="owner"></a><span class="type"><a href="qstring.html">QString</a></span> QAbstractFileEngine::<span class="name">owner</span> ( <span class="type"><a href="qabstractfileengine.html#FileOwner-enum">FileOwner</a></span> <i>owner</i> ) const<tt> [virtual]</tt></h3>
<p>If <i>owner</i> is <tt>OwnerUser</tt> return the name of the user who owns the file. If <i>owner</i> is <tt>OwnerGroup</tt> return the name of the group that own the file. If you can't determine the owner return QString().</p>
<p>This virtual function must be reimplemented by all subclasses.</p>
<p><b>See also </b><a href="qabstractfileengine.html#ownerId">ownerId</a>(), <a href="qabstractfileengine.html#setFileName">setFileName</a>(), and <a href="qabstractfileengine.html#FileOwner-enum">FileOwner</a>.</p>
<!-- @@@owner -->
<!-- $$$ownerId[overload1]$$$ownerIdFileOwner -->
<h3 class="fn"><a name="ownerId"></a><span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> QAbstractFileEngine::<span class="name">ownerId</span> ( <span class="type"><a href="qabstractfileengine.html#FileOwner-enum">FileOwner</a></span> <i>owner</i> ) const<tt> [virtual]</tt></h3>
<p>If <i>owner</i> is <tt>OwnerUser</tt> return the ID of the user who owns the file. If <i>owner</i> is <tt>OwnerGroup</tt> return the ID of the group that own the file. If you can't determine the owner return -2.</p>
<p>This virtual function must be reimplemented by all subclasses.</p>
<p><b>See also </b><a href="qabstractfileengine.html#owner">owner</a>(), <a href="qabstractfileengine.html#setFileName">setFileName</a>(), and <a href="qabstractfileengine.html#FileOwner-enum">FileOwner</a>.</p>
<!-- @@@ownerId -->
<!-- $$$pos[overload1]$$$pos -->
<h3 class="fn"><a name="pos"></a><span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> QAbstractFileEngine::<span class="name">pos</span> () const<tt> [virtual]</tt></h3>
<p>Returns the current file position.</p>
<p>This is the position of the data read/write head of the file.</p>
<!-- @@@pos -->
<!-- $$$read[overload1]$$$readchar*qint64 -->
<h3 class="fn"><a name="read"></a><span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> QAbstractFileEngine::<span class="name">read</span> ( <span class="type">char</span> * <i>data</i>, <span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> <i>maxlen</i> )<tt> [virtual]</tt></h3>
<p>Reads a number of characters from the file into <i>data</i>. At most <i>maxlen</i> characters will be read.</p>
<p>Returns -1 if a fatal error occurs, or 0 if there are no bytes to read.</p>
<!-- @@@read -->
<!-- $$$readLine[overload1]$$$readLinechar*qint64 -->
<h3 class="fn"><a name="readLine"></a><span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> QAbstractFileEngine::<span class="name">readLine</span> ( <span class="type">char</span> * <i>data</i>, <span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> <i>maxlen</i> )<tt> [virtual]</tt></h3>
<p>This function reads one line, terminated by a '\n' character, from the file info <i>data</i>. At most <i>maxlen</i> characters will be read. The end-of-line character is included.</p>
<!-- @@@readLine -->
<!-- $$$remove[overload1]$$$remove -->
<h3 class="fn"><a name="remove"></a><span class="type">bool</span> QAbstractFileEngine::<span class="name">remove</span> ()<tt> [virtual]</tt></h3>
<p>Requests that the file is deleted from the file system. If the operation succeeds return true; otherwise return false.</p>
<p>This virtual function must be reimplemented by all subclasses.</p>
<p><b>See also </b><a href="qabstractfileengine.html#setFileName">setFileName</a>() and <a href="qabstractfileengine.html#rmdir">rmdir</a>().</p>
<!-- @@@remove -->
<!-- $$$rename[overload1]$$$renameconstQString& -->
<h3 class="fn"><a name="rename"></a><span class="type">bool</span> QAbstractFileEngine::<span class="name">rename</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>newName</i> )<tt> [virtual]</tt></h3>
<p>Requests that the file be renamed to <i>newName</i> in the file system. If the operation succeeds return true; otherwise return false.</p>
<p>This virtual function must be reimplemented by all subclasses.</p>
<p><b>See also </b><a href="qabstractfileengine.html#setFileName">setFileName</a>().</p>
<!-- @@@rename -->
<!-- $$$rmdir[overload1]$$$rmdirconstQString&bool -->
<h3 class="fn"><a name="rmdir"></a><span class="type">bool</span> QAbstractFileEngine::<span class="name">rmdir</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>dirName</i>, <span class="type">bool</span> <i>recurseParentDirectories</i> ) const<tt> [virtual]</tt></h3>
<p>Requests that the directory <i>dirName</i> is deleted from the file system. When <i>recurseParentDirectories</i> is true, then any empty parent-directories in <i>dirName</i> must also be deleted. If <i>recurseParentDirectories</i> is false, only the <i>dirName</i> leaf-node should be deleted. In most file systems a directory cannot be deleted using this function if it is non-empty. If the operation succeeds return true; otherwise return false.</p>
<p>This virtual function must be reimplemented by all subclasses.</p>
<p><b>See also </b><a href="qabstractfileengine.html#setFileName">setFileName</a>(), <a href="qabstractfileengine.html#remove">remove</a>(), <a href="qabstractfileengine.html#mkdir">mkdir</a>(), and <a href="qabstractfileengine.html#isRelativePath">isRelativePath</a>().</p>
<!-- @@@rmdir -->
<!-- $$$seek[overload1]$$$seekqint64 -->
<h3 class="fn"><a name="seek"></a><span class="type">bool</span> QAbstractFileEngine::<span class="name">seek</span> ( <span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> <i>offset</i> )<tt> [virtual]</tt></h3>
<p>Sets the file position to the given <i>offset</i>. Returns true if the position was successfully set; otherwise returns false.</p>
<p>The offset is from the beginning of the file, unless the file is sequential.</p>
<p><b>See also </b><a href="qabstractfileengine.html#isSequential">isSequential</a>().</p>
<!-- @@@seek -->
<!-- $$$setError[overload1]$$$setErrorQFile::FileErrorconstQString& -->
<h3 class="fn"><a name="setError"></a><span class="type">void</span> QAbstractFileEngine::<span class="name">setError</span> ( <span class="type"><a href="qfile.html#FileError-enum">QFile::FileError</a></span> <i>error</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>errorString</i> )<tt> [protected]</tt></h3>
<p>Sets the error type to <i>error</i>, and the error string to <i>errorString</i>. Call this function to set the error values returned by the higher-level classes.</p>
<p><b>See also </b><a href="qfile.html#error">QFile::error</a>(), <a href="qiodevice.html#errorString">QIODevice::errorString</a>(), and <a href="qiodevice.html#setErrorString">QIODevice::setErrorString</a>().</p>
<!-- @@@setError -->
<!-- $$$setFileName[overload1]$$$setFileNameconstQString& -->
<h3 class="fn"><a name="setFileName"></a><span class="type">void</span> QAbstractFileEngine::<span class="name">setFileName</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>file</i> )<tt> [virtual]</tt></h3>
<p>Sets the file engine's file name to <i>file</i>. This file name is the file that the rest of the virtual functions will operate on.</p>
<p>This virtual function must be reimplemented by all subclasses.</p>
<p><b>See also </b><a href="qabstractfileengine.html#fileName">fileName</a>() and <a href="qabstractfileengine.html#rename">rename</a>().</p>
<!-- @@@setFileName -->
<!-- $$$setPermissions[overload1]$$$setPermissionsuint -->
<h3 class="fn"><a name="setPermissions"></a><span class="type">bool</span> QAbstractFileEngine::<span class="name">setPermissions</span> ( <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>perms</i> )<tt> [virtual]</tt></h3>
<p>Requests that the file's permissions be set to <i>perms</i>. The argument perms will be set to the OR-ed together combination of QAbstractFileEngine::FileInfo, with only the <a href="qabstractfileengine.html#FileFlag-enum">QAbstractFileEngine::PermsMask</a> being honored. If the operations succceeds return true; otherwise return false;</p>
<p>This virtual function must be reimplemented by all subclasses.</p>
<p><b>See also </b><a href="qabstractfileengine.html#size">size</a>().</p>
<!-- @@@setPermissions -->
<!-- $$$setSize[overload1]$$$setSizeqint64 -->
<h3 class="fn"><a name="setSize"></a><span class="type">bool</span> QAbstractFileEngine::<span class="name">setSize</span> ( <span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> <i>size</i> )<tt> [virtual]</tt></h3>
<p>Requests that the file be set to size <i>size</i>. If <i>size</i> is larger than the current file then it is filled with 0's, if smaller it is simply truncated. If the operations succceeds return true; otherwise return false;</p>
<p>This virtual function must be reimplemented by all subclasses.</p>
<p><b>See also </b><a href="qabstractfileengine.html#size">size</a>().</p>
<!-- @@@setSize -->
<!-- $$$size[overload1]$$$size -->
<h3 class="fn"><a name="size"></a><span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> QAbstractFileEngine::<span class="name">size</span> () const<tt> [virtual]</tt></h3>
<p>Returns the size of the file.</p>
<p><b>See also </b><a href="qabstractfileengine.html#setSize">setSize</a>().</p>
<!-- @@@size -->
<!-- $$$supportsExtension[overload1]$$$supportsExtensionExtension -->
<h3 class="fn"><a name="supportsExtension"></a><span class="type">bool</span> QAbstractFileEngine::<span class="name">supportsExtension</span> ( <span class="type"><a href="qabstractfileengine.html#Extension-enum">Extension</a></span> <i>extension</i> ) const<tt> [virtual]</tt></h3>
<p>This virtual function returns true if the file engine supports <i>extension</i>; otherwise, false is returned. By default, no extensions are supported.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qabstractfileengine.html#extension">extension</a>().</p>
<!-- @@@supportsExtension -->
<!-- $$$unmap[overload1]$$$unmapuchar* -->
<h3 class="fn"><a name="unmap"></a><span class="type">bool</span> QAbstractFileEngine::<span class="name">unmap</span> ( <span class="type"><a href="qtglobal.html#uchar-typedef">uchar</a></span> * <i>address</i> )</h3>
<p>Unmaps the memory <i>address</i>. Returns true if the unmap succeeds; otherwise returns false.</p>
<p>This function bases its behavior on calling <a href="qabstractfileengine.html#extension">extension</a>() with <a href="qabstractfileengine-unmapextensionoption.html">UnMapExtensionOption</a>. If the engine does not support this extension, false is returned.</p>
<p>This function was introduced in Qt 4.4.</p>
<p><b>See also </b><a href="qabstractfileengine.html#map">map</a>() and <a href="qabstractfileengine.html#supportsExtension">supportsExtension</a>().</p>
<!-- @@@unmap -->
<!-- $$$write[overload1]$$$writeconstchar*qint64 -->
<h3 class="fn"><a name="write"></a><span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> QAbstractFileEngine::<span class="name">write</span> ( const <span class="type">char</span> * <i>data</i>, <span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> <i>len</i> )<tt> [virtual]</tt></h3>
<p>Writes <i>len</i> bytes from <i>data</i> to the file. Returns the number of characters written on success; otherwise returns -1.</p>
<!-- @@@write -->
</div>
<div class="relnonmem">
<h2>Related Non-Members</h2>
<!-- $$$Iterator -->
<h3 class="fn"><a name="Iterator-typedef"></a>typedef QAbstractFileEngine::<span class="name">Iterator</span></h3>
<p>Synonym for <a href="qabstractfileengineiterator.html">QAbstractFileEngineIterator</a>.</p>
<p>This typedef was introduced in Qt 4.3.</p>
<!-- @@@Iterator -->
</div>
      </div>
    </div>
    </div> 
    <div class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2013 Digia Plc and/or its
      subsidiaries. Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Digia, Qt and their respective logos are trademarks of Digia Plc 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
  </div>

  <script src="scripts/functions.js" type="text/javascript"></script>
</body>
</html>