src/database/database.h

Mon, 18 Apr 2022 20:00:49 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 18 Apr 2022 20:00:49 +0200
changeset 142
1caa15a0eefc
parent 6
f8474f2c5db9
permissions
-rw-r--r--

Added calcYeast(). Added show svg from calcFermentables() on the yeast tab. Fixed wrong data displayed in the yeast table. Show estimated needed dry yeast or starters.

#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