##// END OF EJS Templates
- added hasOwner method to manage ownership more nicely...
- added hasOwner method to manage ownership more nicely - added force flag to make delete() work - added check for hasOwner git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@51 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r15:ae998290bf19
Show More
PythonQtWrapper_QLocalServer.h
35 lines | 1.3 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QLOCALSERVER_H
#define PYTHONQTWRAPPER_QLOCALSERVER_H
#include <qlocalserver.h>
#include <QObject>
#include <QVariant>
#include <qbytearray.h>
#include <qcoreevent.h>
#include <qlist.h>
#include <qlocalserver.h>
#include <qlocalsocket.h>
#include <qobject.h>
class PythonQtWrapper_QLocalServer : public QObject
{ Q_OBJECT
public:
public slots:
QLocalServer* new_QLocalServer(QObject* parent = 0);
void delete_QLocalServer(QLocalServer* obj) { delete obj; }
void close(QLocalServer* theWrappedObject);
QString errorString(QLocalServer* theWrappedObject) const;
QString fullServerName(QLocalServer* theWrappedObject) const;
bool hasPendingConnections(QLocalServer* theWrappedObject) const;
bool isListening(QLocalServer* theWrappedObject) const;
bool listen(QLocalServer* theWrappedObject, const QString& name);
int maxPendingConnections(QLocalServer* theWrappedObject) const;
QLocalSocket* nextPendingConnection(QLocalServer* theWrappedObject);
QAbstractSocket::SocketError serverError(QLocalServer* theWrappedObject) const;
QString serverName(QLocalServer* theWrappedObject) const;
void setMaxPendingConnections(QLocalServer* theWrappedObject, int numConnections);
bool waitForNewConnection(QLocalServer* theWrappedObject, int msec = 0, bool* timedOut = 0);
};
#endif // PYTHONQTWRAPPER_QLOCALSERVER_H