• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

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 // C ANSI includes
00028 
00029 extern "C"
00030 {
00031 #include <sqlite.h>
00032 }
00033 
00034 // Qt includes
00035 
00036 #include <QString>
00037 #include <QStringList>
00038 #include <QDateTime>
00039 
00040 namespace Digikam
00041 {
00042 
00043 typedef struct sqlite sqleet2; // hehe.
00044 
00049 class AlbumDB_Sqlite2
00050 {
00051 public:
00052 
00056     AlbumDB_Sqlite2();
00057 
00061     ~AlbumDB_Sqlite2();
00062 
00068     void setDBPath(const QString& path);
00069 
00077     bool execSql(const QString& sql, QStringList* const values = 0, 
00078                  const bool debug = false);
00079 
00080     bool isValid() const { return m_valid; }
00081 
00082 private:
00083 
00084     bool      m_valid;
00085     sqleet2*  m_db;
00086 };
00087 
00088 }  // namespace Digikam
00089 
00090 #endif /* ALBUMDB_SQLITE2_H */

digikam

Skip menu "digikam"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • digikam
Generated for API Reference by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal