#ifndef WSCENTER_H #define WSCENTER_H #include #include //#include //#include #include #include "wsclient.h" QT_FORWARD_DECLARE_CLASS(QWebSocketServer) QT_FORWARD_DECLARE_CLASS(QWebSocket) class WSCenter : public QObject { Q_OBJECT public: explicit WSCenter(QObject *parent = Q_NULLPTR); ~WSCenter(); void checkLastNote(QString companyCode); signals: // void closed(); public slots: void onNewConnection(); void socketDisconnected(); void onSslErrors(const QList &errors); private: QWebSocketServer *m_pWebSocketServer; QList m_clients; }; #endif // WSCENTER_H