GPT first

This commit is contained in:
2025-02-02 01:07:48 +05:00
parent 18a6f4bb2c
commit 4e4e3d8a45
4 changed files with 63 additions and 0 deletions

18
include/backend.cpp Normal file
View File

@@ -0,0 +1,18 @@
#include "backend.h"
#include <QtCore/QDebug>
Backend::Backend(QObject *parent) : QObject(parent)
{
// Используем SQLite по умолчанию, для PostgreSQL потребуется изменить параметры подключения
db = QSqlDatabase::addDatabase("QSQLITE");
db.setDatabaseName("opds.db");
if (!db.open()) {
qDebug() << "Error: Unable to open database";
}
}
void Backend::start()
{
qDebug() << "Backend started.";
}