2015-09-13 20:15:26 +08:00
|
|
|
/* uefifind.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.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2016-04-09 18:47:19 +08:00
|
|
|
#ifndef UEFIFIND_H
|
|
|
|
#define UEFIFIND_H
|
2015-09-13 20:15:26 +08:00
|
|
|
|
2016-11-03 03:40:38 +08:00
|
|
|
#include <iterator>
|
2016-03-01 16:12:37 +08:00
|
|
|
#include <set>
|
|
|
|
|
2015-09-13 20:15:26 +08:00
|
|
|
#include "../common/basetypes.h"
|
2018-08-02 08:41:11 +08:00
|
|
|
#include "../common/ustring.h"
|
|
|
|
#include "../common/filesystem.h"
|
2015-09-13 20:15:26 +08:00
|
|
|
#include "../common/ffsparser.h"
|
|
|
|
#include "../common/ffs.h"
|
2018-08-02 08:41:11 +08:00
|
|
|
#include "../common/utility.h"
|
2015-09-13 20:15:26 +08:00
|
|
|
|
2016-03-01 16:12:37 +08:00
|
|
|
class UEFIFind
|
2015-09-13 20:15:26 +08:00
|
|
|
{
|
|
|
|
public:
|
2016-03-01 16:12:37 +08:00
|
|
|
explicit UEFIFind();
|
2015-09-13 20:15:26 +08:00
|
|
|
~UEFIFind();
|
|
|
|
|
2018-08-02 08:41:11 +08:00
|
|
|
USTATUS init(const UString & path);
|
|
|
|
USTATUS find(const UINT8 mode, const bool count, const UString & hexPattern, UString & result);
|
2015-09-13 20:15:26 +08:00
|
|
|
|
|
|
|
private:
|
|
|
|
FfsParser* ffsParser;
|
|
|
|
TreeModel* model;
|
|
|
|
bool initDone;
|
|
|
|
};
|
|
|
|
|
2016-04-09 18:47:19 +08:00
|
|
|
#endif // UEFIFIND_H
|