UEFITool/UEFITool/ffsfinder.h
Nikolaj Schlej d94eb48978 Fixed gitignore
The whole UEFITool was removed because of false .gitignore settings
2015-04-02 10:07:32 +02:00

48 lines
1.4 KiB
C++

/* fssfinder.h
Copyright (c) 2015, Nikolaj Schlej. All rights reserved.
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
*/
#ifndef __FFSFINDER_H__
#define __FFSFINDER_H__
#include <QObject>
#include <QByteArray>
#include <QString>
#include <QModelIndex>
#include "..\common\basetypes.h"
#include "..\common\treemodel.h"
class FfsFinder : public QObject
{
Q_OBJECT
public:
explicit FfsFinder(const TreeModel * treeModel, QObject *parent = 0);
~FfsFinder();
QVector<QPair<QString, QModelIndex> > getMessages() const;
void clearMessages();
STATUS findHexPattern(const QModelIndex & index, const QByteArray & hexPattern, const UINT8 mode);
STATUS findGuidPattern(const QModelIndex & index, const QByteArray & guidPattern, const UINT8 mode);
STATUS findTextPattern(const QModelIndex & index, const QString & pattern, const bool unicode, const Qt::CaseSensitivity caseSensitive);
private:
const TreeModel* model;
QVector<QPair<QString, QModelIndex> > messagesVector;
void msg(const QString & message, const QModelIndex &index = QModelIndex());
};
#endif