PythonQt
Public Member Functions | List of all members
PythonQtQFileImporter Class Reference

default importer implementation using QFile to load python code More...

#include <PythonQtQFileImporter.h>

Inheritance diagram for PythonQtQFileImporter:
PythonQtImportFileInterface

Public Member Functions

 PythonQtQFileImporter ()
 
 ~PythonQtQFileImporter () override
 
QByteArray readFileAsBytes (const QString &filename) override
 read the given file as byte array, without doing any linefeed translations More...
 
QByteArray readSourceFile (const QString &filename, bool &ok) override
 
bool exists (const QString &filename) override
 returns if the file exists More...
 
bool isEggArchive (const QString &filename) override
 
QDateTime lastModifiedDate (const QString &filename) override
 get the last modified data of a file More...
 
- Public Member Functions inherited from PythonQtImportFileInterface
virtual ~PythonQtImportFileInterface ()
 
 PythonQtImportFileInterface ()
 
virtual bool ignoreUpdatedPythonSourceFiles ()
 
virtual void importedModule (const QString &)
 

Detailed Description

default importer implementation using QFile to load python code

Definition at line 49 of file PythonQtQFileImporter.h.

Constructor & Destructor Documentation

◆ PythonQtQFileImporter()

PythonQtQFileImporter::PythonQtQFileImporter ( )

◆ ~PythonQtQFileImporter()

PythonQtQFileImporter::~PythonQtQFileImporter ( )
override

Member Function Documentation

◆ exists()

bool PythonQtQFileImporter::exists ( const QString &  filename)
overridevirtual

returns if the file exists

Implements PythonQtImportFileInterface.

◆ isEggArchive()

bool PythonQtQFileImporter::isEggArchive ( const QString &  filename)
overridevirtual

returns true if the given file is an egg archive (e.g. zip). If the egg is a directory then false is returned.

Implements PythonQtImportFileInterface.

◆ lastModifiedDate()

QDateTime PythonQtQFileImporter::lastModifiedDate ( const QString &  filename)
overridevirtual

get the last modified data of a file

Implements PythonQtImportFileInterface.

◆ readFileAsBytes()

QByteArray PythonQtQFileImporter::readFileAsBytes ( const QString &  filename)
overridevirtual

read the given file as byte array, without doing any linefeed translations

Implements PythonQtImportFileInterface.

◆ readSourceFile()

QByteArray PythonQtQFileImporter::readSourceFile ( const QString &  filename,
bool &  ok 
)
overridevirtual

read a source file, expects a readable Python text file with translated line feeds. If the file can not be load OR it can not be verified, ok is set to false

Implements PythonQtImportFileInterface.


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