You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
813 B

#ifndef CELLSTATUS_H
#define CELLSTATUS_H
#include <QWidget>
#include "orderoom.h"
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlError>
#include <QMessageBox>
#include "checkbtn.h"
namespace Ui {
class cellstatus;
}
class cellstatus : public QWidget
{
Q_OBJECT
public:
explicit cellstatus(QWidget *parent = nullptr);
~cellstatus();
void setroomNum(int roomNum);
void setDB(QSqlDatabase db);
void setisused(bool i);
void setbtn();
void setcbtn(checkbtn* cbtn);
private slots:
void on_pushButton_clicked();
void on_pushButton_2_clicked();
void onordersuccess();
private:
Ui::cellstatus *ui;
int roomNum;
orderoom *m_order;
checkbtn *cbtn;
QSqlDatabase db;
bool isused;
signals:
void flash();
};
#endif // CELLSTATUS_H