shared: SqliteDbService: Changed getFiles() return to unsigned int

This commit is contained in:
Albert S. 2022-06-03 10:04:43 +02:00
rodzic 05fad3be17
commit 86d629c957
2 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -62,10 +62,11 @@ bool SqliteDbService::deleteFile(QString path)
}
return result;
}
int SqliteDbService::getFiles(QVector<FileData> &results, QString wildCardPattern, int offset, int limit)
unsigned int SqliteDbService::getFiles(QVector<FileData> &results, QString wildCardPattern, int offset, int limit)
{
int processedRows = 0;
unsigned int processedRows = 0;
// TODO: translate/convert wildCardPattern to SQL where instead of regex
QString sql = "SELECT path, mtime, size, filetype FROM file";

Wyświetl plik

@ -24,7 +24,7 @@ class SqliteDbService
public:
SqliteDbService(DatabaseFactory &dbFactory);
SaveFileResult saveFile(QFileInfo fileInfo, QVector<PageData> &pageData);
int getFiles(QVector<FileData> &results, QString wildCardPattern, int offset, int limit);
unsigned int getFiles(QVector<FileData> &results, QString wildCardPattern, int offset, int limit);
bool deleteFile(QString path);
bool fileExistsInDatabase(QString path);
bool fileExistsInDatabase(QString path, qint64 mtime);