Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QIOSFileEngineFactory Class Reference

#include <qiosfileenginefactory.h>

+ Inheritance diagram for QIOSFileEngineFactory:
+ Collaboration diagram for QIOSFileEngineFactory:

Public Member Functions

QAbstractFileEnginecreate (const QString &fileName) const
 Creates a file engine for file fileName.
 
- Public Member Functions inherited from QAbstractFileEngineHandler
 QAbstractFileEngineHandler ()
 Constructs a file handler and registers it with Qt.
 
virtual ~QAbstractFileEngineHandler ()
 Destroys the file handler.
 
virtual QAbstractFileEnginecreate (const QString &fileName) const =0
 Creates a file engine for file fileName.
 

Detailed Description

Definition at line 13 of file qiosfileenginefactory.h.

Member Function Documentation

◆ create()

QAbstractFileEngine * QIOSFileEngineFactory::create ( const QString fileName) const
inlinevirtual

Creates a file engine for file fileName.

Returns 0 if this file handler cannot handle fileName.

Example:

{
// ZipEngineHandler returns a ZipEngine for all .zip files
return fileName.toLower().endsWith(".zip") ? new ZipEngine(fileName) : 0;
}
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
QAbstractFileEngine * create(const QString &fileName) const override
[0]
See also
QAbstractFileEngine::create()

Implements QAbstractFileEngineHandler.

Definition at line 16 of file qiosfileenginefactory.h.

References fileName, and Q_UNUSED.


The documentation for this class was generated from the following file: