VCS/StatusMonitorThread.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1131
7781e396c903
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
6 """ 6 """
7 Module implementing the VCS status monitor thread base class. 7 Module implementing the VCS status monitor thread base class.
8 """ 8 """
9 9
10 from PyQt4.QtCore import QThread, QMutex, QWaitCondition, pyqtSignal 10 from PyQt4.QtCore import QThread, QMutex, QWaitCondition, pyqtSignal
11
11 12
12 class VcsStatusMonitorThread(QThread): 13 class VcsStatusMonitorThread(QThread):
13 """ 14 """
14 Class implementing the VCS status monitor thread base class. 15 Class implementing the VCS status monitor thread base class.
15 16
18 monitoring thread (ok, nok, op) and a status message 19 monitoring thread (ok, nok, op) and a status message
19 """ 20 """
20 vcsStatusMonitorData = pyqtSignal(list) 21 vcsStatusMonitorData = pyqtSignal(list)
21 vcsStatusMonitorStatus = pyqtSignal(str, str) 22 vcsStatusMonitorStatus = pyqtSignal(str, str)
22 23
23 def __init__(self, interval, project, vcs, parent = None): 24 def __init__(self, interval, project, vcs, parent=None):
24 """ 25 """
25 Constructor 26 Constructor
26 27
27 @param interval new interval in seconds (integer) 28 @param interval new interval in seconds (integer)
28 @param project reference to the project object (Project) 29 @param project reference to the project object (Project)
178 <li>"U" path needs an update</li> 179 <li>"U" path needs an update</li>
179 <li>"Z" path contains a conflict</li> 180 <li>"Z" path contains a conflict</li>
180 <li>" " path is back at normal</li> 181 <li>" " path is back at normal</li>
181 </ul> 182 </ul>
182 183
183 @return tuple of flag indicating successful operation (boolean) and 184 @return tuple of flag indicating successful operation (boolean) and
184 a status message in case of non successful operation (string) 185 a status message in case of non successful operation (string)
185 """ 186 """
186 raise RuntimeError('Not implemented') 187 raise RuntimeError('Not implemented')

eric ide

mercurial