##// 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_QLocalSocket.h
49 lines | 3.0 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QLOCALSOCKET_H
#define PYTHONQTWRAPPER_QLOCALSOCKET_H
#include <qlocalsocket.h>
#include <QObject>
#include <QVariant>
#include <qbytearray.h>
#include <qcoreevent.h>
#include <qlist.h>
#include <qlocalsocket.h>
#include <qobject.h>
class PythonQtWrapper_QLocalSocket : public QObject
{ Q_OBJECT
public:
Q_ENUMS(LocalSocketState LocalSocketError )
enum LocalSocketState{
UnconnectedState = QLocalSocket::UnconnectedState, ConnectingState = QLocalSocket::ConnectingState, ConnectedState = QLocalSocket::ConnectedState, ClosingState = QLocalSocket::ClosingState};
enum LocalSocketError{
ConnectionRefusedError = QLocalSocket::ConnectionRefusedError, PeerClosedError = QLocalSocket::PeerClosedError, ServerNotFoundError = QLocalSocket::ServerNotFoundError, SocketAccessError = QLocalSocket::SocketAccessError, SocketResourceError = QLocalSocket::SocketResourceError, SocketTimeoutError = QLocalSocket::SocketTimeoutError, DatagramTooLargeError = QLocalSocket::DatagramTooLargeError, ConnectionError = QLocalSocket::ConnectionError, UnsupportedSocketOperationError = QLocalSocket::UnsupportedSocketOperationError, UnknownSocketError = QLocalSocket::UnknownSocketError};
public slots:
QLocalSocket* new_QLocalSocket(QObject* parent = 0);
void delete_QLocalSocket(QLocalSocket* obj) { delete obj; }
void abort(QLocalSocket* theWrappedObject);
qint64 bytesAvailable(QLocalSocket* theWrappedObject) const;
qint64 bytesToWrite(QLocalSocket* theWrappedObject) const;
bool canReadLine(QLocalSocket* theWrappedObject) const;
void close(QLocalSocket* theWrappedObject);
void connectToServer(QLocalSocket* theWrappedObject, const QString& name, QIODevice::OpenMode openMode = QIODevice::ReadWrite);
void disconnectFromServer(QLocalSocket* theWrappedObject);
QLocalSocket::LocalSocketError error(QLocalSocket* theWrappedObject) const;
bool flush(QLocalSocket* theWrappedObject);
QString fullServerName(QLocalSocket* theWrappedObject) const;
bool isSequential(QLocalSocket* theWrappedObject) const;
bool isValid(QLocalSocket* theWrappedObject) const;
qint64 readBufferSize(QLocalSocket* theWrappedObject) const;
QString serverName(QLocalSocket* theWrappedObject) const;
void setReadBufferSize(QLocalSocket* theWrappedObject, qint64 size);
bool setSocketDescriptor(QLocalSocket* theWrappedObject, quintptr socketDescriptor, QLocalSocket::LocalSocketState socketState = QLocalSocket::ConnectedState, QIODevice::OpenMode openMode = QIODevice::ReadWrite);
quintptr socketDescriptor(QLocalSocket* theWrappedObject) const;
QLocalSocket::LocalSocketState state(QLocalSocket* theWrappedObject) const;
bool waitForBytesWritten(QLocalSocket* theWrappedObject, int msecs = 30000);
bool waitForConnected(QLocalSocket* theWrappedObject, int msecs = 30000);
bool waitForDisconnected(QLocalSocket* theWrappedObject, int msecs = 30000);
bool waitForReadyRead(QLocalSocket* theWrappedObject, int msecs = 30000);
};
#endif // PYTHONQTWRAPPER_QLOCALSOCKET_H