common.monitor#

QFileSystemWatchers used to monitor for file and directory changes.

Classes:

FileWatcher(tab_idx[, parent])

Functions:

get_watcher(tab_idx)

Returns a FileWatcher instance.

class bookmarks.common.monitor.FileWatcher(tab_idx, parent=None)[source]#

Bases: QFileSystemWatcher

Methods:

add_directories(paths)

Adds the given list of directories to the file system watcher.

item_changed()

Slot used to update the model status.

reset()

Remove all watch directories.

add_directories(paths)[source]#

Adds the given list of directories to the file system watcher.

Parameters:

paths (list) – The list of directories to add to the file system watcher.

item_changed()[source]#

Slot used to update the model status.

reset()[source]#

Remove all watch directories.

bookmarks.common.monitor.get_watcher(tab_idx)[source]#

Returns a FileWatcher instance.