|
|
@ -881,12 +881,7 @@ bool Database::addFolderToWatch(const QString &path)
|
|
|
|
#if defined(DEBUG)
|
|
|
|
#if defined(DEBUG)
|
|
|
|
qDebug() << "addFolderToWatch" << path;
|
|
|
|
qDebug() << "addFolderToWatch" << path;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
return m_watcher->addPath(path);
|
|
|
|
if (!m_watcher->addPath(path)) {
|
|
|
|
|
|
|
|
qWarning() << "ERROR: Cannot add path to file watcher:" << path;
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Database::removeFolderFromWatch(const QString &path)
|
|
|
|
bool Database::removeFolderFromWatch(const QString &path)
|
|
|
@ -894,11 +889,7 @@ bool Database::removeFolderFromWatch(const QString &path)
|
|
|
|
#if defined(DEBUG)
|
|
|
|
#if defined(DEBUG)
|
|
|
|
qDebug() << "removeFolderFromWatch" << path;
|
|
|
|
qDebug() << "removeFolderFromWatch" << path;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
if (!m_watcher->removePath(path)) {
|
|
|
|
return m_watcher->removePath(path);
|
|
|
|
qWarning() << "ERROR: Cannot remove path from file watcher:" << path;
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Database::retrieveFromDB(const QString &uid, const QList<QString> &collections, const QString &text, int retrievalSize)
|
|
|
|
void Database::retrieveFromDB(const QString &uid, const QList<QString> &collections, const QString &text, int retrievalSize)
|
|
|
|