src/database/database.h

Fri, 14 Jun 2024 08:45:35 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 14 Jun 2024 08:45:35 +0200
changeset 536
3d327db12cef
parent 6
f8474f2c5db9
permissions
-rw-r--r--

Version 0.5.0. Startup with the first tab active.

#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