Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSDomDocument_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSDomDocument_p.h
00003  -------------------
00004  begin                : 14/02/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 AQSDOMDOCUMENT_P_H_
00020 #define AQSDOMDOCUMENT_P_H_
00021 
00022 #include "AQSDomNode_p.h"
00023 #include "AQSByteArray_p.h"
00024 
00025 // @AQ_PTR_INDIRECTION@
00026 
00027 class AQSDomDocument : public AQSDomNode
00028 {
00029   Q_OBJECT
00030 
00031   AQ_DECLARE_AQS_VOID(DomDocument, DomNode);
00032 
00033   //@AQ_BEGIN_DEF_PUB_SLOTS@
00034 public slots:
00035   QDomNode *createElement(const QString &);
00036   QDomNode *createDocumentFragment();
00037   QDomNode *createTextNode(const QString &);
00038   QDomNode *createComment(const QString &);
00039   QDomNode *createCDATASection(const QString &);
00040   QDomNode *createProcessingInstruction(const QString &, const QString &);
00041   QDomNode *createAttribute(const QString &);
00042   QDomNode *createEntityReference(const QString &);
00043   QDomNodeList *elementsByTagName(const QString &) const;
00044   QDomNode *importNode(QDomNode *, bool);
00045   QDomNode *importNode(AQSDomNode *, bool);
00046   QDomNode *createElementNS(const QString &, const QString &);
00047   QDomNode *createAttributeNS(const QString &, const QString &);
00048   QDomNodeList *elementsByTagNameNS(const QString &, const QString &);
00049   QDomNode *elementById(const QString &);
00050   QDomNode *doctype() const;
00051   QDomImplementation *implementation() const;
00052   QDomNode *documentElement() const;
00053   bool setContent(QByteArray *, bool, QString* = 0, int* = 0, int* = 0);
00054   bool setContent(AQSByteArray *, bool, QString* = 0, int* = 0, int* = 0);
00055   bool setContent(const QString &, bool, QString* = 0, int* = 0, int* = 0);
00056   bool setContent(QByteArray *, QString* = 0, int* = 0, int* = 0);
00057   bool setContent(AQSByteArray *, QString* = 0, int* = 0, int* = 0);
00058   bool setContent(const QString &, QString* = 0, int* = 0, int* = 0);
00059   virtual uint nodeType() const;
00060   virtual bool isDocument() const;
00061   QString toString() const;
00062   QString toString(int) const;
00063 
00064 protected:
00065   static void *construct(const QSArgumentList &args) {
00066     QMap<int, QStringList> candidates;
00067     candidates[0].append(QString::null);
00068     candidates[1].append(QString::fromLatin1("QString"));
00069     candidates[1].append(QString::fromLatin1("QDomDocumentType*"));
00070     candidates[1].append(QString::fromLatin1("QDomDocument*"));
00071     QString sgt(castArgsSignature(args, candidates));
00072     if (sgt.isEmpty())
00073       return new QDomDocument;
00074     if (sgt == QString::fromLatin1("QString"))
00075       return new QDomDocument(*(argValue<QString *>(args[0])));
00076     if (sgt == QString::fromLatin1("QDomDocumentType*"))
00077       return new QDomDocument(*argValue<QDomDocumentType *>(args[0]));
00078     if (sgt == QString::fromLatin1("QDomDocument*"))
00079       return new QDomDocument(*argValue<QDomDocument *>(args[0]));
00080     return 0;
00081   }
00082 
00083 public:
00084   static QMap<int, QStringList> candidateConstructors() {
00085     QMap<int, QStringList> candidates;
00086     candidates[0].append(QString::null);
00087     candidates[1].append(QString::fromLatin1("QString"));
00088     candidates[1].append(QString::fromLatin1("QDomDocumentType*"));
00089     candidates[1].append(QString::fromLatin1("QDomDocument*"));
00090     return candidates;
00091   }
00092   //@AQ_END_DEF_PUB_SLOTS@
00093 };
00094 
00095 //@AQ_BEGIN_IMP_PUB_SLOTS@
00096 inline QDomNode *AQSDomDocument::createElement(const QString &arg0)
00097 {
00098   AQ_CALL_RET_PTR(createElement(arg0), QDomNode);
00099 }
00100 inline QDomNode *AQSDomDocument::createDocumentFragment()
00101 {
00102   AQ_CALL_RET_PTR(createDocumentFragment(), QDomNode);
00103 }
00104 inline QDomNode *AQSDomDocument::createTextNode(const QString &arg0)
00105 {
00106   AQ_CALL_RET_PTR(createTextNode(arg0), QDomNode);
00107 }
00108 inline QDomNode *AQSDomDocument::createComment(const QString &arg0)
00109 {
00110   AQ_CALL_RET_PTR(createComment(arg0), QDomNode);
00111 }
00112 inline QDomNode *AQSDomDocument::createCDATASection(const QString &arg0)
00113 {
00114   AQ_CALL_RET_PTR(createCDATASection(arg0), QDomNode);
00115 }
00116 inline QDomNode *AQSDomDocument::createProcessingInstruction(const QString &arg0,  const QString &arg1)
00117 {
00118   AQ_CALL_RET_PTR(createProcessingInstruction(arg0, arg1), QDomNode);
00119 }
00120 inline QDomNode *AQSDomDocument::createAttribute(const QString &arg0)
00121 {
00122   AQ_CALL_RET_PTR(createAttribute(arg0), QDomNode);
00123 }
00124 inline QDomNode *AQSDomDocument::createEntityReference(const QString &arg0)
00125 {
00126   AQ_CALL_RET_PTR(createEntityReference(arg0), QDomNode);
00127 }
00128 inline QDomNodeList *AQSDomDocument::elementsByTagName(const QString &arg0) const
00129 {
00130   AQ_CALL_RET_PTR(elementsByTagName(arg0), QDomNodeList);
00131 }
00132 inline QDomNode *AQSDomDocument::importNode(QDomNode *arg0,  bool arg1)
00133 {
00134   AQ_CALL_RET_PTR(importNode(*arg0, arg1), QDomNode);
00135 }
00136 inline QDomNode *AQSDomDocument::importNode(AQSDomNode *arg0,  bool arg1)
00137 {
00138   AQ_CALL_RET_PTR(importNode(*arg0, arg1), QDomNode);
00139 }
00140 inline QDomNode *AQSDomDocument::createElementNS(const QString &arg0,  const QString &arg1)
00141 {
00142   AQ_CALL_RET_PTR(createElementNS(arg0, arg1), QDomNode);
00143 }
00144 inline QDomNode *AQSDomDocument::createAttributeNS(const QString &arg0,  const QString &arg1)
00145 {
00146   AQ_CALL_RET_PTR(createAttributeNS(arg0, arg1), QDomNode);
00147 }
00148 inline QDomNodeList *AQSDomDocument::elementsByTagNameNS(const QString &arg0,  const QString &arg1)
00149 {
00150   AQ_CALL_RET_PTR(elementsByTagNameNS(arg0, arg1), QDomNodeList);
00151 }
00152 inline QDomNode *AQSDomDocument::elementById(const QString &arg0)
00153 {
00154   AQ_CALL_RET_PTR(elementById(arg0), QDomNode);
00155 }
00156 inline QDomNode *AQSDomDocument::doctype() const
00157 {
00158   AQ_CALL_RET_PTR(doctype(), QDomNode);
00159 }
00160 inline QDomImplementation *AQSDomDocument::implementation() const
00161 {
00162   AQ_CALL_RET_PTR(implementation(), QDomImplementation);
00163 }
00164 inline QDomNode *AQSDomDocument::documentElement() const
00165 {
00166   AQ_CALL_RET_PTR(documentElement(), QDomNode);
00167 }
00168 inline bool AQSDomDocument::setContent(QByteArray *arg0,  bool arg1,  QString *arg2,  int *arg3,  int *arg4)
00169 {
00170   AQ_CALL_RET_V(setContent(*arg0, arg1, arg2, arg3, arg4), bool);
00171 }
00172 inline bool AQSDomDocument::setContent(AQSByteArray *arg0,  bool arg1,  QString *arg2,  int *arg3,  int *arg4)
00173 {
00174   AQ_CALL_RET_V(setContent(*arg0, arg1, arg2, arg3, arg4), bool);
00175 }
00176 inline bool AQSDomDocument::setContent(const QString &arg0,  bool arg1,  QString *arg2,  int *arg3,  int *arg4)
00177 {
00178   AQ_CALL_RET_V(setContent(arg0, arg1, arg2, arg3, arg4), bool);
00179 }
00180 inline bool AQSDomDocument::setContent(QByteArray *arg0,  QString *arg1,  int *arg2,  int *arg3)
00181 {
00182   AQ_CALL_RET_V(setContent(*arg0, arg1, arg2, arg3), bool);
00183 }
00184 inline bool AQSDomDocument::setContent(AQSByteArray *arg0,  QString *arg1,  int *arg2,  int *arg3)
00185 {
00186   AQ_CALL_RET_V(setContent(*arg0, arg1, arg2, arg3), bool);
00187 }
00188 inline bool AQSDomDocument::setContent(const QString &arg0,  QString *arg1,  int *arg2,  int *arg3)
00189 {
00190   AQ_CALL_RET_V(setContent(arg0, arg1, arg2, arg3), bool);
00191 }
00192 inline uint AQSDomDocument::nodeType() const
00193 {
00194   AQ_CALL_RET_V(nodeType(), uint);
00195 }
00196 inline bool AQSDomDocument::isDocument() const
00197 {
00198   AQ_CALL_RET_V(isDocument(), bool);
00199 }
00200 inline QString AQSDomDocument::toString() const
00201 {
00202   AQ_CALL_RET_V(toString(), QString);
00203 }
00204 inline QString AQSDomDocument::toString(int arg0) const
00205 {
00206   AQ_CALL_RET_V(toString(arg0), QString);
00207 }
00208 //@AQ_END_IMP_PUB_SLOTS@
00209 
00210 #endif /* AQSDOMDOCUMENT_P_H_ */
00211 // @AQSVOIDPTR@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'