mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-25 13:17:46 +00:00
26 lines
510 B
C
26 lines
510 B
C
|
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <QObject>
|
||
|
#include <QSqlDatabase>
|
||
|
#include <QSqlQuery>
|
||
|
|
||
|
class HashDatabase : public QObject
|
||
|
{
|
||
|
public:
|
||
|
HashDatabase(QObject *parent = nullptr);
|
||
|
|
||
|
void addFolder(QString folder);
|
||
|
void addFile(QString file);
|
||
|
|
||
|
QVector<QString> getKnownFolders();
|
||
|
|
||
|
bool knowsFile(const uint32_t i);
|
||
|
|
||
|
QString getFilename(const uint32_t i);
|
||
|
|
||
|
private:
|
||
|
QSqlDatabase m_db;
|
||
|
};
|