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