MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / getCellLabels

Function getCellLabels

plugins/http/http-server-tab.cpp:99–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99static QStringList getCellLabels(HttpServer *server, bool addName = true)
100{
101 assert(server);
102 QStringList result;
103 if (addName) {
104 result << QString::fromStdString(server->Name());
105 }
106 result << QString::number(server->GetPort())
107 << obs_module_text(
108 server->IsListening()
109 ? "AdvSceneSwitcher.httpServer.status.listening"
110 : "AdvSceneSwitcher.httpServer.status.stopped");
111 return result;
112}
113
114static void updateServerStatus(QTableWidget *table)
115{

Callers 3

updateServerStatusFunction · 0.70
HttpServersTableMethod · 0.70
setupTabFunction · 0.70

Calls 4

obs_module_textFunction · 0.85
IsListeningMethod · 0.80
NameMethod · 0.45
GetPortMethod · 0.45

Tested by

no test coverage detected