src/database/database.h

Sat, 02 Apr 2022 23:01:13 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 02 Apr 2022 23:01:13 +0200
changeset 101
1d14d3bf2465
parent 6
f8474f2c5db9
permissions
-rw-r--r--

Added change beerstyle, the fermentables table, and first part of calcFermentables to the recipe editor.

#ifndef _DATABASE_H
#define _DATABASE_H
     
#include <QSqlDatabase>
#include <QDebug>
#include <QSettings>


class DataBase : public QObject
{
    Q_OBJECT

public:
    explicit DataBase(QObject *parent = 0);
    ~DataBase();
    bool openDataBase(bool develop);
    void closeDataBase();

private:
    QSqlDatabase    db;
};


static DataBase *db;


#endif

mercurial