src/database/database.h

Sat, 08 Oct 2022 14:53:31 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 08 Oct 2022 14:53:31 +0200
changeset 409
9c78dd948aae
parent 6
f8474f2c5db9
permissions
-rw-r--r--

The same calculation for boil_size in a new product.

#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