Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSFormSearchDB_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSFormSearchDB_p.h
00003  -------------------
00004  begin                : 19/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 AQSFORMSEARCHDB_P_H_
00020 #define AQSFORMSEARCHDB_P_H_
00021 
00022 #include "AQSFormDB_p.h"
00023 
00024 class AQSFormSearchDB : public AQSWidget
00025 {
00026   Q_OBJECT
00027 
00028   AQ_DECLARE_AQS_AQOBJECT(FormSearchDB, Widget);
00029 
00030   //@AQ_BEGIN_DEF_PUB_SLOTS@
00031 public slots:
00032   FLSqlCursor *cursor() const;
00033   QWidget *mainWidget() const;
00034   void setIdMDI(const QString &);
00035   QString idMDI() const;
00036   virtual void setMainWidget(QWidget *);
00037   virtual void setMainWidget();
00038   QImage *snapShot();
00039   void saveSnapShot(const QString &);
00040   QVariant exec(const QString& = QString::null);
00041   void setFilter(const QString &);
00042   bool accepted();
00043 
00044 protected:
00045   static void *construct(const QSArgumentList &args) {
00046     QMap<int, QStringList> candidates;
00047     candidates[1].append(QString::fromLatin1("QString"));
00048     candidates[2].append(QString::fromLatin1("QString,QWidget*"));
00049     candidates[1].append(QString::fromLatin1("FLSqlCursor*"));
00050     candidates[2].append(QString::fromLatin1("FLSqlCursor*,QString"));
00051     candidates[3].append(QString::fromLatin1("FLSqlCursor*,QString,QWidget*"));
00052     QString sgt(castArgsSignature(args, candidates));
00053     if (sgt == QString::fromLatin1("QString"))
00054       return new AQFormSearchDB(*(argValue<QString *>(args[0])));
00055     if (sgt == QString::fromLatin1("QString,QWidget*"))
00056       return new AQFormSearchDB(*(argValue<QString *>(args[0])),
00057                                 argValue<QWidget *>(args[1]));
00058     if (sgt == QString::fromLatin1("FLSqlCursor*"))
00059       return new AQFormSearchDB(argValue<FLSqlCursor *>(args[0]));
00060     if (sgt == QString::fromLatin1("FLSqlCursor*,QString"))
00061       return new AQFormSearchDB(argValue<FLSqlCursor *>(args[0]),
00062                                 *(argValue<QString *>(args[1])));
00063     if (sgt == QString::fromLatin1("FLSqlCursor*,QString,QWidget*"))
00064       return new AQFormSearchDB(argValue<FLSqlCursor *>(args[0]),
00065                                 *(argValue<QString *>(args[1])),
00066                                 argValue<QWidget *>(args[2]));
00067     return 0;
00068   }
00069 
00070 public:
00071   static QMap<int, QStringList> candidateConstructors() {
00072     QMap<int, QStringList> candidates;
00073     candidates[1].append(QString::fromLatin1("QString"));
00074     candidates[2].append(QString::fromLatin1("QString,QWidget*"));
00075     candidates[1].append(QString::fromLatin1("FLSqlCursor*"));
00076     candidates[2].append(QString::fromLatin1("FLSqlCursor*,QString"));
00077     candidates[3].append(QString::fromLatin1("FLSqlCursor*,QString,QWidget*"));
00078     return candidates;
00079   }
00080   //@AQ_END_DEF_PUB_SLOTS@
00081 };
00082 
00083 //@AQ_BEGIN_IMP_PUB_SLOTS@
00084 inline FLSqlCursor *AQSFormSearchDB::cursor() const
00085 {
00086   AQ_CALL_RET(cursor());
00087 }
00088 inline QWidget *AQSFormSearchDB::mainWidget() const
00089 {
00090   AQ_CALL_RET(mainWidget());
00091 }
00092 inline void AQSFormSearchDB::setIdMDI(const QString &arg0)
00093 {
00094   AQ_CALL_VOID(setIdMDI(arg0));
00095 }
00096 inline QString AQSFormSearchDB::idMDI() const
00097 {
00098   AQ_CALL_RET_V(idMDI(), QString);
00099 }
00100 inline void AQSFormSearchDB::setMainWidget(QWidget *arg0)
00101 {
00102   AQ_CALL_VOID(setMainWidget(arg0));
00103 }
00104 inline void AQSFormSearchDB::setMainWidget()
00105 {
00106   AQ_CALL_VOID(setMainWidget());
00107 }
00108 inline QImage *AQSFormSearchDB::snapShot()
00109 {
00110   AQ_CALL_RET_PTR(snapShot(), QImage);
00111 }
00112 inline void AQSFormSearchDB::saveSnapShot(const QString &arg0)
00113 {
00114   AQ_CALL_VOID(saveSnapShot(arg0));
00115 }
00116 inline QVariant AQSFormSearchDB::exec(const QString &arg0)
00117 {
00118   AQ_CALL_RET_V(exec(arg0), QVariant);
00119 }
00120 inline void AQSFormSearchDB::setFilter(const QString &arg0)
00121 {
00122   AQ_CALL_VOID(setFilter(arg0));
00123 }
00124 inline bool AQSFormSearchDB::accepted()
00125 {
00126   AQ_CALL_RET_V(accepted(), bool);
00127 }
00128 //@AQ_END_IMP_PUB_SLOTS@
00129 
00130 #endif /* AQSFORMSEARCHDB_P_H_ */
00131 // @AQWIDGET@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'