Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AndroidContentFileEngineHandler Class Reference

#include <androidcontentfileengine.h>

+ Inheritance diagram for AndroidContentFileEngineHandler:
+ Collaboration diagram for AndroidContentFileEngineHandler:

Public Member Functions

 AndroidContentFileEngineHandler ()
 
 ~AndroidContentFileEngineHandler ()
 
QAbstractFileEnginecreate (const QString &fileName) const override
 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 44 of file androidcontentfileengine.h.

Constructor & Destructor Documentation

◆ AndroidContentFileEngineHandler()

AndroidContentFileEngineHandler::AndroidContentFileEngineHandler ( )
default

◆ ~AndroidContentFileEngineHandler()

AndroidContentFileEngineHandler::~AndroidContentFileEngineHandler ( )
default

Member Function Documentation

◆ create()

QAbstractFileEngine * AndroidContentFileEngineHandler::create ( const QString fileName) const
overridevirtual

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 265 of file androidcontentfileengine.cpp.

References fileName.


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