Proxmark3GUI/module/mifare.h

45 lines
826 B
C
Raw Normal View History

2020-04-07 23:57:56 +08:00
#ifndef MIFARE_H
#define MIFARE_H
2020-04-22 16:42:58 +08:00
#include "common/util.h"
2020-04-07 23:57:56 +08:00
#include <QObject>
2020-04-22 21:14:33 +08:00
#include <QString>
2020-04-07 23:57:56 +08:00
class Mifare : public QObject
{
Q_OBJECT
public:
2020-04-22 16:42:58 +08:00
explicit Mifare(Util *addr,QObject *parent = nullptr);
2020-04-07 23:57:56 +08:00
enum ProcessingState
{
NONE,
DATA,
KEY,
};
enum InputType
{
FROM_RDBL,
FROM_RDSC,
FROM_CHK,
FROM_NESTED,
};
void setProcessingState(ProcessingState st);
void setInputType(InputType tp);
2020-04-22 21:14:33 +08:00
bool isKeyValid(const QString key);
2020-04-07 23:57:56 +08:00
public slots:
void processData(const QString str);
void processKey(const QString str);
signals:
private:
2020-04-22 16:42:58 +08:00
Util* util;
2020-04-07 23:57:56 +08:00
bool isProcessingData=false;
bool isProcessingKey=false;
InputType inputType;
QStringList dataList;
QStringList keyList[2];
};
#endif // MIFARE_H