Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSReportEngine_p.h 00003 ------------------- 00004 begin : 02/11/2011 00005 copyright : (C) 2003-2011 by InfoSiAL S.L. 00006 email : mail@infosial.com 00007 ***************************************************************************/ 00008 /*************************************************************************** 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU General Public License as published by * 00011 * the Free Software Foundation; version 2 of the License. * 00012 ***************************************************************************/ 00013 /*************************************************************************** 00014 Este programa es software libre. Puede redistribuirlo y/o modificarlo 00015 bajo los términos de la Licencia Pública General de GNU en su 00016 versión 2, publicada por la Free Software Foundation. 00017 ***************************************************************************/ 00018 00019 #ifndef AQSREPORTENGINE_P_H_ 00020 #define AQSREPORTENGINE_P_H_ 00021 00022 #include "AQSObject_p.h" 00023 #include "AQObjects.h" 00024 #include "AQSDomNode_p.h" 00025 00026 class AQSReportEngine : public AQSObject 00027 { 00028 Q_OBJECT 00029 00030 AQ_DECLARE_AQS_AQOBJECT(ReportEngine, Object); 00031 00032 //@AQ_BEGIN_DEF_PUB_SLOTS@ 00033 public slots: 00034 bool setReportData(FLSqlQuery *); 00035 bool setFLReportData(QDomNode *); 00036 bool setFLReportData(AQSDomNode *); 00037 bool setReportData(FLSqlCursor *); 00038 bool setFLReportTemplate(const QString &); 00039 bool setFLReportTemplate(QDomNode *); 00040 bool setFLReportTemplate(AQSDomNode *); 00041 FLSqlQuery *rptQueryData() const; 00042 QString rptNameTemplate() const; 00043 QDomDocument *rptXmlData() const; 00044 QDomDocument *rptXmlTemplate() const; 00045 00046 protected: 00047 static void *construct(const QSArgumentList &args) { 00048 QMap<int, QStringList> candidates; 00049 candidates[0].append(QString::null); 00050 candidates[1].append(QString::fromLatin1("QObject*")); 00051 QString sgt(castArgsSignature(args, candidates)); 00052 if (sgt.isEmpty()) 00053 return new AQReportEngine; 00054 if (sgt == QString::fromLatin1("QObject*")) 00055 return new AQReportEngine(argValue<QObject *>(args[0])); 00056 return 0; 00057 } 00058 00059 public: 00060 static QMap<int, QStringList> candidateConstructors() { 00061 QMap<int, QStringList> candidates; 00062 candidates[0].append(QString::null); 00063 candidates[1].append(QString::fromLatin1("QObject*")); 00064 return candidates; 00065 } 00066 //@AQ_END_DEF_PUB_SLOTS@ 00067 }; 00068 00069 //@AQ_BEGIN_IMP_PUB_SLOTS@ 00070 inline bool AQSReportEngine::setReportData(FLSqlQuery *arg0) 00071 { 00072 AQ_CALL_RET_V(setReportData(arg0), bool); 00073 } 00074 inline bool AQSReportEngine::setFLReportData(QDomNode *arg0) 00075 { 00076 AQ_CALL_RET_V(setFLReportData(*arg0), bool); 00077 } 00078 inline bool AQSReportEngine::setFLReportData(AQSDomNode *arg0) 00079 { 00080 AQ_CALL_RET_V(setFLReportData(*arg0), bool); 00081 } 00082 inline bool AQSReportEngine::setReportData(FLSqlCursor *arg0) 00083 { 00084 AQ_CALL_RET_V(setReportData(arg0), bool); 00085 } 00086 inline bool AQSReportEngine::setFLReportTemplate(const QString &arg0) 00087 { 00088 AQ_CALL_RET_V(setFLReportTemplate(arg0), bool); 00089 } 00090 inline bool AQSReportEngine::setFLReportTemplate(QDomNode *arg0) 00091 { 00092 AQ_CALL_RET_V(setFLReportTemplate(*arg0), bool); 00093 } 00094 inline bool AQSReportEngine::setFLReportTemplate(AQSDomNode *arg0) 00095 { 00096 AQ_CALL_RET_V(setFLReportTemplate(*arg0), bool); 00097 } 00098 inline FLSqlQuery *AQSReportEngine::rptQueryData() const 00099 { 00100 AQ_CALL_RET(rptQueryData()); 00101 } 00102 inline QString AQSReportEngine::rptNameTemplate() const 00103 { 00104 AQ_CALL_RET_V(rptNameTemplate(), QString); 00105 } 00106 inline QDomDocument *AQSReportEngine::rptXmlData() const 00107 { 00108 AQ_CALL_RET(rptXmlData()); 00109 } 00110 inline QDomDocument *AQSReportEngine::rptXmlTemplate() const 00111 { 00112 AQ_CALL_RET(rptXmlTemplate()); 00113 } 00114 //@AQ_END_IMP_PUB_SLOTS@ 00115 00116 #endif /* AQSREPORTENGINE_P_H_ */ 00117 // @AQOBJECT@