-
Notifications
You must be signed in to change notification settings - Fork 27
/
swipe.h
61 lines (46 loc) · 1.05 KB
/
swipe.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
#ifndef MAGSTRIPE_H
#define MAGSTRIPE_H
#include <QtGui/QMainWindow>
#include <QLabel>
#include <QPushButton>
#include <QVBoxLayout>
#include <QFormLayout>
#include <QScrollArea>
#include <QAudioInput>
#include "magdecode.h"
#include "carddetect.h"
class SWipe : public QMainWindow {
Q_OBJECT
public:
SWipe(QWidget *parent = 0);
~SWipe();
private:
void mkWindow();
QLabel charStreamLabel;
QLabel bitStreamLabel;
QLabel encodingLabel;
QLabel validSwipeLabel;
QLabel typeLabel;
QLabel accountNumberLabel;
QLabel accountHolderLabel;
QLabel accountIssuerLabel;
QLabel accountValidLabel;
QLabel expirationDateLabel;
QLabel aamvaIssuerLabel;
QLabel aamvaIssuerNameLabel;
QLabel aamvaBirthdayLabel;
QLabel aamvaAgeLabel;
CardDetect cdetect;
QLabel statusLabel;
QPushButton mainBtn;
bool captureAudio;
MagDecode *magDec;
QAudioInput *audioInput;
QAudioFormat audioFormat;
void captureStart();
void captureStop();
private slots:
void mainBtn_clicked();
void showCard( MagCard card );
};
#endif // MAGSTRIPE_H