src/database/database.h

Sat, 09 Apr 2022 21:50:19 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 09 Apr 2022 21:50:19 +0200
changeset 125
2e79e0975e58
parent 6
f8474f2c5db9
permissions
-rw-r--r--

Start hops table display. The calculated preboil_sg value is stored global in memory. Added calculations for IBU, hop flavour and aroma.

#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