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