mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-21 19:57:44 +00:00
28 lines
No EOL
524 B
C++
28 lines
No EOL
524 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
|
|
{
|
|
Q_OBJECT
|
|
|
|
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;
|
|
}; |