eric7/Documentation/Source/eric7.Plugins.VcsPlugins.vcsGit.GitStatusMonitorThread.html

branch
eric7
changeset 8372
e0227a7c850e
child 8596
d64760b2da50
equal deleted inserted replaced
8371:d6062691d424 8372:e0227a7c850e
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric7.Plugins.VcsPlugins.vcsGit.GitStatusMonitorThread</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>
22 <a NAME="top" ID="top"></a>
23 <h1>eric7.Plugins.VcsPlugins.vcsGit.GitStatusMonitorThread</h1>
24
25 <p>
26 Module implementing the VCS status monitor thread class for Git.
27 </p>
28 <h3>Global Attributes</h3>
29
30 <table>
31 <tr><td>None</td></tr>
32 </table>
33 <h3>Classes</h3>
34
35 <table>
36
37 <tr>
38 <td><a href="#GitStatusMonitorThread">GitStatusMonitorThread</a></td>
39 <td>Class implementing the VCS status monitor thread class for Git.</td>
40 </tr>
41 </table>
42 <h3>Functions</h3>
43
44 <table>
45 <tr><td>None</td></tr>
46 </table>
47 <hr />
48 <hr />
49 <a NAME="GitStatusMonitorThread" ID="GitStatusMonitorThread"></a>
50 <h2>GitStatusMonitorThread</h2>
51
52 <p>
53 Class implementing the VCS status monitor thread class for Git.
54 </p>
55 <h3>Derived from</h3>
56 VcsStatusMonitorThread
57 <h3>Class Attributes</h3>
58
59 <table>
60 <tr><td>ConflictStates</td></tr>
61 </table>
62 <h3>Class Methods</h3>
63
64 <table>
65 <tr><td>None</td></tr>
66 </table>
67 <h3>Methods</h3>
68
69 <table>
70
71 <tr>
72 <td><a href="#GitStatusMonitorThread.__init__">GitStatusMonitorThread</a></td>
73 <td>Constructor</td>
74 </tr>
75 <tr>
76 <td><a href="#GitStatusMonitorThread._getInfo">_getInfo</a></td>
77 <td>Protected method implementing the real info action.</td>
78 </tr>
79 <tr>
80 <td><a href="#GitStatusMonitorThread._performMonitor">_performMonitor</a></td>
81 <td>Protected method implementing the monitoring action.</td>
82 </tr>
83 <tr>
84 <td><a href="#GitStatusMonitorThread._shutdown">_shutdown</a></td>
85 <td>Protected method performing shutdown actions.</td>
86 </tr>
87 </table>
88 <h3>Static Methods</h3>
89
90 <table>
91 <tr><td>None</td></tr>
92 </table>
93
94 <a NAME="GitStatusMonitorThread.__init__" ID="GitStatusMonitorThread.__init__"></a>
95 <h4>GitStatusMonitorThread (Constructor)</h4>
96 <b>GitStatusMonitorThread</b>(<i>interval, project, vcs, parent=None</i>)
97
98 <p>
99 Constructor
100 </p>
101 <dl>
102
103 <dt><i>interval</i></dt>
104 <dd>
105 new interval in seconds (integer)
106 </dd>
107 <dt><i>project</i></dt>
108 <dd>
109 reference to the project object (Project)
110 </dd>
111 <dt><i>vcs</i></dt>
112 <dd>
113 reference to the version control object
114 </dd>
115 <dt><i>parent</i></dt>
116 <dd>
117 reference to the parent object (QObject)
118 </dd>
119 </dl>
120 <a NAME="GitStatusMonitorThread._getInfo" ID="GitStatusMonitorThread._getInfo"></a>
121 <h4>GitStatusMonitorThread._getInfo</h4>
122 <b>_getInfo</b>(<i></i>)
123
124 <p>
125 Protected method implementing the real info action.
126 </p>
127 <p>
128 This method should be overridden and create a short info message to be
129 shown in the main window status bar right next to the status indicator.
130 </p>
131 <dl>
132 <dt>Return:</dt>
133 <dd>
134 short info message
135 </dd>
136 </dl>
137 <dl>
138 <dt>Return Type:</dt>
139 <dd>
140 str
141 </dd>
142 </dl>
143 <a NAME="GitStatusMonitorThread._performMonitor" ID="GitStatusMonitorThread._performMonitor"></a>
144 <h4>GitStatusMonitorThread._performMonitor</h4>
145 <b>_performMonitor</b>(<i></i>)
146
147 <p>
148 Protected method implementing the monitoring action.
149 </p>
150 <p>
151 This method populates the statusList member variable
152 with a list of strings giving the status in the first column and the
153 path relative to the project directory starting with the third column.
154 The allowed status flags are:
155 <ul>
156 <li>"A" path was added but not yet comitted</li>
157 <li>"M" path has local changes</li>
158 <li>"O" path was removed</li>
159 <li>"R" path was deleted and then re-added</li>
160 <li>"U" path needs an update</li>
161 <li>"Z" path contains a conflict</li>
162 <li>" " path is back at normal</li>
163 </ul>
164 </p>
165 <dl>
166 <dt>Return:</dt>
167 <dd>
168 tuple of flag indicating successful operation (boolean) and
169 a status message in case of non successful operation (string)
170 </dd>
171 </dl>
172 <a NAME="GitStatusMonitorThread._shutdown" ID="GitStatusMonitorThread._shutdown"></a>
173 <h4>GitStatusMonitorThread._shutdown</h4>
174 <b>_shutdown</b>(<i></i>)
175
176 <p>
177 Protected method performing shutdown actions.
178 </p>
179 <div align="right"><a href="#top">Up</a></div>
180 <hr />
181 </body></html>

eric ide

mercurial