| 59 | } |
| 60 | |
| 61 | void OpenRGBClientInfoPage::AddClient(NetworkClient* new_client) |
| 62 | { |
| 63 | /*-----------------------------------------------------*\ |
| 64 | | Add a new client to the list, register the callback, | |
| 65 | | and update the information view if the pointer is | |
| 66 | | valid | |
| 67 | \*-----------------------------------------------------*/ |
| 68 | if(new_client != NULL) |
| 69 | { |
| 70 | ResourceManager::get()->GetClients().push_back(new_client); |
| 71 | new_client->RegisterClientInfoChangeCallback(UpdateInfoCallback, this); |
| 72 | |
| 73 | UpdateInfo(); |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | void OpenRGBClientInfoPage::UpdateInfo() |
| 78 | { |
nothing calls this directly
no test coverage detected