| 114 | } |
| 115 | |
| 116 | ClientConnectionManager::ClientConnectionManager(QObject *parent, bool showSplashScreenOnStartUp) |
| 117 | : QObject(parent) |
| 118 | , m_client(new Client(this)) |
| 119 | , m_processTracker(new GammaRay::ProcessTracker(this)) |
| 120 | , m_toolManager(new ClientToolManager(this)) |
| 121 | , m_mainWindow(nullptr) |
| 122 | , m_ignorePersistentError(false) |
| 123 | , m_tries(0) |
| 124 | { |
| 125 | if (showSplashScreenOnStartUp) |
| 126 | showSplashScreen(); |
| 127 | connect(m_processTracker, &ProcessTracker::backendChanged, this, |
| 128 | &ClientConnectionManager::processTrackerBackendChanged); |
| 129 | connect(m_processTracker, &ProcessTracker::infoChanged, this, |
| 130 | &ClientConnectionManager::processTrackerInfoChanged); |
| 131 | connect(this, &ClientConnectionManager::ready, this, &ClientConnectionManager::clientConnected); |
| 132 | connect(this, &ClientConnectionManager::disconnected, this, &ClientConnectionManager::clientDisconnected); |
| 133 | connect(m_client, &Endpoint::disconnected, this, &ClientConnectionManager::disconnected); |
| 134 | connect(m_client, &Client::transientConnectionError, this, &ClientConnectionManager::transientConnectionError); |
| 135 | connect(m_client, &Client::persisitentConnectionError, |
| 136 | this, &ClientConnectionManager::persistentConnectionError); |
| 137 | connect(this, &ClientConnectionManager::persistentConnectionError, this, &ClientConnectionManager::delayedHideSplashScreen); |
| 138 | connect(this, &ClientConnectionManager::ready, this, &ClientConnectionManager::delayedHideSplashScreen); |
| 139 | connect(m_toolManager, &ClientToolManager::toolListAvailable, this, &ClientConnectionManager::ready); |
| 140 | } |
| 141 | |
| 142 | ClientConnectionManager::~ClientConnectionManager() |
| 143 | { |
nothing calls this directly
no test coverage detected