#include <importhelper.h>
Static Public Member Functions | |
static CSVImpPluginInterface * | getCSVImpPlugin (QObject *parent=0) |
static bool | handleFilePostImport (const QString &pFileName, bool success, QString &errmsg, const QString &saveToErrorFile=QString::null) |
Obey the import file configuration and remove or rename the file that has just been imported. | |
static bool | importCSV (const QString &pFileName, QString &errmsg) |
static bool | importXML (const QString &pFileName, QString &errmsg, QString &warnmsg) |
static bool | openDomDocument (const QString &pFileName, QDomDocument &pDoc, QString &errmsg) |
Static Protected Attributes | |
static CSVImpPluginInterface * | _csvimpplugin = 0 |
CSVImpPluginInterface * ImportHelper::getCSVImpPlugin | ( | QObject * | parent = 0 | ) | [static] |
bool ImportHelper::handleFilePostImport | ( | const QString & | pfilename, |
bool | success, | ||
QString & | errmsg, | ||
const QString & | saveToErrorFile = QString::null |
||
) | [static] |
Obey the import file configuration and remove or rename the file that has just been imported.
[in] | pfilename | The name of the file that has just been imported. |
[in] | success | An indication of whether the import succeeded or not. This controls whether the import file pfilename will be handled using the configuration for successful imports or failed imports. |
[out] | errmsg | Any error message generated during file handling. |
[in] | saveToErrorFile | If this is not an empty string, the string is saved to an error file using the configuration for handling error files. |
bool ImportHelper::importCSV | ( | const QString & | pFileName, |
QString & | errmsg | ||
) | [static] |
bool ImportHelper::importXML | ( | const QString & | pFileName, |
QString & | errmsg, | ||
QString & | warnmsg | ||
) | [static] |
bool ImportHelper::openDomDocument | ( | const QString & | pFileName, |
QDomDocument & | pDoc, | ||
QString & | errmsg | ||
) | [static] |
CSVImpPluginInterface * ImportHelper::_csvimpplugin = 0 [static, protected] |
Generated on Mon Jan 23 2012 12:22:34 | xTuple ERP Programmer Reference, Version 3.8.0 | 1.7.6.1 |