digikam
albumdb_sqlite2.h
Go to the documentation of this file.00001 /* ============================================================ 00002 * 00003 * This file is a part of digiKam project 00004 * http://www.digikam.org 00005 * 00006 * Date : 2004-06-18 00007 * Description : SQlite version 2 database interface. 00008 * 00009 * Copyright (C) 2004 by Renchi Raju <renchi@pooh.tam.uiuc.edu> 00010 00011 * This program is free software; you can redistribute it 00012 * and/or modify it under the terms of the GNU General 00013 * Public License as published by the Free Software Foundation; 00014 * either version 2, or (at your option) 00015 * any later version. 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * ============================================================ */ 00023 00024 #ifndef ALBUMDB_SQLITE2_H 00025 #define ALBUMDB_SQLITE2_H 00026 00027 // Qt includes. 00028 00029 #include <QString> 00030 #include <QStringList> 00031 #include <QDateTime> 00032 00033 namespace Digikam 00034 { 00035 00036 typedef struct sqlite sqleet2; // hehe. 00037 00042 class AlbumDB_Sqlite2 00043 { 00044 public: 00045 00049 AlbumDB_Sqlite2(); 00050 00054 ~AlbumDB_Sqlite2(); 00055 00061 void setDBPath(const QString& path); 00062 00070 bool execSql(const QString& sql, QStringList* const values = 0, 00071 const bool debug = false); 00072 00073 bool isValid() const { return m_valid; } 00074 00075 private: 00076 00077 sqleet2* m_db; 00078 bool m_valid; 00079 }; 00080 00081 } // namespace Digikam 00082 00083 #endif /* ALBUMDB_SQLITE2_H */
KDE 4.2 API Reference