shared: SqliteDbService: Changed getFiles() return to unsigned int
このコミットが含まれているのは:
コミット
86d629c957
@ -62,10 +62,11 @@ bool SqliteDbService::deleteFile(QString path)
|
|||||||
}
|
}
|
||||||
return result;
|
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
|
// TODO: translate/convert wildCardPattern to SQL where instead of regex
|
||||||
QString sql = "SELECT path, mtime, size, filetype FROM file";
|
QString sql = "SELECT path, mtime, size, filetype FROM file";
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ class SqliteDbService
|
|||||||
public:
|
public:
|
||||||
SqliteDbService(DatabaseFactory &dbFactory);
|
SqliteDbService(DatabaseFactory &dbFactory);
|
||||||
SaveFileResult saveFile(QFileInfo fileInfo, QVector<PageData> &pageData);
|
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 deleteFile(QString path);
|
||||||
bool fileExistsInDatabase(QString path);
|
bool fileExistsInDatabase(QString path);
|
||||||
bool fileExistsInDatabase(QString path, qint64 mtime);
|
bool fileExistsInDatabase(QString path, qint64 mtime);
|
||||||
|
読み込み中…
新しいイシューから参照
ユーザーをブロックする