PythonQt
|
default importer implementation using QFile to load python code More...
#include <PythonQtQFileImporter.h>
Public Member Functions | |
PythonQtQFileImporter () | |
~PythonQtQFileImporter () | |
QByteArray | readFileAsBytes (const QString &filename) |
read the given file as byte array, without doing any linefeed translations More... | |
QByteArray | readSourceFile (const QString &filename, bool &ok) |
bool | exists (const QString &filename) |
returns if the file exists More... | |
bool | isEggArchive (const QString &filename) |
QDateTime | lastModifiedDate (const QString &filename) |
get the last modified data of a file More... | |
![]() | |
virtual | ~PythonQtImportFileInterface () |
virtual bool | ignoreUpdatedPythonSourceFiles () |
virtual void | importedModule (const QString &) |
default importer implementation using QFile to load python code
Definition at line 49 of file PythonQtQFileImporter.h.
PythonQtQFileImporter::PythonQtQFileImporter | ( | ) |
PythonQtQFileImporter::~PythonQtQFileImporter | ( | ) |
|
virtual |
returns if the file exists
Implements PythonQtImportFileInterface.
|
virtual |
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.
|
virtual |
get the last modified data of a file
Implements PythonQtImportFileInterface.
|
virtual |
read the given file as byte array, without doing any linefeed translations
Implements PythonQtImportFileInterface.
|
virtual |
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.