Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSDomAttr_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSDomAttr_p.h
00003  -------------------
00004  begin                : 15/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  trminos  de  la  Licencia  Pblica General de GNU   en  su
00016  versin 2, publicada  por  la  Free  Software Foundation.
00017  ***************************************************************************/
00018 
00019 #ifndef AQSDOMATTR_P_H_
00020 #define AQSDOMATTR_P_H_
00021 
00022 #include "AQSDomNode_p.h"
00023 
00024 // @AQ_PTR_INDIRECTION@
00025 
00026 class AQSDomAttr : public AQSDomNode
00027 {
00028   Q_OBJECT
00029 
00030   AQ_DECLARE_AQS_VOID(DomAttr, DomNode);
00031 
00032   //@AQ_BEGIN_DEF_PUB_SLOTS@
00033 public slots:
00034   virtual QString name() const;
00035   virtual bool specified() const;
00036   virtual QDomElement *ownerElement() const;
00037   virtual QString value() const;
00038   virtual void setValue(const QString &);
00039   virtual uint nodeType() const;
00040   virtual bool isAttr() const;
00041 
00042 protected:
00043   static void *construct(const QSArgumentList &args) {
00044     QMap<int, QStringList> candidates;
00045     candidates[0].append(QString::null);
00046     candidates[1].append(QString::fromLatin1("QDomAttr*"));
00047     QString sgt(castArgsSignature(args, candidates));
00048     if (sgt.isEmpty())
00049       return new QDomAttr;
00050     if (sgt == QString::fromLatin1("QDomAttr*"))
00051       return new QDomAttr(*argValue<QDomAttr *>(args[0]));
00052     return 0;
00053   }
00054 
00055 public:
00056   static QMap<int, QStringList> candidateConstructors() {
00057     QMap<int, QStringList> candidates;
00058     candidates[0].append(QString::null);
00059     candidates[1].append(QString::fromLatin1("QDomAttr*"));
00060     return candidates;
00061   }
00062   //@AQ_END_DEF_PUB_SLOTS@
00063 };
00064 
00065 //@AQ_BEGIN_IMP_PUB_SLOTS@
00066 inline QString AQSDomAttr::name() const
00067 {
00068   AQ_CALL_RET_V(name(), QString);
00069 }
00070 inline bool AQSDomAttr::specified() const
00071 {
00072   AQ_CALL_RET_V(specified(), bool);
00073 }
00074 inline QDomElement *AQSDomAttr::ownerElement() const
00075 {
00076   AQ_CALL_RET_PTR(ownerElement(), QDomElement);
00077 }
00078 inline QString AQSDomAttr::value() const
00079 {
00080   AQ_CALL_RET_V(value(), QString);
00081 }
00082 inline void AQSDomAttr::setValue(const QString &arg0)
00083 {
00084   AQ_CALL_VOID(setValue(arg0));
00085 }
00086 inline uint AQSDomAttr::nodeType() const
00087 {
00088   AQ_CALL_RET_V(nodeType(), uint);
00089 }
00090 inline bool AQSDomAttr::isAttr() const
00091 {
00092   AQ_CALL_RET_V(isAttr(), bool);
00093 }
00094 //@AQ_END_IMP_PUB_SLOTS@
00095 
00096 #endif /* AQSDOMATTR_P_H_ */
00097 // @AQSVOIDPTR@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'