Documentation/Source/eric6.WebBrowser.Tools.DelayedFileWatcher.html

Tue, 24 Oct 2017 19:09:09 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 24 Oct 2017 19:09:09 +0200
changeset 5928
a3809f75ca07
parent 4918
71caf42a13d8
permissions
-rw-r--r--

Changed the logic of the two web browsers in order to put new downloads at the top of the list of downloads and add the download date and time to the shown info.

<!DOCTYPE html>
<html><head>
<title>eric6.WebBrowser.Tools.DelayedFileWatcher</title>
<meta charset="UTF-8">
<style>
body {
    background: #EDECE6;
    margin: 0em 1em 10em 1em;
    color: black;
}

h1 { color: white; background: #85774A; }
h2 { color: white; background: #85774A; }
h3 { color: white; background: #9D936E; }
h4 { color: white; background: #9D936E; }
    
a { color: #BA6D36; }

</style>
</head>
<body><a NAME="top" ID="top"></a>
<h1>eric6.WebBrowser.Tools.DelayedFileWatcher</h1>
<p>
Module implementing a file system watcher with a delay.
</p>
<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Classes</h3>
<table>
<tr>
<td><a href="#DelayedFileWatcher">DelayedFileWatcher</a></td>
<td>Class implementing a file system watcher with a delay.</td>
</tr>
</table>
<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>
<hr /><hr />
<a NAME="DelayedFileWatcher" ID="DelayedFileWatcher"></a>
<h2>DelayedFileWatcher</h2>
<p>
    Class implementing a file system watcher with a delay.
</p><h3>Signals</h3>
<dl>
<dt>delayedDirectoryChanged(path)</dt>
<dd>
emitted to indicate a changed
        directory
</dd><dt>delayedFileChanged(path)</dt>
<dd>
emitted to indicate a changed file
</dd>
</dl>
<h3>Derived from</h3>
QFileSystemWatcher
<h3>Class Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>
<table>
<tr>
<td><a href="#DelayedFileWatcher.__init__">DelayedFileWatcher</a></td>
<td>Constructor</td>
</tr><tr>
<td><a href="#DelayedFileWatcher.__dequeueDirectory">__dequeueDirectory</a></td>
<td>Private slot to signal a directory change.</td>
</tr><tr>
<td><a href="#DelayedFileWatcher.__dequeueFile">__dequeueFile</a></td>
<td>Private slot to signal a file change.</td>
</tr><tr>
<td><a href="#DelayedFileWatcher.__directoryChanged">__directoryChanged</a></td>
<td>Private slot handling a changed directory.</td>
</tr><tr>
<td><a href="#DelayedFileWatcher.__fileChanged">__fileChanged</a></td>
<td>Private slot handling a changed file.</td>
</tr>
</table>
<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<a NAME="DelayedFileWatcher.__init__" ID="DelayedFileWatcher.__init__"></a>
<h4>DelayedFileWatcher (Constructor)</h4>
<b>DelayedFileWatcher</b>(<i>paths=None, parent=None</i>)
<p>
        Constructor
</p><dl>
<dt><i>paths</i> (list of str)</dt>
<dd>
list of paths to be watched
</dd><dt><i>parent</i> (QObject)</dt>
<dd>
reference to the parent object
</dd>
</dl><a NAME="DelayedFileWatcher.__dequeueDirectory" ID="DelayedFileWatcher.__dequeueDirectory"></a>
<h4>DelayedFileWatcher.__dequeueDirectory</h4>
<b>__dequeueDirectory</b>(<i></i>)
<p>
        Private slot to signal a directory change.
</p><a NAME="DelayedFileWatcher.__dequeueFile" ID="DelayedFileWatcher.__dequeueFile"></a>
<h4>DelayedFileWatcher.__dequeueFile</h4>
<b>__dequeueFile</b>(<i></i>)
<p>
        Private slot to signal a file change.
</p><a NAME="DelayedFileWatcher.__directoryChanged" ID="DelayedFileWatcher.__directoryChanged"></a>
<h4>DelayedFileWatcher.__directoryChanged</h4>
<b>__directoryChanged</b>(<i>path</i>)
<p>
        Private slot handling a changed directory.
</p><dl>
<dt><i>path</i> (str)</dt>
<dd>
name of the changed directory
</dd>
</dl><a NAME="DelayedFileWatcher.__fileChanged" ID="DelayedFileWatcher.__fileChanged"></a>
<h4>DelayedFileWatcher.__fileChanged</h4>
<b>__fileChanged</b>(<i>path</i>)
<p>
        Private slot handling a changed file.
</p><dl>
<dt><i>path</i> (str)</dt>
<dd>
name of the changed file
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial