Class sh::tools::LocalFilesystemWatcherConnector

class sh::tools::LocalFilesystemWatcherConnector : public QObject, public sh::base::Singleton

Observes the list of file views via VisibleViews and controls LocalFilesystemWatcher with that for observing the filesystem for changes.

Public Functions

void doInitialize()

Executes singleton initialization.

void doShutdown()

Executes singleton shutdown.

void shutdown()

Shutdown down this singleton.

bool isAlive()

Returns if this singleton is alive (true until its shutdown begins).

Private Functions

LocalFilesystemWatcherConnector()
QList<QPair<std::shared_ptr<sh::filesystem::FilesystemNode>, sh::filesystemhandlers::LocalFilesystemHandler*>> getAllLocalParts(std::shared_ptr<filesystem::FilesystemNode> node)

Private Members

QHash<std::shared_ptr<const sh::filesystem::Eurl>, QList<qint64>> dir2watcherids
QHash<qint64, std::shared_ptr<const sh::filesystem::Eurl>> watcherid2dir