mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-23 20:47:45 +00:00
Now the hashes are collected in a central database (location to be improved) similar to FFXIV Explorer. This database needs to be generated once and doesn't have to be regen every time Sagasu is opened like before. This indexer currently is a separate program. Also adds a feature to extract files from the file tree window.
26 lines
No EOL
510 B
C++
26 lines
No EOL
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;
|
|
}; |