| 2693 | } |
| 2694 | |
| 2695 | UINT8 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 | |
| 2720 | UINT8 FfsEngine::rebuild(const QModelIndex & index) |
| 2721 | { |
nothing calls this directly
no test coverage detected