forked from ccsens_hardware/qt_qcp_show
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.
34 lines
834 B
34 lines
834 B
#ifndef MAINWIDGET_H
|
|
#define MAINWIDGET_H
|
|
|
|
#include <QWidget>
|
|
#include "patientemergencyinfo.h"
|
|
|
|
namespace Ui {
|
|
class MainWidget;
|
|
}
|
|
|
|
class MainWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MainWidget(QWidget *parent = 0);
|
|
~MainWidget();
|
|
|
|
private:
|
|
Ui::MainWidget *ui;
|
|
QList<PatientEmergencyInfo *> m_patientEmergencyInfos;
|
|
int m_maxPatientNum;
|
|
|
|
public slots:
|
|
void onWsConnectedStatusChanged(int);
|
|
void onNewPatientMergencyInfo(QString firstAidId,QString name,QString content,quint64 realCountDownInSeconds);
|
|
void onPatientMergencyStatusChanged(QString firstAidId,QString time,QString status);
|
|
void addPatientToList(const PatientEmergencyInfo *);
|
|
void deletePatientFromList(QString firstAidId);
|
|
signals:
|
|
statusChanged(QString firstAidId,QString status);
|
|
};
|
|
|
|
#endif // MAINWIDGET_H
|
|
|