Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSDomCharacterData_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 AQSDOMCHARACTERDATA_P_H_ 00020 #define AQSDOMCHARACTERDATA_P_H_ 00021 00022 #include "AQSDomNode_p.h" 00023 00024 // @AQ_PTR_INDIRECTION@ 00025 00026 class AQSDomCharacterData : public AQSDomNode 00027 { 00028 Q_OBJECT 00029 00030 AQ_DECLARE_AQS_VOID(DomCharacterData, DomNode); 00031 00032 //@AQ_BEGIN_DEF_PUB_SLOTS@ 00033 public slots: 00034 virtual QString substringData(unsigned long, unsigned long); 00035 virtual void appendData(const QString &); 00036 virtual void insertData(unsigned long, const QString &); 00037 virtual void deleteData(unsigned long, unsigned long); 00038 virtual void replaceData(unsigned long, unsigned long, const QString &); 00039 virtual uint length() const; 00040 virtual QString data() const; 00041 virtual void setData(const QString &); 00042 virtual uint nodeType() const; 00043 virtual bool isCharacterData() const; 00044 00045 protected: 00046 static void *construct(const QSArgumentList &args) { 00047 QMap<int, QStringList> candidates; 00048 candidates[0].append(QString::null); 00049 candidates[1].append(QString::fromLatin1("QDomCharacterData*")); 00050 QString sgt(castArgsSignature(args, candidates)); 00051 if (sgt.isEmpty()) 00052 return new QDomCharacterData; 00053 if (sgt == QString::fromLatin1("QDomCharacterData*")) 00054 return new QDomCharacterData(*argValue<QDomCharacterData *>(args[0])); 00055 return 0; 00056 } 00057 00058 public: 00059 static QMap<int, QStringList> candidateConstructors() { 00060 QMap<int, QStringList> candidates; 00061 candidates[0].append(QString::null); 00062 candidates[1].append(QString::fromLatin1("QDomCharacterData*")); 00063 return candidates; 00064 } 00065 //@AQ_END_DEF_PUB_SLOTS@ 00066 }; 00067 00068 //@AQ_BEGIN_IMP_PUB_SLOTS@ 00069 inline QString AQSDomCharacterData::substringData(unsigned long arg0, unsigned long arg1) 00070 { 00071 AQ_CALL_RET_V(substringData(arg0, arg1), QString); 00072 } 00073 inline void AQSDomCharacterData::appendData(const QString &arg0) 00074 { 00075 AQ_CALL_VOID(appendData(arg0)); 00076 } 00077 inline void AQSDomCharacterData::insertData(unsigned long arg0, const QString &arg1) 00078 { 00079 AQ_CALL_VOID(insertData(arg0, arg1)); 00080 } 00081 inline void AQSDomCharacterData::deleteData(unsigned long arg0, unsigned long arg1) 00082 { 00083 AQ_CALL_VOID(deleteData(arg0, arg1)); 00084 } 00085 inline void AQSDomCharacterData::replaceData(unsigned long arg0, unsigned long arg1, const QString &arg2) 00086 { 00087 AQ_CALL_VOID(replaceData(arg0, arg1, arg2)); 00088 } 00089 inline uint AQSDomCharacterData::length() const 00090 { 00091 AQ_CALL_RET_V(length(), uint); 00092 } 00093 inline QString AQSDomCharacterData::data() const 00094 { 00095 AQ_CALL_RET_V(data(), QString); 00096 } 00097 inline void AQSDomCharacterData::setData(const QString &arg0) 00098 { 00099 AQ_CALL_VOID(setData(arg0)); 00100 } 00101 inline uint AQSDomCharacterData::nodeType() const 00102 { 00103 AQ_CALL_RET_V(nodeType(), uint); 00104 } 00105 inline bool AQSDomCharacterData::isCharacterData() const 00106 { 00107 AQ_CALL_RET_V(isCharacterData(), bool); 00108 } 00109 //@AQ_END_IMP_PUB_SLOTS@ 00110 00111 #endif /* AQSDOMCHARACTERDATA_P_H_ */ 00112 // @AQSVOIDPTR@