|  | Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |

# QFSFileEngine Class Reference
[QtCore module]

The QFSFileEngine class implements Qt's default file engine. More...

     #include <QFSFileEngine>

Inherits QAbstractFileEngine.

This class was introduced in Qt 4.1.

- List of all members, including inherited members

### Public Types

- typedef Iterator

### Public Functions

- QFSFileEngine ()
- QFSFileEngine ( const QString & file )
- ~QFSFileEngine ()
- virtual bool caseSensitive () const
- virtual bool copy ( const QString & newName )
- virtual QString fileName ( FileName file ) const
- virtual QDateTime fileTime ( FileTime time ) const
- virtual bool isRelativePath () const
- virtual bool link ( const QString & newName )
- virtual bool mkdir ( const QString & dirName, bool createParentDirectories ) const
- bool open ( QIODevice::OpenMode openMode, FILE * fh )
- bool open ( QIODevice::OpenMode openMode, int fd )
- virtual QString owner ( FileOwner ) const
- virtual uint ownerId ( FileOwner ) const
- virtual bool remove ()
- virtual bool rename ( const QString & newName )
- virtual bool rmdir ( const QString & dirName, bool recurseParentDirectories ) const
- virtual bool setPermissions ( uint perms )
- virtual bool setSize ( qint64 size )

- 36 public functions inherited from QAbstractFileEngine

### Static Public Members

- QString currentPath ( const QString & path = QString() )
- QFileInfoList drives ()
- QString homePath ()
- QString rootPath ()
- bool setCurrentPath ( const QString & path )
- QString tempPath ()

- 1 static public member inherited from QAbstractFileEngine

### Additional Inherited Members

- 1 protected function inherited from QAbstractFileEngine

## Detailed Description

The QFSFileEngine class implements Qt's default file engine.

This class is part of the file engine framework in Qt. If you only want to access files or directories, use QFile, QFileInfo or QDir instead.

QFSFileEngine is the default file engine for accessing regular files. It is provided for convenience; by subclassing this class, you can alter its behavior slightly, without having to write a complete QAbstractFileEngine subclass. To install your custom file engine, you must also subclass QAbstractFileEngineHandler and create an instance of your handler.

It can also be useful to create a QFSFileEngine object directly if you need to use the local file system inside QAbstractFileEngine::create(), in order to avoid recursion (as higher-level classes tend to call QAbstractFileEngine::create()).

## Member Function Documentation

### QFSFileEngine::QFSFileEngine ()

Constructs a QFSFileEngine.

### QFSFileEngine::QFSFileEngine ( const QString & file )

Constructs a QFSFileEngine for the file name file.

### QFSFileEngine::~QFSFileEngine ()

Destructs the QFSFileEngine.

### bool QFSFileEngine::caseSensitive () const `[virtual]`

### bool QFSFileEngine::copy ( const QString & newName ) `[virtual]`

### QString QFSFileEngine::currentPath ( const QString & path = QString() ) `[static]`

See also setCurrentPath().

### QFileInfoList QFSFileEngine::drives () `[static]`

### QString QFSFileEngine::fileName ( FileName file ) const `[virtual]`

### QDateTime QFSFileEngine::fileTime ( FileTime time ) const `[virtual]`

### QString QFSFileEngine::homePath () `[static]`

### bool QFSFileEngine::isRelativePath () const `[virtual]`

### bool QFSFileEngine::link ( const QString & newName ) `[virtual]`

### bool QFSFileEngine::mkdir ( const QString & dirName, bool createParentDirectories ) const `[virtual]`

### bool QFSFileEngine::open ( QIODevice::OpenMode openMode, FILE * fh )

Opens the file handle fh in openMode mode. Returns true on success; otherwise returns false.

### bool QFSFileEngine::open ( QIODevice::OpenMode openMode, int fd )

This is an overloaded member function, provided for convenience.

Opens the file descriptor fd in openMode mode. Returns true on success; otherwise returns false.

### QString QFSFileEngine::owner ( FileOwner ) const `[virtual]`

### uint QFSFileEngine::ownerId ( FileOwner ) const `[virtual]`

### bool QFSFileEngine::remove () `[virtual]`

### bool QFSFileEngine::rename ( const QString & newName ) `[virtual]`

### bool QFSFileEngine::rmdir ( const QString & dirName, bool recurseParentDirectories ) const `[virtual]`

### QString QFSFileEngine::rootPath () `[static]`

### bool QFSFileEngine::setCurrentPath ( const QString & path ) `[static]`

See also currentPath().

### bool QFSFileEngine::setPermissions ( uint perms ) `[virtual]`

### bool QFSFileEngine::setSize ( qint64 size ) `[virtual]`

### QString QFSFileEngine::tempPath () `[static]`