MCPcopy Create free account
hub / github.com/LongSoft/UEFITool / remove

Method remove

ffsengine.cpp:2695–2718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2693}
2694
2695UINT8 FfsEngine::remove(const QModelIndex & index)
2696{
2697 if (!index.isValid())
2698 return ERR_INVALID_PARAMETER;
2699
2700 // Set action for the item
2701 model->setAction(index, Actions::Remove);
2702
2703 QModelIndex fileIndex;
2704
2705 if (model->type(index) == Types::Volume && model->rowCount(index) > 0)
2706 fileIndex = index.child(0, 0);
2707 else if (model->type(index) == Types::File)
2708 fileIndex = index;
2709 else if (model->type(index) == Types::Section)
2710 fileIndex = model->findParentOfType(index, Types::File);
2711 else
2712 return ERR_SUCCESS;
2713
2714 // Rebase all PEI-files that follow
2715 rebasePeiFiles(fileIndex);
2716
2717 return ERR_SUCCESS;
2718}
2719
2720UINT8 FfsEngine::rebuild(const QModelIndex & index)
2721{

Callers

nothing calls this directly

Calls 5

rowCountMethod · 0.80
childMethod · 0.80
findParentOfTypeMethod · 0.80
setActionMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected