-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
86 lines (74 loc) · 2.05 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include"camera.h"
#include"serial.h"
#include"sqlite3.h"
#include"carspacedialog.h"
#include"admindialog.h"
#include"advertisement.h"
#include<time.h>
#include<QTimer>
#include<QDateTime>
#include<QBuffer>
#include<QMessageBox>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QByteArray>
#include <QMainWindow>
#include<QJsonDocument>
#include<QJsonArray>
#include<QJsonObject>
#include<QJsonValue>
#include <QSignalMapper>
#include <QPushButton>
#include<QMap>
#include<QStringList>
#include<QDir>
#include<QPixmap>
#include<QStackedWidget>
#include<QUrlQuery>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
QString getPlatenum();//获取当前车牌号
public slots:
void handleButtonClicked();//关联两个切换按钮
private slots:
void on_pb_exit_clicked();
void cardidfun(int value);
void on_pb_admlogin_clicked();
void netReply(QNetworkReply *rep);
void netReply_2(QNetworkReply*rep);
void on_pb_userlogin_clicked();
void setLabelColor();
void on_pb_weather_clicked();
private:
Ui::MainWindow *ui;
camera *mycamera;//摄像头对象
serial *myserial;//串口对象
sqlite3 *mysqlite;
Advertisement *myadver;//广告播放对象
QImage myimage;
QNetworkAccessManager myManager;//关联车牌识别请求的回复
QNetworkAccessManager myManager_2;//关联天气请求的回复
int starttime;//入库时间
int endtime;//出库时间
QString cardid;//车卡号
QString platenum;//车牌号
float balance;//余额
int position;//位置
class adminDialog *adminDialog;
class cardDialog *cardialog;
class CarSpaceDialog *carspace;
QTimer *mytimer;
QLabel **p_lab;
QString originalStyle;//保留控件原有样式
};
#endif // MAINWINDOW_H