| 351 | } |
| 352 | |
| 353 | void PersistantConfig::AddRemoteHost(RemoteHost host) |
| 354 | { |
| 355 | if(!host.IsValid()) |
| 356 | return; |
| 357 | |
| 358 | QMutexLocker autolock(&RemoteHostLock); |
| 359 | |
| 360 | // don't add duplicates |
| 361 | for(size_t i = 0; i < RemoteHostList.size(); i++) |
| 362 | { |
| 363 | if(RemoteHostList[i] == host) |
| 364 | { |
| 365 | RemoteHostList[i] = host; |
| 366 | return; |
| 367 | } |
| 368 | } |
| 369 | |
| 370 | RemoteHostList.push_back(host); |
| 371 | } |
| 372 | |
| 373 | void PersistantConfig::RemoveRemoteHost(RemoteHost host) |
| 374 | { |
no test coverage detected