Static Public Member Functions | Static Protected Attributes
ImportHelper Class Reference

#include <importhelper.h>

List of all members.

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

Member Function Documentation

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.

Parameters:
[in]pfilenameThe name of the file that has just been imported.
[in]successAn 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]errmsgAny error message generated during file handling.
[in]saveToErrorFileIf this is not an empty string, the string is saved to an error file using the configuration for handling error files.
Returns:
true if the file was handled successfully, false if there was an error moving or deleting the file.
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]

Member Data Documentation

CSVImpPluginInterface * ImportHelper::_csvimpplugin = 0 [static, protected]

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

Generated on Mon Jan 23 2012 12:22:34 xTuple ERP Programmer Reference, Version 3.8.0 doxygen 1.7.6.1