Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSDataTableDB_p.h 00003 ------------------- 00004 begin : 18/04/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 AQSDATATABLEDB_P_H_ 00020 #define AQSDATATABLEDB_P_H_ 00021 00022 #include "AQSDataTable_p.h" 00023 #include "AQObjects.h" 00024 00025 class AQSDataTableDB : public AQSDataTable 00026 { 00027 Q_OBJECT 00028 00029 AQ_DECLARE_AQS_AQOBJECT(DataTableDB, DataTable); 00030 00031 //@AQ_BEGIN_DEF_PUB_SLOTS@ 00032 public slots: 00033 void setPersistentFilter(const QString &); 00034 FLSqlCursor *cursor() const; 00035 void setFLReadOnly(const bool); 00036 void setEditOnly(const bool); 00037 void setInsertOnly(const bool); 00038 QVariantList primarysKeysChecked() const; 00039 void clearChecked(); 00040 void setPrimaryKeyChecked(const QVariant &, bool); 00041 void setShowAllPixmaps(bool); 00042 void setFunctionGetColor(const QString &); 00043 00044 protected: 00045 static void *construct(const QSArgumentList &args) { 00046 QMap<int, QStringList> candidates; 00047 candidates[0].append(QString::null); 00048 candidates[1].append(QString::fromLatin1("QWidget*")); 00049 candidates[2].append(QString::fromLatin1("QWidget*,QString")); 00050 candidates[3].append(QString::fromLatin1("QWidget*,QString,bool")); 00051 QString sgt(castArgsSignature(args, candidates)); 00052 if (sgt.isEmpty()) 00053 return new AQDataTableDB; 00054 if (sgt == QString::fromLatin1("QWidget*")) 00055 return new AQDataTableDB(argValue<QWidget *>(args[0])); 00056 if (sgt == QString::fromLatin1("QWidget*,QString")) 00057 return new AQDataTableDB(argValue<QWidget *>(args[0]), 00058 *(argValue<QString *>(args[1]))); 00059 if (sgt == QString::fromLatin1("QWidget*,QString,bool")) 00060 return new AQDataTableDB(argValue<QWidget *>(args[0]), 00061 *(argValue<QString *>(args[1])), 00062 args[2].variant().toBool()); 00063 return 0; 00064 } 00065 00066 public: 00067 static QMap<int, QStringList> candidateConstructors() { 00068 QMap<int, QStringList> candidates; 00069 candidates[0].append(QString::null); 00070 candidates[1].append(QString::fromLatin1("QWidget*")); 00071 candidates[2].append(QString::fromLatin1("QWidget*,QString")); 00072 candidates[3].append(QString::fromLatin1("QWidget*,QString,bool")); 00073 return candidates; 00074 } 00075 //@AQ_END_DEF_PUB_SLOTS@ 00076 }; 00077 00078 //@AQ_BEGIN_IMP_PUB_SLOTS@ 00079 inline void AQSDataTableDB::setPersistentFilter(const QString &arg0) 00080 { 00081 AQ_CALL_VOID(setPersistentFilter(arg0)); 00082 } 00083 inline FLSqlCursor *AQSDataTableDB::cursor() const 00084 { 00085 AQ_CALL_RET(cursor()); 00086 } 00087 inline void AQSDataTableDB::setFLReadOnly(const bool arg0) 00088 { 00089 AQ_CALL_VOID(setFLReadOnly(arg0)); 00090 } 00091 inline void AQSDataTableDB::setEditOnly(const bool arg0) 00092 { 00093 AQ_CALL_VOID(setEditOnly(arg0)); 00094 } 00095 inline void AQSDataTableDB::setInsertOnly(const bool arg0) 00096 { 00097 AQ_CALL_VOID(setInsertOnly(arg0)); 00098 } 00099 inline QVariantList AQSDataTableDB::primarysKeysChecked() const 00100 { 00101 AQ_CALL_RET_V(primarysKeysChecked(), QVariantList); 00102 } 00103 inline void AQSDataTableDB::clearChecked() 00104 { 00105 AQ_CALL_VOID(clearChecked()); 00106 } 00107 inline void AQSDataTableDB::setPrimaryKeyChecked(const QVariant &arg0, bool arg1) 00108 { 00109 AQ_CALL_VOID(setPrimaryKeyChecked(arg0, arg1)); 00110 } 00111 inline void AQSDataTableDB::setShowAllPixmaps(bool arg0) 00112 { 00113 AQ_CALL_VOID(setShowAllPixmaps(arg0)); 00114 } 00115 inline void AQSDataTableDB::setFunctionGetColor(const QString &arg0) 00116 { 00117 AQ_CALL_VOID(setFunctionGetColor(arg0)); 00118 } 00119 //@AQ_END_IMP_PUB_SLOTS@ 00120 00121 #endif /* AQSDATATABLEDB_P_H_ */ 00122 // @AQWIDGET@