-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreplicodehandler.h
48 lines (38 loc) · 909 Bytes
/
replicodehandler.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef REPLICODEHANDLER_H
#define REPLICODEHANDLER_H
#include <QObject>
#include <QTextDocument>
#include "hivewidget.h"
namespace r_exec {
class _Mem;
}
namespace r_comp {
class Image;
class Metadata;
}
class ReplicodeHandler : public QObject
{
Q_OBJECT
public:
explicit ReplicodeHandler(QObject *parent = 0);
~ReplicodeHandler();
const QMap<QString, Node> &getNodes() { return m_nodes; }
const QList<Edge> &getEdges() { return m_edges; }
void loadImage(QString file);
void loadSource(QString file);
void stop();
public slots:
bool start();
signals:
void error(QString error);
private:
void decompileImage(r_comp::Image *image);
bool initialize();
r_exec::_Mem *m_mem;
r_comp::Image *m_image;
r_comp::Metadata *m_metadata;
QMap<QString, Node> m_nodes;
QList<Edge> m_edges;
bool m_initSuccess;
};
#endif // REPLICODEHANDLER_H