##// 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.cpp
96 lines | 2.6 KiB | text/x-c | CppLexer
#include "PythonQtWrapper_QTcpServer.h"
#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>
QTcpServer* PythonQtWrapper_QTcpServer::new_QTcpServer(QObject* parent)
{
return new QTcpServer(parent); }
void PythonQtWrapper_QTcpServer::close(QTcpServer* theWrappedObject)
{
theWrappedObject->close();
}
QString PythonQtWrapper_QTcpServer::errorString(QTcpServer* theWrappedObject) const
{
return theWrappedObject->errorString();
}
bool PythonQtWrapper_QTcpServer::hasPendingConnections(QTcpServer* theWrappedObject) const
{
return theWrappedObject->hasPendingConnections();
}
bool PythonQtWrapper_QTcpServer::isListening(QTcpServer* theWrappedObject) const
{
return theWrappedObject->isListening();
}
bool PythonQtWrapper_QTcpServer::listen(QTcpServer* theWrappedObject, const QHostAddress& address, unsigned short port)
{
return theWrappedObject->listen(address, port);
}
int PythonQtWrapper_QTcpServer::maxPendingConnections(QTcpServer* theWrappedObject) const
{
return theWrappedObject->maxPendingConnections();
}
QTcpSocket* PythonQtWrapper_QTcpServer::nextPendingConnection(QTcpServer* theWrappedObject)
{
return theWrappedObject->nextPendingConnection();
}
QNetworkProxy PythonQtWrapper_QTcpServer::proxy(QTcpServer* theWrappedObject) const
{
return theWrappedObject->proxy();
}
QHostAddress PythonQtWrapper_QTcpServer::serverAddress(QTcpServer* theWrappedObject) const
{
return theWrappedObject->serverAddress();
}
QAbstractSocket::SocketError PythonQtWrapper_QTcpServer::serverError(QTcpServer* theWrappedObject) const
{
return theWrappedObject->serverError();
}
unsigned short PythonQtWrapper_QTcpServer::serverPort(QTcpServer* theWrappedObject) const
{
return theWrappedObject->serverPort();
}
void PythonQtWrapper_QTcpServer::setMaxPendingConnections(QTcpServer* theWrappedObject, int numConnections)
{
theWrappedObject->setMaxPendingConnections(numConnections);
}
void PythonQtWrapper_QTcpServer::setProxy(QTcpServer* theWrappedObject, const QNetworkProxy& networkProxy)
{
theWrappedObject->setProxy(networkProxy);
}
bool PythonQtWrapper_QTcpServer::setSocketDescriptor(QTcpServer* theWrappedObject, int socketDescriptor)
{
return theWrappedObject->setSocketDescriptor(socketDescriptor);
}
int PythonQtWrapper_QTcpServer::socketDescriptor(QTcpServer* theWrappedObject) const
{
return theWrappedObject->socketDescriptor();
}
bool PythonQtWrapper_QTcpServer::waitForNewConnection(QTcpServer* theWrappedObject, int msec, bool* timedOut)
{
return theWrappedObject->waitForNewConnection(msec, timedOut);
}