Home · Overviews · Examples 

QAbstractFileEngine Class Reference
[com.trolltech.qt.core module]

The QAbstractFileEngine class provides an abstraction for accessing the filesystem. More...

Inherited by QFSFileEngine.


Detailed Description

The QAbstractFileEngine class provides an abstraction for accessing the filesystem.

The QDir, QFile, and QFileInfo classes all make use of a QAbstractFileEngine internally. If you create your own QAbstractFileEngine subclass (and register it with Qt by creating a QAbstractFileEngineHandler subclass), your file engine will be used when the path is one that your file engine handles.

A QAbstractFileEngine refers to one file or one directory. If the referent is a file, the setFileName, rename, and remove functions are applicable. If the referent is a directory the mkdir, rmdir, and entryList functions are applicable. In all cases the caseSensitive, isRelativePath, fileFlags, ownerId, owner, and fileTime functions are applicable.

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.

See also QAbstractFileEngineHandler.


Copyright © 2007 Trolltech Trademarks
Qt Jambi 4.3.2_01