Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSSqlDatabase_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSSqlDatabase_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  trminos  de  la  Licencia  Pblica General de GNU   en  su
00016  versin 2, publicada  por  la  Free  Software Foundation.
00017  ***************************************************************************/
00018 
00019 #ifndef AQSSQLDATABASE_P_H_
00020 #define AQSSQLDATABASE_P_H_
00021 
00022 #include "AQSVoidPtr_p.h"
00023 #include "AQObjects.h"
00024 
00025 class AQSSqlDatabase : public AQSVoidPtr
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_VOID_AQOBJECT(SqlDatabase, VoidPtr);
00030 
00031   //@AQ_BEGIN_DEF_PUB_SLOTS@
00032 public slots:
00033   bool createTable(FLTableMetaData *);
00034   bool canRegenTables();
00035   QString formatValueLike(int, const QVariant &, bool = false);
00036   QString formatValue(int, const QVariant &, bool = false);
00037   QVariant nextSerialVal(const QString &, const QString &);
00038   int atFrom(FLSqlCursor *);
00039   QString database() const;
00040   QString user() const;
00041   QString password() const;
00042   QString host() const;
00043   int port() const;
00044   QString driverName() const;
00045   bool alterTable(const QString &, const QString &, const QString& = QString::null);
00046   FLManager *manager();
00047   FLManagerModules *managerModules();
00048   QString connectionName() const;
00049   bool canSavePoint();
00050   bool savePoint(const QString &);
00051   bool releaseSavePoint(const QString &);
00052   bool rollbackSavePoint(const QString &);
00053   bool canTransaction() const;
00054   void Mr_Proper();
00055   bool canDetectLocks() const;
00056   QStringList locksStatus();
00057   QStringList detectLocks();
00058   QStringList detectRisksLocks(const QString& = QString::null, const QString& = QString::null);
00059   bool regenTable(const QString &, FLTableMetaData *);
00060   QStringList driverAliases();
00061   QString defaultAlias();
00062   QString driverAliasToDriverName(const QString &);
00063   QString driverNameToDriverAlias(const QString &);
00064   bool needConnOption(const QString &, int);
00065   QString defaultPort(const QString &);
00066   bool isOpen() const;
00067   bool isOpenError() const;
00068   QStringList tables() const;
00069   QStringList tables(uint) const;
00070   QSqlError *lastError() const;
00071   QString connectOptions() const;
00072 
00073 protected:
00074   static void *construct(const QSArgumentList &args) {
00075     return 0;
00076   }
00077   //@AQ_END_DEF_PUB_SLOTS@
00078 };
00079 
00080 //@AQ_BEGIN_IMP_PUB_SLOTS@
00081 inline bool AQSSqlDatabase::createTable(FLTableMetaData *arg0)
00082 {
00083   AQ_CALL_RET_V(createTable(arg0), bool);
00084 }
00085 inline bool AQSSqlDatabase::canRegenTables()
00086 {
00087   AQ_CALL_RET_V(canRegenTables(), bool);
00088 }
00089 inline QString AQSSqlDatabase::formatValueLike(int arg0,  const QVariant &arg1,  bool arg2)
00090 {
00091   AQ_CALL_RET_V(formatValueLike(arg0, arg1, arg2), QString);
00092 }
00093 inline QString AQSSqlDatabase::formatValue(int arg0,  const QVariant &arg1,  bool arg2)
00094 {
00095   AQ_CALL_RET_V(formatValue(arg0, arg1, arg2), QString);
00096 }
00097 inline QVariant AQSSqlDatabase::nextSerialVal(const QString &arg0,  const QString &arg1)
00098 {
00099   AQ_CALL_RET_V(nextSerialVal(arg0, arg1), QVariant);
00100 }
00101 inline int AQSSqlDatabase::atFrom(FLSqlCursor *arg0)
00102 {
00103   AQ_CALL_RET_V(atFrom(arg0), int);
00104 }
00105 inline QString AQSSqlDatabase::database() const
00106 {
00107   AQ_CALL_RET_V(database(), QString);
00108 }
00109 inline QString AQSSqlDatabase::user() const
00110 {
00111   AQ_CALL_RET_V(user(), QString);
00112 }
00113 inline QString AQSSqlDatabase::password() const
00114 {
00115   AQ_CALL_RET_V(password(), QString);
00116 }
00117 inline QString AQSSqlDatabase::host() const
00118 {
00119   AQ_CALL_RET_V(host(), QString);
00120 }
00121 inline int AQSSqlDatabase::port() const
00122 {
00123   AQ_CALL_RET_V(port(), int);
00124 }
00125 inline QString AQSSqlDatabase::driverName() const
00126 {
00127   AQ_CALL_RET_V(driverName(), QString);
00128 }
00129 inline bool AQSSqlDatabase::alterTable(const QString &arg0,  const QString &arg1,  const QString &arg2)
00130 {
00131   AQ_CALL_RET_V(alterTable(arg0, arg1, arg2), bool);
00132 }
00133 inline FLManager *AQSSqlDatabase::manager()
00134 {
00135   AQ_CALL_RET(manager());
00136 }
00137 inline FLManagerModules *AQSSqlDatabase::managerModules()
00138 {
00139   AQ_CALL_RET(managerModules());
00140 }
00141 inline QString AQSSqlDatabase::connectionName() const
00142 {
00143   AQ_CALL_RET_V(connectionName(), QString);
00144 }
00145 inline bool AQSSqlDatabase::canSavePoint()
00146 {
00147   AQ_CALL_RET_V(canSavePoint(), bool);
00148 }
00149 inline bool AQSSqlDatabase::savePoint(const QString &arg0)
00150 {
00151   AQ_CALL_RET_V(savePoint(arg0), bool);
00152 }
00153 inline bool AQSSqlDatabase::releaseSavePoint(const QString &arg0)
00154 {
00155   AQ_CALL_RET_V(releaseSavePoint(arg0), bool);
00156 }
00157 inline bool AQSSqlDatabase::rollbackSavePoint(const QString &arg0)
00158 {
00159   AQ_CALL_RET_V(rollbackSavePoint(arg0), bool);
00160 }
00161 inline bool AQSSqlDatabase::canTransaction() const
00162 {
00163   AQ_CALL_RET_V(canTransaction(), bool);
00164 }
00165 inline void AQSSqlDatabase::Mr_Proper()
00166 {
00167   AQ_CALL_VOID(Mr_Proper());
00168 }
00169 inline bool AQSSqlDatabase::canDetectLocks() const
00170 {
00171   AQ_CALL_RET_V(canDetectLocks(), bool);
00172 }
00173 inline QStringList AQSSqlDatabase::locksStatus()
00174 {
00175   AQ_CALL_RET_V(locksStatus(), QStringList);
00176 }
00177 inline QStringList AQSSqlDatabase::detectLocks()
00178 {
00179   AQ_CALL_RET_V(detectLocks(), QStringList);
00180 }
00181 inline QStringList AQSSqlDatabase::detectRisksLocks(const QString &arg0,  const QString &arg1)
00182 {
00183   AQ_CALL_RET_V(detectRisksLocks(arg0, arg1), QStringList);
00184 }
00185 inline bool AQSSqlDatabase::regenTable(const QString &arg0,  FLTableMetaData *arg1)
00186 {
00187   AQ_CALL_RET_V(regenTable(arg0, arg1), bool);
00188 }
00189 inline QStringList AQSSqlDatabase::driverAliases()
00190 {
00191   AQ_CALL_RET_V(driverAliases(), QStringList);
00192 }
00193 inline QString AQSSqlDatabase::defaultAlias()
00194 {
00195   AQ_CALL_RET_V(defaultAlias(), QString);
00196 }
00197 inline QString AQSSqlDatabase::driverAliasToDriverName(const QString &arg0)
00198 {
00199   AQ_CALL_RET_V(driverAliasToDriverName(arg0), QString);
00200 }
00201 inline QString AQSSqlDatabase::driverNameToDriverAlias(const QString &arg0)
00202 {
00203   AQ_CALL_RET_V(driverNameToDriverAlias(arg0), QString);
00204 }
00205 inline bool AQSSqlDatabase::needConnOption(const QString &arg0,  int arg1)
00206 {
00207   AQ_CALL_RET_V(needConnOption(arg0, arg1), bool);
00208 }
00209 inline QString AQSSqlDatabase::defaultPort(const QString &arg0)
00210 {
00211   AQ_CALL_RET_V(defaultPort(arg0), QString);
00212 }
00213 inline bool AQSSqlDatabase::isOpen() const
00214 {
00215   AQ_CALL_RET_V(isOpen(), bool);
00216 }
00217 inline bool AQSSqlDatabase::isOpenError() const
00218 {
00219   AQ_CALL_RET_V(isOpenError(), bool);
00220 }
00221 inline QStringList AQSSqlDatabase::tables() const
00222 {
00223   AQ_CALL_RET_V(tables(), QStringList);
00224 }
00225 inline QStringList AQSSqlDatabase::tables(uint arg0) const
00226 {
00227   AQ_CALL_RET_V(tables(static_cast<QSql::TableType>(arg0)), QStringList);
00228 }
00229 inline QSqlError *AQSSqlDatabase::lastError() const
00230 {
00231   AQ_CALL_RET_PTR(lastError(), QSqlError);
00232 }
00233 inline QString AQSSqlDatabase::connectOptions() const
00234 {
00235   AQ_CALL_RET_V(connectOptions(), QString);
00236 }
00237 //@AQ_END_IMP_PUB_SLOTS@
00238 
00239 #endif /* AQSSQLDATABASE_P_H_ */
00240 // @AQOBJECT_VOID@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'