|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.WebBrowser.Tools.DelayedFileWatcher</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.WebBrowser.Tools.DelayedFileWatcher</h1> |
|
23 <p> |
|
24 Module implementing a file system watcher with a delay. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#DelayedFileWatcher">DelayedFileWatcher</a></td> |
|
34 <td>Class implementing a file system watcher with a delay.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="DelayedFileWatcher" ID="DelayedFileWatcher"></a> |
|
43 <h2>DelayedFileWatcher</h2> |
|
44 <p> |
|
45 Class implementing a file system watcher with a delay. |
|
46 </p><h3>Signals</h3> |
|
47 <dl> |
|
48 <dt>delayedDirectoryChanged(path)</dt> |
|
49 <dd> |
|
50 emitted to indicate a changed |
|
51 directory |
|
52 </dd><dt>delayedFileChanged(path)</dt> |
|
53 <dd> |
|
54 emitted to indicate a changed file |
|
55 </dd> |
|
56 </dl> |
|
57 <h3>Derived from</h3> |
|
58 QFileSystemWatcher |
|
59 <h3>Class Attributes</h3> |
|
60 <table> |
|
61 <tr><td>None</td></tr> |
|
62 </table> |
|
63 <h3>Class Methods</h3> |
|
64 <table> |
|
65 <tr><td>None</td></tr> |
|
66 </table> |
|
67 <h3>Methods</h3> |
|
68 <table> |
|
69 <tr> |
|
70 <td><a href="#DelayedFileWatcher.__init__">DelayedFileWatcher</a></td> |
|
71 <td>Constructor</td> |
|
72 </tr><tr> |
|
73 <td><a href="#DelayedFileWatcher.__dequeueDirectory">__dequeueDirectory</a></td> |
|
74 <td>Private slot to signal a directory change.</td> |
|
75 </tr><tr> |
|
76 <td><a href="#DelayedFileWatcher.__dequeueFile">__dequeueFile</a></td> |
|
77 <td>Private slot to signal a file change.</td> |
|
78 </tr><tr> |
|
79 <td><a href="#DelayedFileWatcher.__directoryChanged">__directoryChanged</a></td> |
|
80 <td>Private slot handling a changed directory.</td> |
|
81 </tr><tr> |
|
82 <td><a href="#DelayedFileWatcher.__fileChanged">__fileChanged</a></td> |
|
83 <td>Private slot handling a changed file.</td> |
|
84 </tr> |
|
85 </table> |
|
86 <h3>Static Methods</h3> |
|
87 <table> |
|
88 <tr><td>None</td></tr> |
|
89 </table> |
|
90 <a NAME="DelayedFileWatcher.__init__" ID="DelayedFileWatcher.__init__"></a> |
|
91 <h4>DelayedFileWatcher (Constructor)</h4> |
|
92 <b>DelayedFileWatcher</b>(<i>paths=None, parent=None</i>) |
|
93 <p> |
|
94 Constructor |
|
95 </p><dl> |
|
96 <dt><i>paths</i> (list of str)</dt> |
|
97 <dd> |
|
98 list of paths to be watched |
|
99 </dd><dt><i>parent</i> (QObject)</dt> |
|
100 <dd> |
|
101 reference to the parent object |
|
102 </dd> |
|
103 </dl><a NAME="DelayedFileWatcher.__dequeueDirectory" ID="DelayedFileWatcher.__dequeueDirectory"></a> |
|
104 <h4>DelayedFileWatcher.__dequeueDirectory</h4> |
|
105 <b>__dequeueDirectory</b>(<i></i>) |
|
106 <p> |
|
107 Private slot to signal a directory change. |
|
108 </p><a NAME="DelayedFileWatcher.__dequeueFile" ID="DelayedFileWatcher.__dequeueFile"></a> |
|
109 <h4>DelayedFileWatcher.__dequeueFile</h4> |
|
110 <b>__dequeueFile</b>(<i></i>) |
|
111 <p> |
|
112 Private slot to signal a file change. |
|
113 </p><a NAME="DelayedFileWatcher.__directoryChanged" ID="DelayedFileWatcher.__directoryChanged"></a> |
|
114 <h4>DelayedFileWatcher.__directoryChanged</h4> |
|
115 <b>__directoryChanged</b>(<i>path</i>) |
|
116 <p> |
|
117 Private slot handling a changed directory. |
|
118 </p><dl> |
|
119 <dt><i>path</i> (str)</dt> |
|
120 <dd> |
|
121 name of the changed directory |
|
122 </dd> |
|
123 </dl><a NAME="DelayedFileWatcher.__fileChanged" ID="DelayedFileWatcher.__fileChanged"></a> |
|
124 <h4>DelayedFileWatcher.__fileChanged</h4> |
|
125 <b>__fileChanged</b>(<i>path</i>) |
|
126 <p> |
|
127 Private slot handling a changed file. |
|
128 </p><dl> |
|
129 <dt><i>path</i> (str)</dt> |
|
130 <dd> |
|
131 name of the changed file |
|
132 </dd> |
|
133 </dl> |
|
134 <div align="right"><a href="#top">Up</a></div> |
|
135 <hr /> |
|
136 </body></html> |