MCPcopy Create free account
hub / github.com/Neverous/efibooteditor / getBootEntryList

Method getBootEntryList

src/efibooteditor.cpp:403–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403std::tuple<QString, BootEntryListView &, BootEntryListModel &> EFIBootEditor::getBootEntryList(int index)
404{
405 switch(static_cast<BootEntryType>(index))
406 {
407 case BootEntryType::BOOT:
408 return {tr("Boot"), *ui->boot_entries_list, data.boot_entries_list_model};
409
410 case BootEntryType::DRIVER:
411 return {tr("Driver"), *ui->driver_entries_list, data.driver_entries_list_model};
412
413 case BootEntryType::SYSPREP:
414 return {tr("System Preparation"), *ui->sysprep_entries_list, data.sysprep_entries_list_model};
415
416 case BootEntryType::PLATFORM_RECOVERY:
417 return {tr("Platform Recovery"), *ui->platform_recovery_entries_list, data.platform_recovery_entries_list_model};
418 }
419
420 Q_UNREACHABLE();
421}
422
423std::tuple<QString, BootEntryListView &, BootEntryListModel &> EFIBootEditor::currentBootEntryList()
424{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected