12345678910111213141516171819202122232425262728293031323334353637383940 |
- #ifndef INFOCENTERSERVER_H
- #define INFOCENTERSERVER_H
- #include <QTcpServer>
- #include <QTcpSocket>
- #include <QStringList>
- #include <QTimer>
- #include <QList>
- #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<InfoClient *> clientList;
- // QTimer *timer;
- // QSqlDatabase db;
- // int flag;
- };
- #endif // INFOCENTERSERVER_H
|