-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmainwindow.h
106 lines (102 loc) · 2.96 KB
/
mainwindow.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QSerialPort>
#include <QSerialPortInfo>
#include <QList>
#include <QString>
#include <QStringList>
#include <QDateTime>
#include <QMessageBox>
#include <QDebug>
#include <QCloseEvent>
#include <QHash>
#include <QStandardItem>
#include <QStandardItemModel>
#include <QHashIterator>
#include <QResizeEvent>
#include <QLabel>
#include <QPixmap>
#include <QImage>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
void closeEvent(QCloseEvent *);
void resizeEvent(QResizeEvent * = 0);
int varRowNum;
long currentAttackNum;
bool canExit;
bool TAIT_RADIO_CONNECTED;
QList<QSerialPortInfo> myPorts;
QLabel *myStatus;
QSerialPort mySerial;
QImage pTick;
QImage smTick;
QImage pCross;
QImage smCross;
QString HextoAscii(QString);
QString AsciitoHex(QString);
QString taitAlphabetB[32];
QStringList taitQueryOrder;
QStringList taitSupportedModels;
QStandardItemModel *myModel;
QHash<QString,QString> taitAlphabet;
QHash<QString,QString> taitBands;
QHash<QString,QString> hexTable;
QHash<QString,QString> bitTable;
QHash<QString,QString> taitFeatures;
QHash<QString,QString> attackDetails;
QHash<QString,QString> radioInfo;
void sleep(int);
void LoadConfiguration();
void resetButtons();
void resetDisplay();
void taitInterrogate();
void taitKeysFromSFEKey(QString);
QString taitKeyFromHex(QString);
QString taitHexFromKey(QString);
QString taitEncodeKey(QString);
QString taitWrite(QString,QString = ">");
QString taitChecksum(QString);
QString taitChecksum16(QString);
QString taitDecode(QString);
QString taithswap(QString);
QString TEAEncrypt(QString,QString);
QString TEADecrypt(QString,QString);
QStringList taitGenerateSFE(QString, int = 1);
QStringList taitSFETest(QString); // Returns[4 QStrings] [0] = ENABLED/DISABLED, [1] = Current Sequence, [2] = Next in sequence, [3] Feature Number
private slots:
void on_butInspect_clicked();
void on_cmbPorts_currentIndexChanged(const QString &arg1);
void on_actionApplication_triggered();
void on_butLoadKeys_clicked();
void tait_is_now_connected();
void tait_is_now_disconnected();
void tait_no_reply();
void tait_inspected();
void on_butDisableAllKeys_clicked();
void on_winMain_customContextMenuRequested(const QPoint &pos);
void toggleOneSFE();
void doKeys(QString = "ENABLEALL");
void on_actionFull_SFE_List_triggered();
void on_actionAdvanced_Trunking_Keys_triggered();
void on_actionKeyloader_triggered();
public:
#ifdef QT_DEBUG
void testfunction();
#endif
private:
Ui::MainWindow *ui;
signals:
void TAIT_RADIO_NOREPLY();
void TAIT_RADIO_FINISHED_INSPECTION();
void TAIT_CONNECTED();
void TAIT_DISCONNECTED();
};
#endif // MAINWINDOW_H