##// END OF EJS Templates
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well...
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@52 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r16:c68e0aff542c
Show More
PythonQtWrapper_QTcpServer.h
41 lines | 1.7 KiB | text/x-c | CLexer
#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