mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-14 07:04:49 -04:00
First approach to implement console UI
UEFIExtract utility will be done soon, the only thing to be done is actual extractAll code. :)
This commit is contained in:
parent
72829ee0a3
commit
8aba0766e5
8 changed files with 186 additions and 5 deletions
12
ffsengine.h
12
ffsengine.h
|
@ -20,9 +20,12 @@ WITHWARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||
|
||||
#include "basetypes.h"
|
||||
#include "treemodel.h"
|
||||
#include "messagelistitem.h"
|
||||
#include "peimage.h"
|
||||
|
||||
#ifndef _CONSOLE
|
||||
#include "messagelistitem.h"
|
||||
#endif
|
||||
|
||||
class TreeModel;
|
||||
|
||||
class FfsEngine : public QObject
|
||||
|
@ -37,11 +40,12 @@ public:
|
|||
// Returns model for Qt view classes
|
||||
TreeModel* treeModel() const;
|
||||
|
||||
#ifndef _CONSOLE
|
||||
// Returns message items queue
|
||||
QQueue<MessageListItem> messages() const;
|
||||
|
||||
// Clears message items queue
|
||||
void clearMessages();
|
||||
#endif
|
||||
|
||||
// Firmware image parsing
|
||||
UINT8 parseImageFile(const QByteArray & buffer);
|
||||
|
@ -110,8 +114,10 @@ private:
|
|||
// Patch routines
|
||||
UINT8 patchVtf(QByteArray &vtf);
|
||||
|
||||
// Message helper
|
||||
#ifndef _CONSOLE
|
||||
QQueue<MessageListItem> messageItems;
|
||||
#endif
|
||||
// Message helper
|
||||
void msg(const QString & message, const QModelIndex &index = QModelIndex());
|
||||
|
||||
// Internal operations
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue