fixes for cartographer and automatically add track to album when adding to artist
21 lines
440 B
C++
21 lines
440 B
C++
#pragma once
|
|
|
|
#include <QSqlDatabase>
|
|
|
|
class KotoDatabase {
|
|
public:
|
|
KotoDatabase();
|
|
static KotoDatabase& instance();
|
|
static KotoDatabase* create() { return &instance(); }
|
|
|
|
void connect();
|
|
void disconnect();
|
|
QSqlDatabase getDatabase();
|
|
void load();
|
|
bool requiredBootstrap();
|
|
|
|
private:
|
|
void bootstrap();
|
|
bool shouldBootstrap;
|
|
QSqlDatabase db;
|
|
};
|