48 (QNetworkAccessManager) |
48 (QNetworkAccessManager) |
49 @return reference to the network monitor singleton (E5NetworkMonitor) |
49 @return reference to the network monitor singleton (E5NetworkMonitor) |
50 """ |
50 """ |
51 if cls._monitor is None: |
51 if cls._monitor is None: |
52 cls._monitor = E5NetworkMonitor(networkAccessManager) |
52 cls._monitor = E5NetworkMonitor(networkAccessManager) |
53 cls._monitor.setAttribute(Qt.WA_DeleteOnClose, True) |
|
54 |
53 |
55 return cls._monitor |
54 return cls._monitor |
56 |
55 |
57 @classmethod |
56 @classmethod |
58 def closeMonitor(cls): |
57 def closeMonitor(cls): |