digikam
albumdb_sqlite2.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef ALBUMDB_SQLITE2_H
00025 #define ALBUMDB_SQLITE2_H
00026
00027
00028
00029 extern "C"
00030 {
00031 #include <sqlite.h>
00032 }
00033
00034
00035
00036 #include <QString>
00037 #include <QStringList>
00038 #include <QDateTime>
00039
00040 namespace Digikam
00041 {
00042
00043 typedef struct sqlite sqleet2;
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 }
00089
00090 #endif