Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSDomNode_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSDomNode_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 AQSDOMNODE_P_H_
00020 #define AQSDOMNODE_P_H_
00021 
00022 #include "AQSTextStream_p.h"
00023 
00024 // @AQ_PTR_INDIRECTION@
00025 
00026 class AQSDomNode : public AQSVoidPtr
00027 {
00028   Q_OBJECT
00029 
00030   AQ_DECLARE_AQS_VOID(DomNode, VoidPtr);
00031 
00032 protected:
00033   void specializedInternalFinish() {
00034     if (!wrap_)
00035       delete o_;
00036   }
00037 
00038   //@AQ_BEGIN_DEF_PUB_SLOTS@
00039 public slots:
00040   virtual QDomNode *insertBefore(QDomNode *, QDomNode *);
00041   virtual QDomNode *insertBefore(QDomNode *, AQSDomNode *);
00042   virtual QDomNode *insertBefore(AQSDomNode *, QDomNode *);
00043   virtual QDomNode *insertBefore(AQSDomNode *, AQSDomNode *);
00044   virtual QDomNode *insertAfter(QDomNode *, QDomNode *);
00045   virtual QDomNode *insertAfter(QDomNode *, AQSDomNode *);
00046   virtual QDomNode *insertAfter(AQSDomNode *, QDomNode *);
00047   virtual QDomNode *insertAfter(AQSDomNode *, AQSDomNode *);
00048   virtual QDomNode *replaceChild(QDomNode *, QDomNode *);
00049   virtual QDomNode *replaceChild(QDomNode *, AQSDomNode *);
00050   virtual QDomNode *replaceChild(AQSDomNode *, QDomNode *);
00051   virtual QDomNode *replaceChild(AQSDomNode *, AQSDomNode *);
00052   virtual QDomNode *removeChild(QDomNode *);
00053   virtual QDomNode *removeChild(AQSDomNode *);
00054   virtual QDomNode *appendChild(QDomNode *);
00055   virtual QDomNode *appendChild(AQSDomNode *);
00056   virtual bool hasChildNodes() const;
00057   virtual QDomNode *cloneNode(bool = TRUE) const;
00058   virtual void normalize();
00059   virtual bool isSupported(const QString &, const QString &) const;
00060   virtual QString nodeName() const;
00061   virtual uint nodeType() const;
00062   virtual QDomNode *parentNode() const;
00063   virtual QDomNodeList *childNodes() const;
00064   virtual QDomNode *firstChild() const;
00065   virtual QDomNode *lastChild() const;
00066   virtual QDomNode *previousSibling() const;
00067   virtual QDomNode *nextSibling() const;
00068   virtual QDomNamedNodeMap *attributes() const;
00069   virtual QDomDocument *ownerDocument() const;
00070   virtual QString namespaceURI() const;
00071   virtual QString localName() const;
00072   virtual bool hasAttributes() const;
00073   virtual QString nodeValue() const;
00074   virtual void setNodeValue(const QString &);
00075   virtual QString prefix() const;
00076   virtual void setPrefix(const QString &);
00077   virtual bool isAttr() const;
00078   virtual bool isCDATASection() const;
00079   virtual bool isDocumentFragment() const;
00080   virtual bool isDocument() const;
00081   virtual bool isDocumentType() const;
00082   virtual bool isElement() const;
00083   virtual bool isEntityReference() const;
00084   virtual bool isText() const;
00085   virtual bool isEntity() const;
00086   virtual bool isNotation() const;
00087   virtual bool isProcessingInstruction() const;
00088   virtual bool isCharacterData() const;
00089   virtual bool isComment() const;
00090   QDomNode *namedItem(const QString &) const;
00091   bool isNull() const;
00092   void clear();
00093   QDomAttr *toAttr();
00094   QDomCDATASection *toCDATASection();
00095   QDomDocumentFragment *toDocumentFragment();
00096   QDomDocument *toDocument();
00097   QDomDocumentType *toDocumentType();
00098   QDomElement *toElement();
00099   QDomEntityReference *toEntityReference();
00100   QDomText *toText();
00101   QDomEntity *toEntity();
00102   QDomNotation *toNotation();
00103   QDomProcessingInstruction *toProcessingInstruction();
00104   QDomCharacterData *toCharacterData();
00105   QDomComment *toComment();
00106   void save(QTextStream *, int) const;
00107   void save(AQSTextStream *, int) const;
00108 
00109 protected:
00110   static void *construct(const QSArgumentList &args) {
00111     QMap<int, QStringList> candidates;
00112     candidates[0].append(QString::null);
00113     candidates[1].append(QString::fromLatin1("QDomNode*"));
00114     QString sgt(castArgsSignature(args, candidates));
00115     if (sgt.isEmpty())
00116       return new QDomNode;
00117     if (sgt == QString::fromLatin1("QDomNode*"))
00118       return new QDomNode(*argValue<QDomNode *>(args[0]));
00119     return 0;
00120   }
00121 
00122 public:
00123   static QMap<int, QStringList> candidateConstructors() {
00124     QMap<int, QStringList> candidates;
00125     candidates[0].append(QString::null);
00126     candidates[1].append(QString::fromLatin1("QDomNode*"));
00127     return candidates;
00128   }
00129   //@AQ_END_DEF_PUB_SLOTS@
00130 };
00131 
00132 //@AQ_BEGIN_IMP_PUB_SLOTS@
00133 inline QDomNode *AQSDomNode::insertBefore(QDomNode *arg0,  QDomNode *arg1)
00134 {
00135   AQ_CALL_RET_PTR(insertBefore(*arg0, *arg1), QDomNode);
00136 }
00137 inline QDomNode *AQSDomNode::insertBefore(QDomNode *arg0, AQSDomNode *arg1)
00138 {
00139   AQ_CALL_RET_PTR(insertBefore(*arg0, *arg1), QDomNode);
00140 }
00141 inline QDomNode *AQSDomNode::insertBefore(AQSDomNode *arg0,  QDomNode *arg1)
00142 {
00143   AQ_CALL_RET_PTR(insertBefore(*arg0, *arg1), QDomNode);
00144 }
00145 inline QDomNode *AQSDomNode::insertBefore(AQSDomNode *arg0, AQSDomNode *arg1)
00146 {
00147   AQ_CALL_RET_PTR(insertBefore(*arg0, *arg1), QDomNode);
00148 }
00149 inline QDomNode *AQSDomNode::insertAfter(QDomNode *arg0,  QDomNode *arg1)
00150 {
00151   AQ_CALL_RET_PTR(insertAfter(*arg0, *arg1), QDomNode);
00152 }
00153 inline QDomNode *AQSDomNode::insertAfter(QDomNode *arg0, AQSDomNode *arg1)
00154 {
00155   AQ_CALL_RET_PTR(insertAfter(*arg0, *arg1), QDomNode);
00156 }
00157 inline QDomNode *AQSDomNode::insertAfter(AQSDomNode *arg0,  QDomNode *arg1)
00158 {
00159   AQ_CALL_RET_PTR(insertAfter(*arg0, *arg1), QDomNode);
00160 }
00161 inline QDomNode *AQSDomNode::insertAfter(AQSDomNode *arg0, AQSDomNode *arg1)
00162 {
00163   AQ_CALL_RET_PTR(insertAfter(*arg0, *arg1), QDomNode);
00164 }
00165 inline QDomNode *AQSDomNode::replaceChild(QDomNode *arg0,  QDomNode *arg1)
00166 {
00167   AQ_CALL_RET_PTR(replaceChild(*arg0, *arg1), QDomNode);
00168 }
00169 inline QDomNode *AQSDomNode::replaceChild(QDomNode *arg0, AQSDomNode *arg1)
00170 {
00171   AQ_CALL_RET_PTR(replaceChild(*arg0, *arg1), QDomNode);
00172 }
00173 inline QDomNode *AQSDomNode::replaceChild(AQSDomNode *arg0,  QDomNode *arg1)
00174 {
00175   AQ_CALL_RET_PTR(replaceChild(*arg0, *arg1), QDomNode);
00176 }
00177 inline QDomNode *AQSDomNode::replaceChild(AQSDomNode *arg0, AQSDomNode *arg1)
00178 {
00179   AQ_CALL_RET_PTR(replaceChild(*arg0, *arg1), QDomNode);
00180 }
00181 inline QDomNode *AQSDomNode::removeChild(QDomNode *arg0)
00182 {
00183   AQ_CALL_RET_PTR(removeChild(*arg0), QDomNode);
00184 }
00185 inline QDomNode *AQSDomNode::removeChild(AQSDomNode *arg0)
00186 {
00187   AQ_CALL_RET_PTR(removeChild(*arg0), QDomNode);
00188 }
00189 inline QDomNode *AQSDomNode::appendChild(QDomNode *arg0)
00190 {
00191   AQ_CALL_RET_PTR(appendChild(*arg0), QDomNode);
00192 }
00193 inline QDomNode *AQSDomNode::appendChild(AQSDomNode *arg0)
00194 {
00195   AQ_CALL_RET_PTR(appendChild(*arg0), QDomNode);
00196 }
00197 inline bool AQSDomNode::hasChildNodes() const
00198 {
00199   AQ_CALL_RET_V(hasChildNodes(), bool);
00200 }
00201 inline QDomNode *AQSDomNode::cloneNode(bool arg0) const
00202 {
00203   AQ_CALL_RET_PTR(cloneNode(arg0), QDomNode);
00204 }
00205 inline void AQSDomNode::normalize()
00206 {
00207   AQ_CALL_VOID(normalize());
00208 }
00209 inline bool AQSDomNode::isSupported(const QString &arg0,  const QString &arg1) const
00210 {
00211   AQ_CALL_RET_V(isSupported(arg0, arg1), bool);
00212 }
00213 inline QString AQSDomNode::nodeName() const
00214 {
00215   AQ_CALL_RET_V(nodeName(), QString);
00216 }
00217 inline uint AQSDomNode::nodeType() const
00218 {
00219   AQ_CALL_RET_V(nodeType(), uint);
00220 }
00221 inline QDomNode *AQSDomNode::parentNode() const
00222 {
00223   AQ_CALL_RET_PTR(parentNode(), QDomNode);
00224 }
00225 inline QDomNodeList *AQSDomNode::childNodes() const
00226 {
00227   AQ_CALL_RET_PTR(childNodes(), QDomNodeList);
00228 }
00229 inline QDomNode *AQSDomNode::firstChild() const
00230 {
00231   AQ_CALL_RET_PTR(firstChild(), QDomNode);
00232 }
00233 inline QDomNode *AQSDomNode::lastChild() const
00234 {
00235   AQ_CALL_RET_PTR(lastChild(), QDomNode);
00236 }
00237 inline QDomNode *AQSDomNode::previousSibling() const
00238 {
00239   AQ_CALL_RET_PTR(previousSibling(), QDomNode);
00240 }
00241 inline QDomNode *AQSDomNode::nextSibling() const
00242 {
00243   AQ_CALL_RET_PTR(nextSibling(), QDomNode);
00244 }
00245 inline QDomNamedNodeMap *AQSDomNode::attributes() const
00246 {
00247   AQ_CALL_RET_PTR(attributes(), QDomNamedNodeMap);
00248 }
00249 inline QDomDocument *AQSDomNode::ownerDocument() const
00250 {
00251   AQ_CALL_RET_PTR(ownerDocument(), QDomDocument);
00252 }
00253 inline QString AQSDomNode::namespaceURI() const
00254 {
00255   AQ_CALL_RET_V(namespaceURI(), QString);
00256 }
00257 inline QString AQSDomNode::localName() const
00258 {
00259   AQ_CALL_RET_V(localName(), QString);
00260 }
00261 inline bool AQSDomNode::hasAttributes() const
00262 {
00263   AQ_CALL_RET_V(hasAttributes(), bool);
00264 }
00265 inline QString AQSDomNode::nodeValue() const
00266 {
00267   AQ_CALL_RET_V(nodeValue(), QString);
00268 }
00269 inline void AQSDomNode::setNodeValue(const QString &arg0)
00270 {
00271   AQ_CALL_VOID(setNodeValue(arg0));
00272 }
00273 inline QString AQSDomNode::prefix() const
00274 {
00275   AQ_CALL_RET_V(prefix(), QString);
00276 }
00277 inline void AQSDomNode::setPrefix(const QString &arg0)
00278 {
00279   AQ_CALL_VOID(setPrefix(arg0));
00280 }
00281 inline bool AQSDomNode::isAttr() const
00282 {
00283   AQ_CALL_RET_V(isAttr(), bool);
00284 }
00285 inline bool AQSDomNode::isCDATASection() const
00286 {
00287   AQ_CALL_RET_V(isCDATASection(), bool);
00288 }
00289 inline bool AQSDomNode::isDocumentFragment() const
00290 {
00291   AQ_CALL_RET_V(isDocumentFragment(), bool);
00292 }
00293 inline bool AQSDomNode::isDocument() const
00294 {
00295   AQ_CALL_RET_V(isDocument(), bool);
00296 }
00297 inline bool AQSDomNode::isDocumentType() const
00298 {
00299   AQ_CALL_RET_V(isDocumentType(), bool);
00300 }
00301 inline bool AQSDomNode::isElement() const
00302 {
00303   AQ_CALL_RET_V(isElement(), bool);
00304 }
00305 inline bool AQSDomNode::isEntityReference() const
00306 {
00307   AQ_CALL_RET_V(isEntityReference(), bool);
00308 }
00309 inline bool AQSDomNode::isText() const
00310 {
00311   AQ_CALL_RET_V(isText(), bool);
00312 }
00313 inline bool AQSDomNode::isEntity() const
00314 {
00315   AQ_CALL_RET_V(isEntity(), bool);
00316 }
00317 inline bool AQSDomNode::isNotation() const
00318 {
00319   AQ_CALL_RET_V(isNotation(), bool);
00320 }
00321 inline bool AQSDomNode::isProcessingInstruction() const
00322 {
00323   AQ_CALL_RET_V(isProcessingInstruction(), bool);
00324 }
00325 inline bool AQSDomNode::isCharacterData() const
00326 {
00327   AQ_CALL_RET_V(isCharacterData(), bool);
00328 }
00329 inline bool AQSDomNode::isComment() const
00330 {
00331   AQ_CALL_RET_V(isComment(), bool);
00332 }
00333 inline QDomNode *AQSDomNode::namedItem(const QString &arg0) const
00334 {
00335   AQ_CALL_RET_PTR(namedItem(arg0), QDomNode);
00336 }
00337 inline bool AQSDomNode::isNull() const
00338 {
00339   AQ_CALL_RET_V(isNull(), bool);
00340 }
00341 inline void AQSDomNode::clear()
00342 {
00343   AQ_CALL_VOID(clear());
00344 }
00345 inline QDomAttr *AQSDomNode::toAttr()
00346 {
00347   AQ_CALL_RET_PTR(toAttr(), QDomAttr);
00348 }
00349 inline QDomCDATASection *AQSDomNode::toCDATASection()
00350 {
00351   AQ_CALL_RET_PTR(toCDATASection(), QDomCDATASection);
00352 }
00353 inline QDomDocumentFragment *AQSDomNode::toDocumentFragment()
00354 {
00355   AQ_CALL_RET_PTR(toDocumentFragment(), QDomDocumentFragment);
00356 }
00357 inline QDomDocument *AQSDomNode::toDocument()
00358 {
00359   AQ_CALL_RET_PTR(toDocument(), QDomDocument);
00360 }
00361 inline QDomDocumentType *AQSDomNode::toDocumentType()
00362 {
00363   AQ_CALL_RET_PTR(toDocumentType(), QDomDocumentType);
00364 }
00365 inline QDomElement *AQSDomNode::toElement()
00366 {
00367   AQ_CALL_RET_PTR(toElement(), QDomElement);
00368 }
00369 inline QDomEntityReference *AQSDomNode::toEntityReference()
00370 {
00371   AQ_CALL_RET_PTR(toEntityReference(), QDomEntityReference);
00372 }
00373 inline QDomText *AQSDomNode::toText()
00374 {
00375   AQ_CALL_RET_PTR(toText(), QDomText);
00376 }
00377 inline QDomEntity *AQSDomNode::toEntity()
00378 {
00379   AQ_CALL_RET_PTR(toEntity(), QDomEntity);
00380 }
00381 inline QDomNotation *AQSDomNode::toNotation()
00382 {
00383   AQ_CALL_RET_PTR(toNotation(), QDomNotation);
00384 }
00385 inline QDomProcessingInstruction *AQSDomNode::toProcessingInstruction()
00386 {
00387   AQ_CALL_RET_PTR(toProcessingInstruction(), QDomProcessingInstruction);
00388 }
00389 inline QDomCharacterData *AQSDomNode::toCharacterData()
00390 {
00391   AQ_CALL_RET_PTR(toCharacterData(), QDomCharacterData);
00392 }
00393 inline QDomComment *AQSDomNode::toComment()
00394 {
00395   AQ_CALL_RET_PTR(toComment(), QDomComment);
00396 }
00397 inline void AQSDomNode::save(QTextStream *arg0,  int arg1) const
00398 {
00399   AQ_CALL_VOID(save(*arg0, arg1));
00400 }
00401 inline void AQSDomNode::save(AQSTextStream *arg0,  int arg1) const
00402 {
00403   AQ_CALL_VOID(save(*arg0, arg1));
00404 }
00405 //@AQ_END_IMP_PUB_SLOTS@
00406 
00407 #endif /* AQSDOMNODE_P_H_ */
00408 // @AQSVOIDPTR@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'