| 2718 | } |
| 2719 | |
| 2720 | UINT8 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 | |
| 2745 | UINT8 FfsEngine::doNotRebuild(const QModelIndex & index) |
| 2746 | { |
nothing calls this directly
no test coverage detected