00001 /****************************************************************************** 00002 * 00003 * This file is part of Gibberish. 00004 * 00005 * Gibberish is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * Gibberish is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with Foobar; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00018 * 00019 *****************************************************************************/ 00020 00021 #ifndef _H_DATABASE_INTERFACE 00022 #define _H_DATABASE_INTERFACE 00023 00024 #include <QString> 00025 #include <QSqlQuery> 00026 00027 class DatabaseInterface 00028 { 00029 public: 00030 DatabaseInterface(); 00031 00032 void open(); 00033 QSqlQuery* exec( QString sql ); 00034 00035 private: 00036 QSqlQuery* query; 00037 00038 }; 00039 00040 #endif