#include <PythonQtImportFileInterface.h>
Public Member Functions | |
virtual | ~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 QDateTime | lastModifiedDate (const QString &filename)=0 |
get the last modified data of a file |
Defines an abstract interface to file access for the Python import statement. see PythonQt::setImporter()
Definition at line 51 of file PythonQtImportFileInterface.h.
virtual PythonQtImportFileInterface::~PythonQtImportFileInterface | ( | ) | [inline, virtual] |
Definition at line 55 of file PythonQtImportFileInterface.h.
{}
virtual bool PythonQtImportFileInterface::exists | ( | const QString & | filename | ) | [pure virtual] |
returns if the file exists
Implemented in PythonQtQFileImporter.
virtual QDateTime PythonQtImportFileInterface::lastModifiedDate | ( | const QString & | filename | ) | [pure virtual] |
get the last modified data of a file
Implemented in PythonQtQFileImporter.
virtual QByteArray PythonQtImportFileInterface::readFileAsBytes | ( | const QString & | filename | ) | [pure virtual] |
read the given file as byte array, without doing any linefeed translations
Implemented in PythonQtQFileImporter.
virtual QByteArray PythonQtImportFileInterface::readSourceFile | ( | const QString & | filename, | |
bool & | ok | |||
) | [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.