Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSRelationMD_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSRelationMD_p.h
00003  -------------------
00004  begin                : 29/03/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 AQSRELATIONMD_P_H_
00020 #define AQSRELATIONMD_P_H_
00021 
00022 #include "AQSVoidPtr_p.h"
00023 #include "AQObjects.h"
00024 
00025 class AQSRelationMD : public AQSVoidPtr
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_VOID_AQOBJECT(RelationMD, VoidPtr);
00030 
00031 protected:
00032   void specializedInternalFinish() {
00033     if (!wrap_)
00034       delete o_;
00035   }
00036 
00037   //@AQ_BEGIN_DEF_PUB_SLOTS@
00038 public slots:
00039   void setField(const QString &);
00040   QString field() const;
00041   QString foreignTable() const;
00042   QString foreignField() const;
00043   int cardinality() const;
00044   bool deleteCascade() const;
00045   bool updateCascade() const;
00046   bool checkIn();
00047 
00048 protected:
00049   static void *construct(const QSArgumentList &args) {
00050     QMap<int, QStringList> candidates;
00051     candidates[3].append(QString::fromLatin1("QString,QString,int"));
00052     candidates[4].append(QString::fromLatin1("QString,QString,int,bool"));
00053     candidates[5].append(QString::fromLatin1("QString,QString,int,bool,bool"));
00054     candidates[6].append(QString::fromLatin1("QString,QString,int,bool,bool,bool"));
00055     QString sgt(castArgsSignature(args, candidates));
00056     if (sgt == QString::fromLatin1("QString,QString,int"))
00057       return new AQRelationMD(*(argValue<QString *>(args[0])),
00058                               *(argValue<QString *>(args[1])),
00059                               args[2].variant().toInt());
00060     if (sgt == QString::fromLatin1("QString,QString,int,bool"))
00061       return new AQRelationMD(*(argValue<QString *>(args[0])),
00062                               *(argValue<QString *>(args[1])),
00063                               args[2].variant().toInt(),
00064                               args[3].variant().toBool());
00065     if (sgt == QString::fromLatin1("QString,QString,int,bool,bool"))
00066       return new AQRelationMD(*(argValue<QString *>(args[0])),
00067                               *(argValue<QString *>(args[1])),
00068                               args[2].variant().toInt(),
00069                               args[3].variant().toBool(),
00070                               args[4].variant().toBool());
00071     if (sgt == QString::fromLatin1("QString,QString,int,bool,bool,bool"))
00072       return new AQRelationMD(*(argValue<QString *>(args[0])),
00073                               *(argValue<QString *>(args[1])),
00074                               args[2].variant().toInt(),
00075                               args[3].variant().toBool(),
00076                               args[4].variant().toBool(),
00077                               args[5].variant().toBool());
00078     return 0;
00079   }
00080 
00081 public:
00082   static QMap<int, QStringList> candidateConstructors() {
00083     QMap<int, QStringList> candidates;
00084     candidates[3].append(QString::fromLatin1("QString,QString,int"));
00085     candidates[4].append(QString::fromLatin1("QString,QString,int,bool"));
00086     candidates[5].append(QString::fromLatin1("QString,QString,int,bool,bool"));
00087     candidates[6].append(QString::fromLatin1("QString,QString,int,bool,bool,bool"));
00088     return candidates;
00089   }
00090   //@AQ_END_DEF_PUB_SLOTS@
00091 };
00092 
00093 //@AQ_BEGIN_IMP_PUB_SLOTS@
00094 inline void AQSRelationMD::setField(const QString &arg0)
00095 {
00096   AQ_CALL_VOID(setField(arg0));
00097 }
00098 inline QString AQSRelationMD::field() const
00099 {
00100   AQ_CALL_RET_V(field(), QString);
00101 }
00102 inline QString AQSRelationMD::foreignTable() const
00103 {
00104   AQ_CALL_RET_V(foreignTable(), QString);
00105 }
00106 inline QString AQSRelationMD::foreignField() const
00107 {
00108   AQ_CALL_RET_V(foreignField(), QString);
00109 }
00110 inline int AQSRelationMD::cardinality() const
00111 {
00112   AQ_CALL_RET_V(cardinality(), int);
00113 }
00114 inline bool AQSRelationMD::deleteCascade() const
00115 {
00116   AQ_CALL_RET_V(deleteCascade(), bool);
00117 }
00118 inline bool AQSRelationMD::updateCascade() const
00119 {
00120   AQ_CALL_RET_V(updateCascade(), bool);
00121 }
00122 inline bool AQSRelationMD::checkIn()
00123 {
00124   AQ_CALL_RET_V(checkIn(), bool);
00125 }
00126 //@AQ_END_IMP_PUB_SLOTS@
00127 
00128 #endif /* AQSRELATIONMD_P_H_ */
00129 // @AQOBJECT_VOID@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'