MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / appsListRefresh

Method appsListRefresh

player/NymphCastPlayer/mainwindow.cpp:1213–1224  ·  view source on GitHub ↗

--- APPS LIST REFRESH ---

Source from the content-addressed store, hash-verified

1211
1212// --- APPS LIST REFRESH ---
1213void MainWindow::appsListRefresh() {
1214 uint32_t ncid;
1215 if (!remoteEnsureConnected(ncid)) { return; }
1216
1217 // Get list of apps from the remote server.
1218 std::string appList = client.getApplicationList(remotes[ncid].handle);
1219
1220 // Update local list.
1221 ui->remoteAppsComboBox->clear();
1222 QStringList appItems = (QString::fromStdString(appList)).split("\n", QString::SkipEmptyParts);
1223 ui->remoteAppsComboBox->addItems(appItems);
1224}
1225
1226
1227// --- SEND COMMAND ---

Callers

nothing calls this directly

Calls 2

getApplicationListMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected