17 class VcsStatusMonitorThread(QThread): |
17 class VcsStatusMonitorThread(QThread): |
18 """ |
18 """ |
19 Class implementing the VCS status monitor thread base class. |
19 Class implementing the VCS status monitor thread base class. |
20 |
20 |
21 @signal vcsStatusMonitorData(list of str) emitted to update the VCS status |
21 @signal vcsStatusMonitorData(list of str) emitted to update the VCS status |
|
22 @signal vcsStatusMonitorAllData(dict) emitted to signal all VCS status |
|
23 (key is project relative file name, value is status) |
22 @signal vcsStatusMonitorStatus(str, str) emitted to signal the status of |
24 @signal vcsStatusMonitorStatus(str, str) emitted to signal the status of |
23 the monitoring thread (ok, nok, op) and a status message |
25 the monitoring thread (ok, nok, op) and a status message |
24 @signal vcsStatusMonitorInfo(str) emitted to signal some info of the |
26 @signal vcsStatusMonitorInfo(str) emitted to signal some info of the |
25 monitoring thread |
27 monitoring thread |
26 """ |
28 """ |
27 vcsStatusMonitorData = pyqtSignal(list) |
29 vcsStatusMonitorData = pyqtSignal(list) |
|
30 vcsStatusMonitorAllData = pyqtSignal(dict) |
28 vcsStatusMonitorStatus = pyqtSignal(str, str) |
31 vcsStatusMonitorStatus = pyqtSignal(str, str) |
29 vcsStatusMonitorInfo = pyqtSignal(str) |
32 vcsStatusMonitorInfo = pyqtSignal(str) |
30 |
33 |
31 def __init__(self, interval, project, vcs, parent=None): |
34 def __init__(self, interval, project, vcs, parent=None): |
32 """ |
35 """ |
87 status = "nok" |
90 status = "nok" |
88 self.vcsStatusMonitorStatus.emit( |
91 self.vcsStatusMonitorStatus.emit( |
89 "send", QCoreApplication.translate( |
92 "send", QCoreApplication.translate( |
90 "VcsStatusMonitorThread", "Sending data")) |
93 "VcsStatusMonitorThread", "Sending data")) |
91 self.vcsStatusMonitorData.emit(self.statusList) |
94 self.vcsStatusMonitorData.emit(self.statusList) |
|
95 self.vcsStatusMonitorAllData.emit(self.reportedStates) |
92 self.vcsStatusMonitorStatus.emit(status, statusMsg) |
96 self.vcsStatusMonitorStatus.emit(status, statusMsg) |
93 self.vcsStatusMonitorInfo.emit(infoMsg) |
97 self.vcsStatusMonitorInfo.emit(infoMsg) |
94 else: |
98 else: |
95 self.vcsStatusMonitorStatus.emit( |
99 self.vcsStatusMonitorStatus.emit( |
96 "timeout", QCoreApplication.translate( |
100 "timeout", QCoreApplication.translate( |
191 <li>"M" path has local changes</li> |
195 <li>"M" path has local changes</li> |
192 <li>"O" path was removed</li> |
196 <li>"O" path was removed</li> |
193 <li>"R" path was deleted and then re-added</li> |
197 <li>"R" path was deleted and then re-added</li> |
194 <li>"U" path needs an update</li> |
198 <li>"U" path needs an update</li> |
195 <li>"Z" path contains a conflict</li> |
199 <li>"Z" path contains a conflict</li> |
|
200 <li>"?" path is not tracked</li> |
|
201 <li>"!" path is missing</li> |
196 <li>" " path is back at normal</li> |
202 <li>" " path is back at normal</li> |
197 </ul> |
203 </ul> |
198 |
204 |
199 @return tuple of flag indicating successful operation (boolean) and |
205 @return tuple of flag indicating successful operation (boolean) and |
200 a status message in case of non successful operation (string) |
206 a status message in case of non successful operation (string) |