SourceForge.net Logo
PythonQt
Public Member Functions | List of all members
PythonQtImportFileInterface Class Referenceabstract

#include <PythonQtImportFileInterface.h>

Inheritance diagram for PythonQtImportFileInterface:
PythonQtQFileImporter

Public Member Functions

virtual ~PythonQtImportFileInterface ()
 
virtual QByteArray readFileAsBytes (const QString &filename)=0
 read the given file as byte array, without doing any linefeed translations More...
 
virtual QByteArray readSourceFile (const QString &filename, bool &ok)=0
 
virtual bool exists (const QString &filename)=0
 returns if the file exists More...
 
virtual QDateTime lastModifiedDate (const QString &filename)=0
 get the last modified data of a file More...
 
virtual bool ignoreUpdatedPythonSourceFiles ()
 
virtual void importedModule (const QString &)
 

Detailed Description

Defines an abstract interface to file access for the Python import statement. see PythonQt::setImporter()

Definition at line 51 of file PythonQtImportFileInterface.h.

Constructor & Destructor Documentation

virtual PythonQtImportFileInterface::~PythonQtImportFileInterface ( )
inlinevirtual

Definition at line 55 of file PythonQtImportFileInterface.h.

55 {}

Member Function Documentation

virtual bool PythonQtImportFileInterface::exists ( const QString &  filename)
pure virtual

returns if the file exists

Implemented in PythonQtQFileImporter.

virtual bool PythonQtImportFileInterface::ignoreUpdatedPythonSourceFiles ( )
inlinevirtual

indicates that *.py files which are newer than their corresponding *.pyc files are ignored

Definition at line 72 of file PythonQtImportFileInterface.h.

72 { return false; }
virtual void PythonQtImportFileInterface::importedModule ( const QString &  )
inlinevirtual

called by PythonQt after successful import to allow recording of imports

Definition at line 76 of file PythonQtImportFileInterface.h.

76 {};
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.


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