Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSManager_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSManager_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 AQSMANAGER_P_H_
00020 #define AQSMANAGER_P_H_
00021 
00022 #include "AQSVoidPtr_p.h"
00023 #include "AQObjects.h"
00024 
00025 class AQSManager : public AQSVoidPtr
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_VOID_AQOBJECT(Manager, VoidPtr);
00030 
00031   //@AQ_BEGIN_DEF_PUB_SLOTS@
00032 public slots:
00033   FLTableMetaData *metadata(const QString &, bool = false);
00034   FLSqlQuery *query(const QString &, QObject* = 0);
00035   FLAction *action(const QString &);
00036   bool existsTable(const QString &, bool = true) const;
00037   bool checkMetaData(const QString &);
00038   bool checkMetaData(const QString &, const QString &);
00039   bool checkMetaData(FLTableMetaData *, FLTableMetaData *);
00040   bool alterTable(const QString &);
00041   bool alterTable(const QString &, const QString &, const QString& = QString::null);
00042   FLTableMetaData *createTable(const QString &);
00043   FLTableMetaData *createTable(FLTableMetaData *);
00044   QString formatValueLike(FLFieldMetaData *, const QVariant &, bool = false);
00045   QString formatAssignValueLike(FLFieldMetaData *, const QVariant &, bool = false);
00046   QString formatAssignValueLike(const QString &, FLFieldMetaData *, const QVariant &, bool = false);
00047   QString formatAssignValueLike(const QString &, int, const QVariant &, bool = false);
00048   QString formatValueLike(int, const QVariant &, bool = false);
00049   QString formatValue(FLFieldMetaData *, const QVariant &, bool = false);
00050   QString formatAssignValue(FLFieldMetaData *, const QVariant &, bool = false);
00051   QString formatAssignValue(const QString &, FLFieldMetaData *, const QVariant &, bool = false);
00052   QString formatAssignValue(const QString &, int, const QVariant &, bool = false);
00053   QString formatValue(int, const QVariant &, bool = false);
00054   void loadTables();
00055   void cleanupMetaData();
00056   bool isSystemTable(const QString &);
00057   QString storeLargeValue(FLTableMetaData *, const QString &);
00058   QVariant fetchLargeValue(const QString &) const;
00059 
00060 protected:
00061   static void *construct(const QSArgumentList &args) {
00062     return 0;
00063   }
00064   //@AQ_END_DEF_PUB_SLOTS@
00065 };
00066 
00067 //@AQ_BEGIN_IMP_PUB_SLOTS@
00068 inline FLTableMetaData *AQSManager::metadata(const QString &arg0,  bool arg1)
00069 {
00070   AQ_CALL_RET(metadata(arg0, arg1));
00071 }
00072 inline FLSqlQuery *AQSManager::query(const QString &arg0,  QObject *arg1)
00073 {
00074   AQ_CALL_RET(query(arg0, arg1));
00075 }
00076 inline FLAction *AQSManager::action(const QString &arg0)
00077 {
00078   AQ_CALL_RET(action(arg0));
00079 }
00080 inline bool AQSManager::existsTable(const QString &arg0,  bool arg1) const
00081 {
00082   AQ_CALL_RET_V(existsTable(arg0, arg1), bool);
00083 }
00084 inline bool AQSManager::checkMetaData(const QString &arg0)
00085 {
00086   AQ_CALL_RET_V(checkMetaData(arg0), bool);
00087 }
00088 inline bool AQSManager::checkMetaData(const QString &arg0,  const QString &arg1)
00089 {
00090   AQ_CALL_RET_V(checkMetaData(arg0, arg1), bool);
00091 }
00092 inline bool AQSManager::checkMetaData(FLTableMetaData *arg0,  FLTableMetaData *arg1)
00093 {
00094   AQ_CALL_RET_V(checkMetaData(arg0, arg1), bool);
00095 }
00096 inline bool AQSManager::alterTable(const QString &arg0)
00097 {
00098   AQ_CALL_RET_V(alterTable(arg0), bool);
00099 }
00100 inline bool AQSManager::alterTable(const QString &arg0,  const QString &arg1,  const QString &arg2)
00101 {
00102   AQ_CALL_RET_V(alterTable(arg0, arg1, arg2), bool);
00103 }
00104 inline FLTableMetaData *AQSManager::createTable(const QString &arg0)
00105 {
00106   AQ_CALL_RET(createTable(arg0));
00107 }
00108 inline FLTableMetaData *AQSManager::createTable(FLTableMetaData *arg0)
00109 {
00110   AQ_CALL_RET(createTable(arg0));
00111 }
00112 inline QString AQSManager::formatValueLike(FLFieldMetaData *arg0,  const QVariant &arg1,  bool arg2)
00113 {
00114   AQ_CALL_RET_V(formatValueLike(arg0, arg1, arg2), QString);
00115 }
00116 inline QString AQSManager::formatAssignValueLike(FLFieldMetaData *arg0,  const QVariant &arg1,  bool arg2)
00117 {
00118   AQ_CALL_RET_V(formatAssignValueLike(arg0, arg1, arg2), QString);
00119 }
00120 inline QString AQSManager::formatAssignValueLike(const QString &arg0,  FLFieldMetaData *arg1,  const QVariant &arg2,  bool arg3)
00121 {
00122   AQ_CALL_RET_V(formatAssignValueLike(arg0, arg1, arg2, arg3), QString);
00123 }
00124 inline QString AQSManager::formatAssignValueLike(const QString &arg0,  int arg1,  const QVariant &arg2,  bool arg3)
00125 {
00126   AQ_CALL_RET_V(formatAssignValueLike(arg0, arg1, arg2, arg3), QString);
00127 }
00128 inline QString AQSManager::formatValueLike(int arg0,  const QVariant &arg1,  bool arg2)
00129 {
00130   AQ_CALL_RET_V(formatValueLike(arg0, arg1, arg2), QString);
00131 }
00132 inline QString AQSManager::formatValue(FLFieldMetaData *arg0,  const QVariant &arg1,  bool arg2)
00133 {
00134   AQ_CALL_RET_V(formatValue(arg0, arg1, arg2), QString);
00135 }
00136 inline QString AQSManager::formatAssignValue(FLFieldMetaData *arg0,  const QVariant &arg1,  bool arg2)
00137 {
00138   AQ_CALL_RET_V(formatAssignValue(arg0, arg1, arg2), QString);
00139 }
00140 inline QString AQSManager::formatAssignValue(const QString &arg0,  FLFieldMetaData *arg1,  const QVariant &arg2,  bool arg3)
00141 {
00142   AQ_CALL_RET_V(formatAssignValue(arg0, arg1, arg2, arg3), QString);
00143 }
00144 inline QString AQSManager::formatAssignValue(const QString &arg0,  int arg1,  const QVariant &arg2,  bool arg3)
00145 {
00146   AQ_CALL_RET_V(formatAssignValue(arg0, arg1, arg2, arg3), QString);
00147 }
00148 inline QString AQSManager::formatValue(int arg0,  const QVariant &arg1,  bool arg2)
00149 {
00150   AQ_CALL_RET_V(formatValue(arg0, arg1, arg2), QString);
00151 }
00152 inline void AQSManager::loadTables()
00153 {
00154   AQ_CALL_VOID(loadTables());
00155 }
00156 inline void AQSManager::cleanupMetaData()
00157 {
00158   AQ_CALL_VOID(cleanupMetaData());
00159 }
00160 inline bool AQSManager::isSystemTable(const QString &arg0)
00161 {
00162   AQ_CALL_RET_V(isSystemTable(arg0), bool);
00163 }
00164 inline QString AQSManager::storeLargeValue(FLTableMetaData *arg0,  const QString &arg1)
00165 {
00166   AQ_CALL_RET_V(storeLargeValue(arg0, arg1), QString);
00167 }
00168 inline QVariant AQSManager::fetchLargeValue(const QString &arg0) const
00169 {
00170   AQ_CALL_RET_V(fetchLargeValue(arg0), QVariant);
00171 }
00172 //@AQ_END_IMP_PUB_SLOTS@
00173 
00174 #endif /* AQSMANAGER_P_H_ */
00175 // @AQOBJECT_VOID@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'