-
Notifications
You must be signed in to change notification settings - Fork 0
/
advancedsearch.h
66 lines (39 loc) · 1.15 KB
/
advancedsearch.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
#pragma once
#include <QDialog>
#include <QtSql/QSqlDatabase>
#include <QtSql/QSqlDriver>
#include <QtSql/QSqlQuery>
#include <QtSql/QSql>
#include <QtSql/QSqlResult>
#include <memory>
#include "MySQLSimpleDriver.hpp"
using Query = std::shared_ptr<querryResult>;
class Team;
namespace Ui {
class advancedSearch;
}
class advancedSearch : public QDialog
{
Q_OBJECT
public:
explicit advancedSearch(mysqldriver * _db, const std::list<size_t>& src, const QString& whereSQLstatement, bool ok1 = false, QDialog *parent = nullptr);
~advancedSearch();
void _update();
mysqldriver * db;
QString lastQuer = "";
QString res;
bool okok = false;
bool everythingGoesGoog = false;
const std::list<size_t>& curr;
QString finalQuery = "";
private slots:
void on_permissionSearch_textChanged(const QString &arg1);
void on_idSearch_textChanged(const QString &arg1);
void on_nameSearch_textChanged(const QString &arg1);
void on_surnameSearch_textChanged(const QString &arg1);
void on_regionSearch_currentTextChanged(const QString &arg1);
void on_searchButton_clicked();
void on_resultCount_valueChanged(int arg1);
private:
Ui::advancedSearch *ui;
};