MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / AddClient

Method AddClient

qt/OpenRGBClientInfoPage/OpenRGBClientInfoPage.cpp:61–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void 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
77void OpenRGBClientInfoPage::UpdateInfo()
78{

Callers

nothing calls this directly

Calls 3

getFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected