List of all members | Properties | Public Member Functions | Static Public Member Functions | Protected Member Functions
ExportHelper Class Reference

#include <exporthelper.h>

Inheritance diagram for ExportHelper:
QObject

Properties

 objectName
 

Public Member Functions

bool blockSignals (bool block)
 
const QObjectList & children () const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const
 
bool disconnect (const QObject *receiver, const char *method) const
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArraydynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const
 
QList< T > findChildren (const QRegExp &regExp, Qt::FindChildOptions options) const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const
 
bool inherits (const char *className) const
 
void installEventFilter (QObject *filterObj)
 
bool isWidgetType () const
 
bool isWindowType () const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const
 
QVariant property (const char *name) const
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval, Qt::TimerType timerType)
 
QThreadthread () const
 

Static Public Member Functions

QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
static bool exportHTML (const int qryheadid, ParameterList &params, QString &filename, QString &errmsg)
 
static bool exportXML (const int qryheadid, ParameterList &params, QString &filename, QString &errmsg, const int xsltmapid=-1)
 Export the results of a query set to an XML file. More...
 
static QString generateDelimited (const int qryheadid, ParameterList &params, QString &errmsg)
 
static QString generateDelimited (QString qtext, ParameterList &params, QString &errmsg)
 
static QString generateHTML (const int qryheadid, ParameterList &params, QString &errmsg)
 
static QString generateHTML (QString qtext, ParameterList &params, QString &errmsg)
 
static QString generateXML (const int qryheadid, ParameterList &params, QString &errmsg, int xsltmapid=-1)
 
static QString generateXML (QString qtext, QString tableElemName, ParameterList &params, QString &errmsg, int xsltmapid=-1)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
static bool XSLTConvertFile (QString inputfilename, QString outputfilename, QString xsltfilename, QString &errmsg)
 
static bool XSLTConvertFile (QString inputfilename, QString outputfilename, int xsltmapid, QString &errmsg)
 
static QString XSLTConvertString (QString input, int xsltmapid, QString &errmsg)
 

Protected Member Functions

virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const
 
int receivers (const char *signal) const
 
QObjectsender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 

Member Function Documentation

bool ExportHelper::exportHTML ( const int  qryheadid,
ParameterList &  params,
QString filename,
QString errmsg 
)
static
bool ExportHelper::exportXML ( const int  qryheadid,
ParameterList &  params,
QString filename,
QString errmsg,
const int  xsltmapid = -1 
)
static

Export the results of a query set to an XML file.

Run all of the queries in the given Query Set in the given order and write the results to an XML file. The XML file is constructed very simply:

<tablename>
  <column1name>columnvalue</column1name>
  <column2name>columnvalue</column2name>
  ...
</tablename>

If the caller passes in an XSLT map id, the simple XML will be processed using the export XSLT.

Parameters
qryheadidThe internal ID of the query set (qryhead record) to run.
paramsA list of parameters and values to use when building SQL statements from MetaSQL statements.
[in,out]filenameThe name of the file to create. If passed in empty, a file named after the query set will be created in the current directory (context-dependent) and this filename will be passed back out.
[out]errmsgAn message describing why the processing failed if there was a problem.
xsltmapidAn optional parameter. If this is set, it should be the internal ID of an xsltmap record. The xsltmap_export field of this record and the XSLTDefaultDir will be used to find the XSLT script to run on the generated XML.
QString ExportHelper::generateDelimited ( const int  qryheadid,
ParameterList &  params,
QString errmsg 
)
static
QString ExportHelper::generateDelimited ( QString  qtext,
ParameterList &  params,
QString errmsg 
)
static
QString ExportHelper::generateHTML ( const int  qryheadid,
ParameterList &  params,
QString errmsg 
)
static
QString ExportHelper::generateHTML ( QString  qtext,
ParameterList &  params,
QString errmsg 
)
static
QString ExportHelper::generateXML ( const int  qryheadid,
ParameterList &  params,
QString errmsg,
int  xsltmapid = -1 
)
static
QString ExportHelper::generateXML ( QString  qtext,
QString  tableElemName,
ParameterList &  params,
QString errmsg,
int  xsltmapid = -1 
)
static
bool ExportHelper::XSLTConvertFile ( QString  inputfilename,
QString  outputfilename,
QString  xsltfilename,
QString errmsg 
)
static
bool ExportHelper::XSLTConvertFile ( QString  inputfilename,
QString  outputfilename,
int  xsltmapid,
QString errmsg 
)
static
QString ExportHelper::XSLTConvertString ( QString  input,
int  xsltmapid,
QString errmsg 
)
static

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

Generated on Fri Aug 11 2017 xTuple ERP Programmer Reference, Version 4.11.0 doxygen 1.8.10