PythonQt
|
#include <PythonQtImportFileInterface.h>
Public Member Functions | |
virtual | ~PythonQtImportFileInterface () |
PythonQtImportFileInterface () | |
virtual QByteArray | readFileAsBytes (const QString &filename)=0 |
read the given file as byte array, without doing any linefeed translations | |
virtual QByteArray | readSourceFile (const QString &filename, bool &ok)=0 |
virtual bool | exists (const QString &filename)=0 |
returns if the file exists | |
virtual bool | isEggArchive (const QString &filename)=0 |
virtual QDateTime | lastModifiedDate (const QString &filename)=0 |
get the last modified data of a file | |
virtual bool | ignoreUpdatedPythonSourceFiles () |
virtual void | importedModule (const QString &) |
Defines an abstract interface to file access for the Python import statement. see PythonQt::setImporter()
Definition at line 52 of file PythonQtImportFileInterface.h.
|
inlinevirtual |
Definition at line 56 of file PythonQtImportFileInterface.h.
|
inline |
Definition at line 57 of file PythonQtImportFileInterface.h.
returns if the file exists
Implemented in PythonQtQFileImporter.
indicates that *.py files which are newer than their corresponding *.pyc files are ignored
Definition at line 78 of file PythonQtImportFileInterface.h.
called by PythonQt after successful import to allow recording of imports
Definition at line 82 of file PythonQtImportFileInterface.h.
returns true if the given file is an egg archive (e.g. zip). If the egg is a directory then false is returned.
Implemented in PythonQtQFileImporter.
|
pure virtual |
get the last modified data of a file
Implemented in PythonQtQFileImporter.
|
pure virtual |
read the given file as byte array, without doing any linefeed translations
Implemented in PythonQtQFileImporter.
|
pure 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
Implemented in PythonQtQFileImporter.