30 lines
531 B
C++
30 lines
531 B
C++
#ifndef SHTTPSENDER_H
|
|
#define SHTTPSENDER_H
|
|
|
|
#include <QObject>
|
|
#include <QtNetwork>
|
|
#include <QtNetwork/QTcpSocket>
|
|
#include <QSqlDatabase>
|
|
|
|
class SHttpSender : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
SHttpSender(QObject * obj = 0);
|
|
void SendData(int _company_num);
|
|
virtual ~SHttpSender();
|
|
|
|
private slots:
|
|
void ReadData();
|
|
void DisConnected();
|
|
void error(QAbstractSocket::SocketError error);
|
|
|
|
private:
|
|
QTcpSocket *socket;
|
|
quint16 port;
|
|
QString addr;
|
|
QString addrName;
|
|
};
|
|
|
|
#endif // SHTTPSENDER_H
|