mirror of https://github.com/wh201906/Proxmark3GUI
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
782 B
C++
48 lines
782 B
C++
#include "mifare.h"
|
|
|
|
Mifare::Mifare(QObject *parent) : QObject(parent)
|
|
{
|
|
isProcessingData=false;
|
|
isProcessingKey=false;
|
|
}
|
|
|
|
void Mifare::processData(const QString str)
|
|
{
|
|
if(isProcessingData)
|
|
{
|
|
if(inputType==FROM_RDBL)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|
|
void Mifare::processKey(const QString str)
|
|
{
|
|
if(isProcessingKey)
|
|
{
|
|
|
|
}
|
|
}
|
|
void Mifare::setProcessingState(ProcessingState st)
|
|
{
|
|
if(st==Mifare::NONE)
|
|
{
|
|
isProcessingKey=false;
|
|
isProcessingData=false;
|
|
}
|
|
else if(st==Mifare::KEY)
|
|
{
|
|
isProcessingKey=true;
|
|
isProcessingData=false;
|
|
}
|
|
else if(st==Mifare::DATA)
|
|
{
|
|
isProcessingKey=false;
|
|
isProcessingData=true;
|
|
}
|
|
}
|
|
void Mifare::setInputType(InputType tp)
|
|
{
|
|
inputType=tp;
|
|
}
|