Eneboo - Documentación para desarrolladores
src/flbase/FLSqlConnections.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002                           FLSqlConnections.h
00003                           -------------------
00004  begin                : Mon Sep 18 2006
00005  copyright            : (C) 2006 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 FLSQLCONNECTIONS_H
00020 #define FLSQLCONNECTIONS_H
00021 
00022 class FLSqlConnectionsPrivate;
00023 class FLSqlDatabase;
00024 
00036 class FL_EXPORT FLSqlConnections
00037 {
00038 public:
00054   static bool addDatabase(const QString &driverAlias, const QString &nameDB, const QString &user,
00055                           const QString &password, const QString &host, int port, const QString &connectionName);
00056 
00066   static bool addDatabase(FLSqlDatabase *db, const QString &connectionName = "default");
00067 
00076   static bool removeDatabase(const QString &connectionName);
00077 
00084   static FLSqlDatabase *database(const QString &connectionName = "default");
00085 
00089   static void finish();
00090 
00091 private:
00092 
00096   static FLSqlConnectionsPrivate *d;
00097 };
00098 
00099 #endif
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'