Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSDomDocumentType_p.h 00003 ------------------- 00004 begin : 16/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 AQSDOMDOCUMENTTYPE_P_H_ 00020 #define AQSDOMDOCUMENTTYPE_P_H_ 00021 00022 #include "AQSDomNode_p.h" 00023 00024 // @AQ_PTR_INDIRECTION@ 00025 00026 class AQSDomDocumentType : public AQSDomNode 00027 { 00028 Q_OBJECT 00029 00030 AQ_DECLARE_AQS_VOID(DomDocumentType, DomNode); 00031 00032 //@AQ_BEGIN_DEF_PUB_SLOTS@ 00033 public slots: 00034 virtual QString name() const; 00035 virtual QDomNamedNodeMap *entities() const; 00036 virtual QDomNamedNodeMap *notations() const; 00037 virtual QString publicId() const; 00038 virtual QString systemId() const; 00039 virtual QString internalSubset() const; 00040 virtual uint nodeType() const; 00041 virtual bool isDocumentType() const; 00042 00043 protected: 00044 static void *construct(const QSArgumentList &args) { 00045 QMap<int, QStringList> candidates; 00046 candidates[0].append(QString::null); 00047 candidates[1].append(QString::fromLatin1("QDomDocumentType*")); 00048 QString sgt(castArgsSignature(args, candidates)); 00049 if (sgt.isEmpty()) 00050 return new QDomDocumentType; 00051 if (sgt == QString::fromLatin1("QDomDocumentType*")) 00052 return new QDomDocumentType(*argValue<QDomDocumentType *>(args[0])); 00053 return 0; 00054 } 00055 00056 public: 00057 static QMap<int, QStringList> candidateConstructors() { 00058 QMap<int, QStringList> candidates; 00059 candidates[0].append(QString::null); 00060 candidates[1].append(QString::fromLatin1("QDomDocumentType*")); 00061 return candidates; 00062 } 00063 //@AQ_END_DEF_PUB_SLOTS@ 00064 }; 00065 00066 //@AQ_BEGIN_IMP_PUB_SLOTS@ 00067 inline QString AQSDomDocumentType::name() const 00068 { 00069 AQ_CALL_RET_V(name(), QString); 00070 } 00071 inline QDomNamedNodeMap *AQSDomDocumentType::entities() const 00072 { 00073 AQ_CALL_RET_PTR(entities(), QDomNamedNodeMap); 00074 } 00075 inline QDomNamedNodeMap *AQSDomDocumentType::notations() const 00076 { 00077 AQ_CALL_RET_PTR(notations(), QDomNamedNodeMap); 00078 } 00079 inline QString AQSDomDocumentType::publicId() const 00080 { 00081 AQ_CALL_RET_V(publicId(), QString); 00082 } 00083 inline QString AQSDomDocumentType::systemId() const 00084 { 00085 AQ_CALL_RET_V(systemId(), QString); 00086 } 00087 inline QString AQSDomDocumentType::internalSubset() const 00088 { 00089 AQ_CALL_RET_V(internalSubset(), QString); 00090 } 00091 inline uint AQSDomDocumentType::nodeType() const 00092 { 00093 AQ_CALL_RET_V(nodeType(), uint); 00094 } 00095 inline bool AQSDomDocumentType::isDocumentType() const 00096 { 00097 AQ_CALL_RET_V(isDocumentType(), bool); 00098 } 00099 //@AQ_END_IMP_PUB_SLOTS@ 00100 00101 #endif /* AQSDOMDOCUMENTTYPE_P_H_ */ 00102 // @AQSVOIDPTR@