PythonQtWrapper_QLocalServer.h
62 lines
| 2.4 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QLOCALSERVER_H | ||
#define PYTHONQTWRAPPER_QLOCALSERVER_H | ||||
#include <qlocalserver.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qlist.h> | ||||
#include <qlocalserver.h> | ||||
#include <qlocalsocket.h> | ||||
#include <qobject.h> | ||||
florianlink
|
r24 | class PythonQtShell_QLocalServer : public QLocalServer | ||
{ | ||||
public: | ||||
PythonQtShell_QLocalServer(QObject* parent = 0):QLocalServer(parent),_wrapper(NULL) {}; | ||||
virtual void childEvent(QChildEvent* arg__1); | ||||
virtual void customEvent(QEvent* arg__1); | ||||
virtual bool event(QEvent* arg__1); | ||||
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); | ||||
virtual bool hasPendingConnections() const; | ||||
virtual void incomingConnection(quintptr socketDescriptor); | ||||
virtual QLocalSocket* nextPendingConnection(); | ||||
virtual void timerEvent(QTimerEvent* arg__1); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
class PythonQtPublicPromoter_QLocalServer : public QLocalServer | ||||
{ public: | ||||
florianlink
|
r73 | inline void promoted_incomingConnection(quintptr socketDescriptor) { QLocalServer::incomingConnection(socketDescriptor); } | ||
florianlink
|
r28 | inline QLocalSocket* promoted_nextPendingConnection() { return QLocalServer::nextPendingConnection(); } | ||
inline bool promoted_hasPendingConnections() const { return QLocalServer::hasPendingConnections(); } | ||||
florianlink
|
r24 | }; | ||
florianlink
|
r13 | class PythonQtWrapper_QLocalServer : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QLocalServer* new_QLocalServer(QObject* parent = 0); | ||||
void delete_QLocalServer(QLocalServer* obj) { delete obj; } | ||||
florianlink
|
r73 | void incomingConnection(QLocalServer* theWrappedObject, quintptr socketDescriptor); | ||
bool waitForNewConnection(QLocalServer* theWrappedObject, int msec = 0, bool* timedOut = 0); | ||||
QString serverName(QLocalServer* theWrappedObject) const; | ||||
florianlink
|
r13 | bool listen(QLocalServer* theWrappedObject, const QString& name); | ||
int maxPendingConnections(QLocalServer* theWrappedObject) const; | ||||
QLocalSocket* nextPendingConnection(QLocalServer* theWrappedObject); | ||||
florianlink
|
r24 | void close(QLocalServer* theWrappedObject); | ||
QString errorString(QLocalServer* theWrappedObject) const; | ||||
florianlink
|
r13 | void setMaxPendingConnections(QLocalServer* theWrappedObject, int numConnections); | ||
florianlink
|
r24 | bool hasPendingConnections(QLocalServer* theWrappedObject) const; | ||
bool isListening(QLocalServer* theWrappedObject) const; | ||||
florianlink
|
r28 | QAbstractSocket::SocketError serverError(QLocalServer* theWrappedObject) const; | ||
florianlink
|
r24 | QString fullServerName(QLocalServer* theWrappedObject) const; | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QLOCALSERVER_H | ||||