93 self.__outdatedProc = None |
93 self.__outdatedProc = None |
94 self.__shuttingDown = False |
94 self.__shuttingDown = False |
95 |
95 |
96 self.__vulnerabilityChecker = PipVulnerabilityChecker(self, self) |
96 self.__vulnerabilityChecker = PipVulnerabilityChecker(self, self) |
97 |
97 |
|
98 self.__ui.shutdown.connect(self.__shutdown) |
|
99 |
98 def getNetworkAccessManager(self): |
100 def getNetworkAccessManager(self): |
99 """ |
101 """ |
100 Public method to get a reference to the network access manager object. |
102 Public method to get a reference to the network access manager object. |
101 |
103 |
102 @return reference to the network access manager object |
104 @return reference to the network access manager object |
111 @return reference to the vulnerability checker object |
113 @return reference to the vulnerability checker object |
112 @rtype PipVulnerabilityChecker |
114 @rtype PipVulnerabilityChecker |
113 """ |
115 """ |
114 return self.__vulnerabilityChecker |
116 return self.__vulnerabilityChecker |
115 |
117 |
116 def shutdown(self): |
118 def __shutdown(self): |
117 """ |
119 """ |
118 Public method to perform shutdown actions. |
120 Private method to perform shutdown actions. |
119 """ |
121 """ |
120 self.__shuttingDown = True |
122 self.__shuttingDown = True |
121 if self.__outdatedProc is not None: |
123 if self.__outdatedProc is not None: |
122 self.__outdatedProc.finished.disconnect() |
124 self.__outdatedProc.finished.disconnect() |
123 self.__outdatedProc.kill() # end the process forcefully |
125 self.__outdatedProc.kill() # end the process forcefully |