-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdatabase_handler.h
45 lines (42 loc) · 1.06 KB
/
database_handler.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
#ifndef DATABASE_HANDLER_H
#define DATABASE_HANDLER_H
#include <QDialog>
#include <QTableView>
#include <QtWidgets>
class database_handler
{
private:
QString date, time, idNo, purpose, vehicleNo,name, vehicle_color;
int noPeople, dueVehicle, gateNo, mobileNo;
bool inside;
public:
database_handler();
QString getName();
void setName(QString);
void setVehicleColor(QString);
QString getVehicleColor();
void setDate(QString);
QString getDate();
void setNoPeople(int);
int getNoPeople();
void setTime(QString);
QString getTime();
int getDueVehicle();
void setDueVehicle(int);
int getGateNo();
void setGateNo(int);
void setIdNo(QString);
QString getIdNo();
void setInside(bool);
bool getInside();
void saveEntries(database_handler database);
void deleteEntries();
QString getPurpose();
void setPurpose(QString);
bool isVehcileReg(QString);
void setVehicleNo(QString);
QString getVehicleNo();
void setMobileNo(int);
int getMobileNo();
};
#endif // DATABASE_HANDLER_H