digikam
Digikam::AlbumDB_Sqlite2 Class Reference
This class is responsible for the communication with the sqlite database. More...
#include <albumdb_sqlite2.h>
Public Member Functions | |
| AlbumDB_Sqlite2 () | |
| ~AlbumDB_Sqlite2 () | |
| bool | execSql (const QString &sql, QStringList *const values=0, const bool debug=false) |
| bool | isValid () const |
| void | setDBPath (const QString &path) |
Detailed Description
This class is responsible for the communication with the sqlite database.
Definition at line 49 of file albumdb_sqlite2.h.
Constructor & Destructor Documentation
| Digikam::AlbumDB_Sqlite2::AlbumDB_Sqlite2 | ( | ) |
Constructor.
Definition at line 52 of file albumdb_sqlite2.cpp.
| Digikam::AlbumDB_Sqlite2::~AlbumDB_Sqlite2 | ( | ) |
Destructor.
Definition at line 58 of file albumdb_sqlite2.cpp.
Member Function Documentation
| bool Digikam::AlbumDB_Sqlite2::execSql | ( | const QString & | sql, | |
| QStringList *const | values = 0, |
|||
| const bool | debug = false | |||
| ) |
This will execute a given SQL statement to the database.
- Parameters:
-
sql The SQL statement values This will be filled with the result of the SQL statement debug If true, it will output the SQL statement
- Returns:
- It will return if the execution of the statement was succesfull
Definition at line 89 of file albumdb_sqlite2.cpp.
| bool Digikam::AlbumDB_Sqlite2::isValid | ( | ) | const [inline] |
Definition at line 80 of file albumdb_sqlite2.h.
| void Digikam::AlbumDB_Sqlite2::setDBPath | ( | const QString & | path | ) |
Makes a connection to the database and makes sure all tables are available.
- Parameters:
-
path The database to open
Definition at line 66 of file albumdb_sqlite2.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference