src/database/database.h

Sat, 22 Jun 2024 11:28:14 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 22 Jun 2024 11:28:14 +0200
changeset 537
48de0f61e5ea
parent 6
f8474f2c5db9
permissions
-rw-r--r--

The iSpindel monitor, detail and chart screens try to use the polynomial calibration data to show the SG. Fallback to already logged data if this fails.

#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