|
|
#ifndef PYTHONQTWRAPPER_QTCPSERVER_H
|
|
|
#define PYTHONQTWRAPPER_QTCPSERVER_H
|
|
|
|
|
|
#include <qtcpserver.h>
|
|
|
#include <QObject>
|
|
|
|
|
|
#include <QVariant>
|
|
|
#include <qbytearray.h>
|
|
|
#include <qcoreevent.h>
|
|
|
#include <qhostaddress.h>
|
|
|
#include <qlist.h>
|
|
|
#include <qnetworkproxy.h>
|
|
|
#include <qobject.h>
|
|
|
#include <qtcpserver.h>
|
|
|
#include <qtcpsocket.h>
|
|
|
|
|
|
class PythonQtWrapper_QTcpServer : public QObject
|
|
|
{ Q_OBJECT
|
|
|
public:
|
|
|
public slots:
|
|
|
QTcpServer* new_QTcpServer(QObject* parent = 0);
|
|
|
void delete_QTcpServer(QTcpServer* obj) { delete obj; }
|
|
|
void close(QTcpServer* theWrappedObject);
|
|
|
QString errorString(QTcpServer* theWrappedObject) const;
|
|
|
bool hasPendingConnections(QTcpServer* theWrappedObject) const;
|
|
|
bool isListening(QTcpServer* theWrappedObject) const;
|
|
|
bool listen(QTcpServer* theWrappedObject, const QHostAddress& address = QHostAddress::Any, unsigned short port = 0);
|
|
|
int maxPendingConnections(QTcpServer* theWrappedObject) const;
|
|
|
QTcpSocket* nextPendingConnection(QTcpServer* theWrappedObject);
|
|
|
QNetworkProxy proxy(QTcpServer* theWrappedObject) const;
|
|
|
QHostAddress serverAddress(QTcpServer* theWrappedObject) const;
|
|
|
QAbstractSocket::SocketError serverError(QTcpServer* theWrappedObject) const;
|
|
|
unsigned short serverPort(QTcpServer* theWrappedObject) const;
|
|
|
void setMaxPendingConnections(QTcpServer* theWrappedObject, int numConnections);
|
|
|
void setProxy(QTcpServer* theWrappedObject, const QNetworkProxy& networkProxy);
|
|
|
bool setSocketDescriptor(QTcpServer* theWrappedObject, int socketDescriptor);
|
|
|
int socketDescriptor(QTcpServer* theWrappedObject) const;
|
|
|
bool waitForNewConnection(QTcpServer* theWrappedObject, int msec = 0, bool* timedOut = 0);
|
|
|
};
|
|
|
|
|
|
#endif // PYTHONQTWRAPPER_QTCPSERVER_H
|
|
|
|