-
Notifications
You must be signed in to change notification settings - Fork 0
/
stick20responsedialog.h
109 lines (81 loc) · 2.5 KB
/
stick20responsedialog.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
107
108
109
/*
* Author: Copyright (C) Rudolf Boeddeker Date: 2013-08-13
*
* This file is part of GPF Crypto Stick 2
*
* GPF Crypto Stick 2 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* GPF Crypto Stick is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GPF Crypto Stick. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef STICK20RESPONSEDIALOG_H
#define STICK20RESPONSEDIALOG_H
#include <QDialog>
#include <QTimer>
#include "device.h"
#include "response.h"
#define STICK20_DEBUG_TEXT_LEN 600000
#ifdef __cplusplus
extern "C" {
#endif
extern char DebugText_Stick20[STICK20_DEBUG_TEXT_LEN];
extern unsigned long DebugTextlen_Stick20;
extern int DebugingActive;
extern int DebugingStick20PoolingActive;
void DebugAppendText (char *Text);
#ifdef __cplusplus
} // extern "C"
#endif
class Stick20ResponseTask : public QObject
{
Q_OBJECT
public:
Stick20ResponseTask(QWidget *parent,Device *Cryptostick20,QSystemTrayIcon *MainWndTrayIcon);
~Stick20ResponseTask();
void done (int Status);
void checkStick20Status();
void GetResponse (void);
void NoStopWhenStatusOK ();
void ShowIconMessage(QString IconText);
QWidget *Stick20ResponseTaskParent;
Device *cryptostick;
QSystemTrayIcon *trayIcon;
Response *stick20Response;
int ActiveCommand;
bool FlagNoStopWhenStatusOK;
int ResultValue;
int EndFlag;
int Counter_u32;
int retStick20Respone;
};
namespace Ui {
class Stick20ResponseDialog;
}
class Stick20ResponseDialog : public QDialog
{
Q_OBJECT
public:
Stick20ResponseTask *Stick20Task;
explicit Stick20ResponseDialog(QWidget *parent = 0);
~Stick20ResponseDialog();
void checkStick20StatusDebug(Response *stick20Response,int Status);
void showStick20Configuration (int Status);
QTimer *pollStick20Timer;
private:
Ui::Stick20ResponseDialog *ui;
// int ActiveCommand;
// int Counter_u32;
// bool FlagNoStopWhenStatusOK;
private slots:
void checkStick20StatusDialog();
void on_pushButton_clicked();
};
#endif // STICK20RESPONSEDIALOG_H