PythonQtWrapper_QSocketNotifier.h
50 lines
| 1.6 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QSOCKETNOTIFIER_H | ||
#define PYTHONQTWRAPPER_QSOCKETNOTIFIER_H | ||||
#include <qsocketnotifier.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qlist.h> | ||||
#include <qobject.h> | ||||
#include <qsocketnotifier.h> | ||||
florianlink
|
r24 | class PythonQtShell_QSocketNotifier : public QSocketNotifier | ||
{ | ||||
public: | ||||
PythonQtShell_QSocketNotifier(int socket, QSocketNotifier::Type arg__2, QObject* parent = 0):QSocketNotifier(socket, arg__2, 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 void timerEvent(QTimerEvent* arg__1); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
class PythonQtPublicPromoter_QSocketNotifier : public QSocketNotifier | ||||
{ public: | ||||
florianlink
|
r28 | inline bool promoted_event(QEvent* arg__1) { return QSocketNotifier::event(arg__1); } | ||
florianlink
|
r24 | }; | ||
florianlink
|
r13 | class PythonQtWrapper_QSocketNotifier : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(Type ) | ||||
enum Type{ | ||||
Read = QSocketNotifier::Read, Write = QSocketNotifier::Write, Exception = QSocketNotifier::Exception}; | ||||
public slots: | ||||
QSocketNotifier* new_QSocketNotifier(int socket, QSocketNotifier::Type arg__2, QObject* parent = 0); | ||||
void delete_QSocketNotifier(QSocketNotifier* obj) { delete obj; } | ||||
florianlink
|
r24 | bool isEnabled(QSocketNotifier* theWrappedObject) const; | ||
florianlink
|
r13 | QSocketNotifier::Type type(QSocketNotifier* theWrappedObject) const; | ||
florianlink
|
r28 | bool event(QSocketNotifier* theWrappedObject, QEvent* arg__1); | ||
int socket(QSocketNotifier* theWrappedObject) const; | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QSOCKETNOTIFIER_H | ||||