#ifndef PYTHONQTWRAPPER_QLOCALSERVER_H #define PYTHONQTWRAPPER_QLOCALSERVER_H #include #include #include #include #include #include #include #include #include #include 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: inline void promoted_incomingConnection(quintptr socketDescriptor) { QLocalServer::incomingConnection(socketDescriptor); } inline QLocalSocket* promoted_nextPendingConnection() { return QLocalServer::nextPendingConnection(); } inline bool promoted_hasPendingConnections() const { return QLocalServer::hasPendingConnections(); } }; class PythonQtWrapper_QLocalServer : public QObject { Q_OBJECT public: public slots: QLocalServer* new_QLocalServer(QObject* parent = 0); void delete_QLocalServer(QLocalServer* obj) { delete obj; } void incomingConnection(QLocalServer* theWrappedObject, quintptr socketDescriptor); bool waitForNewConnection(QLocalServer* theWrappedObject, int msec = 0, bool* timedOut = 0); QString serverName(QLocalServer* theWrappedObject) const; bool listen(QLocalServer* theWrappedObject, const QString& name); int maxPendingConnections(QLocalServer* theWrappedObject) const; QLocalSocket* nextPendingConnection(QLocalServer* theWrappedObject); void close(QLocalServer* theWrappedObject); QString errorString(QLocalServer* theWrappedObject) const; void setMaxPendingConnections(QLocalServer* theWrappedObject, int numConnections); bool hasPendingConnections(QLocalServer* theWrappedObject) const; bool isListening(QLocalServer* theWrappedObject) const; QAbstractSocket::SocketError serverError(QLocalServer* theWrappedObject) const; QString fullServerName(QLocalServer* theWrappedObject) const; }; #endif // PYTHONQTWRAPPER_QLOCALSERVER_H