src/database/database.h

Mon, 11 Apr 2022 20:45:22 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 11 Apr 2022 20:45:22 +0200
changeset 129
a9c19eaab018
parent 6
f8474f2c5db9
permissions
-rw-r--r--

Blocked hop table edit. Implemented add and delete hop rows. Started the ui of the water tab.

#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