| 332 | } |
| 333 | |
| 334 | RemoteHost PersistantConfig::GetRemoteHost(const rdcstr &hostname) |
| 335 | { |
| 336 | RemoteHost ret; |
| 337 | |
| 338 | { |
| 339 | QMutexLocker autolock(&RemoteHostLock); |
| 340 | for(size_t i = 0; i < RemoteHostList.size(); i++) |
| 341 | { |
| 342 | if(RemoteHostList[i].Hostname() == hostname) |
| 343 | { |
| 344 | ret = RemoteHostList[i]; |
| 345 | break; |
| 346 | } |
| 347 | } |
| 348 | } |
| 349 | |
| 350 | return ret; |
| 351 | } |
| 352 | |
| 353 | void PersistantConfig::AddRemoteHost(RemoteHost host) |
| 354 | { |
no test coverage detected