21 #include <QSqlDatabase>
27 #define ADOREDB_VERSION "101"
29 #define TYPE_UNKNOWN 0
32 #define TYPE_SUCCESS 2
33 #define TYPE_WARNING 3
53 bool Add(QStringList &names, QStringList &values);
54 bool GetQueued(QStringList &names, QStringList &values);
static const char * kFileName
the queue db filename is defined here.
Definition: adoredb.h:59
bool Open()
Opens/Creates the SQlite queue file.
Definition: adoredb.cpp:62
bool Delete()
This is to delete the whole queue file.
Definition: adoredb.cpp:142
This class handles SQLite access to the queue file.
Definition: adoredb.h:43
QSqlDatabase db
Definition: adoredb.h:57
static const char * kLinuxPath
under Linux the extra Clementine config path (based on the home directory) is defined here...
Definition: adoredb.h:60
AdoreDb()
Definition: adoredb.cpp:23
QSqlError LastError()
Retrieves the last occured SQLite error.
Definition: adoredb.cpp:132
bool Add(QStringList &names, QStringList &values)
Adds a new record to the log table of the queue db.
Definition: adoredb.cpp:167
bool GetQueued(QStringList &names, QStringList &values)
Gets the next record not marked as TYPE_SUCCESS.
Definition: adoredb.cpp:219
~AdoreDb()
Definition: adoredb.cpp:28