src/database/database.h

Sun, 20 Aug 2023 11:40:51 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sun, 20 Aug 2023 11:40:51 +0200
changeset 501
a01ae5ff0e96
parent 6
f8474f2c5db9
permissions
-rw-r--r--

New battery percentage formula for iSpindel in chart.

#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