kexi

sqlitedriver.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2003-2004 Jaroslaw Staniek <js@iidea.pl>
00003 
00004    This program is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this program; see the file COPYING.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef KEXIDB_DRIVER_SQLITE_H
00021 #define KEXIDB_DRIVER_SQLITE_H
00022 
00023 #include <qstringlist.h>
00024 
00025 #include <kexidb/driver.h>
00026 
00027 namespace KexiDB
00028 {
00029 
00030 class Connection;
00031 class DriverManager;
00032 class SQLiteDriverPrivate;
00033 
00035 class SQLiteDriver : public Driver
00036 {
00037     Q_OBJECT
00038     KEXIDB_DRIVER
00039 
00040     public:
00041         SQLiteDriver( QObject *parent, const char *name, const QStringList &args = QStringList() );
00042         virtual ~SQLiteDriver();
00043 
00048         virtual bool isSystemObjectName( const QString& n ) const;
00049 
00051         virtual bool isSystemDatabaseName( const QString& ) const { return false; }
00052 
00054         virtual QString escapeString(const QString& str) const;
00055         virtual QCString escapeString(const QCString& str) const;
00056 
00058         virtual QString escapeBLOB(const QByteArray& array) const;
00059 
00060     protected:
00061         virtual QString drv_escapeIdentifier( const QString& str) const;
00062         virtual QCString drv_escapeIdentifier( const QCString& str) const;
00063         virtual Connection *drv_createConnection( ConnectionData &conn_data );
00064 
00069         virtual bool drv_isSystemFieldName( const QString& n ) const;
00070 
00071     SQLiteDriverPrivate *dp;
00072     
00073     private:
00074         static const char *keywords[];
00075 
00076 };
00077 
00078 }
00079 
00080 #endif
00081 
KDE Home | KDE Accessibility Home | Description of Access Keys