-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsecurityquestions.h
58 lines (42 loc) · 1.41 KB
/
securityquestions.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
#ifndef SECURITYQUESTIONS_H
#define SECURITYQUESTIONS_H
#include <QWidget>
#include <QLineEdit>
#include <QComboBox>
namespace Ui {
class SecurityQuestions;
}
class SecurityQuestions : public QWidget
{
Q_OBJECT
public:
explicit SecurityQuestions(QWidget *parent = 0);
~SecurityQuestions();
void set_custom_question(QComboBox* current_comboBox);
void REQQ(QList<QByteArray> message);
bool ready_to_send(QString &security_question_msg, QString &security_answer_msg);
private slots:
void comboBox_ptrs_to_list();
void init_question_list(QList<QByteArray> message);
void init_comboBox_list();
void on_comboBox_q1_activated(int index);
void on_comboBox_q2_activated(int index);
void on_comboBox_q3_activated(int index);
void update_selected_questions();
void update_comboBoxes();
void set_list_stylesheet(QComboBox* combobox);
void on_comboBox_q1_currentTextChanged(const QString &arg1);
bool eventFilter(QObject* obj, QEvent* event);
void on_comboBox_q2_currentTextChanged(const QString &arg1);
void on_comboBox_q3_editTextChanged(const QString &arg1);
bool answers_ready();
bool questions_ready();
private:
Ui::SecurityQuestions *ui;
bool customQ_flag;
QList<QString> selected_questions;
QList<QString> custom_questions;
QList<QString> default_questions;
QList<QComboBox*> comboBoxes;
};
#endif // SECURITYQUESTIONS_H