mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-29 14:35:23 -04:00
Allow specialised output in UEFIExtract
This commit is contained in:
parent
a5b2f00f9b
commit
53a0887112
3 changed files with 127 additions and 47 deletions
|
@ -27,13 +27,23 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||
class FfsDumper
|
||||
{
|
||||
public:
|
||||
enum DumpMode {
|
||||
DUMP_CURRENT,
|
||||
DUMP_ALL,
|
||||
DUMP_BODY,
|
||||
DUMP_HEADER,
|
||||
DUMP_INFO
|
||||
};
|
||||
|
||||
static const UINT8 IgnoreSectionType = 0xFF;
|
||||
|
||||
explicit FfsDumper(TreeModel * treeModel) : model(treeModel), dumped(false) {}
|
||||
~FfsDumper() {};
|
||||
|
||||
USTATUS dump(const QModelIndex & root, const QString & path, const bool dumpAll = false, const QString & guid = QString());
|
||||
USTATUS dump(const QModelIndex & root, const QString & path, const DumpMode dumpMode = DUMP_CURRENT, const UINT8 sectionType = IgnoreSectionType, const QString & guid = QString());
|
||||
|
||||
private:
|
||||
USTATUS recursiveDump(const QModelIndex & root, const QString & path, const bool dumpAll, const QString & guid);
|
||||
USTATUS recursiveDump(const QModelIndex & root, const QString & path, const DumpMode dumpMode, const UINT8 sectionType, const QString & guid);
|
||||
TreeModel* model;
|
||||
bool dumped;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue