#ifndef WSCLIENT_H #define WSCLIENT_H #include #include #include #include #include #include #include #include class WSClient : public QObject { Q_OBJECT public: explicit WSClient(QWebSocket* so, QObject *parent = nullptr); ~WSClient(); void chkCompanyCodeList(QString loginname); void sendLastStatus(); void chkLastNote(QString company_code); void chkCompanyAlarmList(QString loginname, QString company_code); QJsonArray getAlarmListByCompanyIdx(unsigned int idx); signals: void closed(); public slots: void processTextMessage(QString message); void socketDisconnected(); private: QWebSocket* m_client; QStringList CompanyCodeList; QList CompanyIdxList; }; #endif // WSCLIENT_H