10#include <QFileSystemWatcher>
19 const auto watcher =
new QFileSystemWatcher {
this };
20 watcher->addPaths (
ToPaths (types));
22 &QFileSystemWatcher::directoryChanged,
29 UpdateScheduled_ =
true;
30 QTimer::singleShot (10000,
34 UpdateScheduled_ =
false;
ItemsDatabase(const ICoreProxy_ptr &proxy, const QList< Type > &types, QObject *parent=nullptr)
Creates the ItemsDatabase for the given types.
ItemsFinder(const ICoreProxy_ptr &, const QList< Type > &types, QObject *parent=nullptr)
Constructs the items finder for the given types.
std::shared_ptr< ICoreProxy > ICoreProxy_ptr
QStringList ToPaths(const QList< Type > &types)
Returns a set of typical directories with desktop files of the given types.