PythonQtWrapper_QFileSystemWatcher.h
47 lines
| 1.7 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QFILESYSTEMWATCHER_H | ||
#define PYTHONQTWRAPPER_QFILESYSTEMWATCHER_H | ||||
#include <qfilesystemwatcher.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QStringList> | ||
#include <QVariant> | ||||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qlist.h> | ||||
#include <qobject.h> | ||||
#include <qstringlist.h> | ||||
florianlink
|
r24 | class PythonQtShell_QFileSystemWatcher : public QFileSystemWatcher | ||
{ | ||||
public: | ||||
PythonQtShell_QFileSystemWatcher(QObject* parent = 0):QFileSystemWatcher(parent),_wrapper(NULL) {}; | ||||
PythonQtShell_QFileSystemWatcher(const QStringList& paths, QObject* parent = 0):QFileSystemWatcher(paths, 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; | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QFileSystemWatcher : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QFileSystemWatcher* new_QFileSystemWatcher(QObject* parent = 0); | ||||
QFileSystemWatcher* new_QFileSystemWatcher(const QStringList& paths, QObject* parent = 0); | ||||
void delete_QFileSystemWatcher(QFileSystemWatcher* obj) { delete obj; } | ||||
void addPaths(QFileSystemWatcher* theWrappedObject, const QStringList& files); | ||||
QStringList directories(QFileSystemWatcher* theWrappedObject) const; | ||||
void removePath(QFileSystemWatcher* theWrappedObject, const QString& file); | ||||
florianlink
|
r28 | void removePaths(QFileSystemWatcher* theWrappedObject, const QStringList& files); | ||
florianlink
|
r24 | QStringList files(QFileSystemWatcher* theWrappedObject) const; | ||
florianlink
|
r28 | void addPath(QFileSystemWatcher* theWrappedObject, const QString& file); | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QFILESYSTEMWATCHER_H | ||||