#include <importhelper.h>
|
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. More...
|
|
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) |
|
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] | 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. |
- 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 |
CSVImpPluginInterface * ImportHelper::_csvimpplugin = 0 |
|
staticprotected |
The documentation for this class was generated from the following files: