##// END OF EJS Templates
improved so that dict contains properties and that dir() shows all available things, including the derived base attributes...
improved so that dict contains properties and that dir() shows all available things, including the derived base attributes git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@70 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r28:cf202027b50b
r34:5daedfb035c8
Show More
PythonQtWrapper_QLocalServer.h
62 lines | 2.4 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QLOCALSERVER_H
#define PYTHONQTWRAPPER_QLOCALSERVER_H
#include <qlocalserver.h>
#include <QObject>
#include <PythonQt.h>
#include <QVariant>
#include <qbytearray.h>
#include <qcoreevent.h>
#include <qlist.h>
#include <qlocalserver.h>
#include <qlocalsocket.h>
#include <qobject.h>
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 QLocalSocket* promoted_nextPendingConnection() { return QLocalServer::nextPendingConnection(); }
inline bool promoted_hasPendingConnections() const { return QLocalServer::hasPendingConnections(); }
inline void promoted_incomingConnection(quintptr socketDescriptor) { QLocalServer::incomingConnection(socketDescriptor); }
};
class PythonQtWrapper_QLocalServer : public QObject
{ Q_OBJECT
public:
public slots:
QLocalServer* new_QLocalServer(QObject* parent = 0);
void delete_QLocalServer(QLocalServer* obj) { delete obj; }
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;
void incomingConnection(QLocalServer* theWrappedObject, quintptr socketDescriptor);
bool waitForNewConnection(QLocalServer* theWrappedObject, int msec = 0, bool* timedOut = 0);
QString serverName(QLocalServer* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QLOCALSERVER_H