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

Method rebuild

ffsengine.cpp:2720–2743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2718}
2719
2720UINT8 FfsEngine::rebuild(const QModelIndex & index)
2721{
2722 if (!index.isValid())
2723 return ERR_INVALID_PARAMETER;
2724
2725 // Set action for the item
2726 model->setAction(index, Actions::Rebuild);
2727
2728 QModelIndex fileIndex;
2729
2730 if (model->type(index) == Types::Volume && model->rowCount(index) > 0)
2731 fileIndex = index.child(0, 0);
2732 else if (model->type(index) == Types::File)
2733 fileIndex = index;
2734 else if (model->type(index) == Types::Section)
2735 fileIndex = model->findParentOfType(index, Types::File);
2736 else
2737 return ERR_SUCCESS;
2738
2739 // Rebase all PEI-files that follow
2740 rebasePeiFiles(fileIndex);
2741
2742 return ERR_SUCCESS;
2743}
2744
2745UINT8 FfsEngine::doNotRebuild(const QModelIndex & index)
2746{

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