#ifndef INFOCENTERSERVER_H #define INFOCENTERSERVER_H #include #include #include #include #include #include "infoclient.h" class InfoCenterServer : public QTcpServer { Q_OBJECT public: explicit InfoCenterServer(QObject *parent = nullptr); void start(); bool check_usercompany(QString agentid, QString compnaycode); void appendData(QString data); protected: void incomingConnection(qintptr socketDescriptor) override; signals: void weblog(QString emitlog); public slots: void write_error(); void receivelog(QString recelog); // void savedata(); private: // QList clientList; // QTimer *timer; // QSqlDatabase db; // int flag; }; #endif // INFOCENTERSERVER_H