|
|
#ifndef PYTHONQTWRAPPER_QFILESYSTEMWATCHER_H
|
|
|
#define PYTHONQTWRAPPER_QFILESYSTEMWATCHER_H
|
|
|
|
|
|
#include <qfilesystemwatcher.h>
|
|
|
#include <QObject>
|
|
|
|
|
|
#include <PythonQt.h>
|
|
|
|
|
|
#include <QStringList>
|
|
|
#include <QVariant>
|
|
|
#include <qbytearray.h>
|
|
|
#include <qcoreevent.h>
|
|
|
#include <qlist.h>
|
|
|
#include <qobject.h>
|
|
|
#include <qstringlist.h>
|
|
|
|
|
|
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;
|
|
|
};
|
|
|
|
|
|
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 removePaths(QFileSystemWatcher* theWrappedObject, const QStringList& files);
|
|
|
void addPaths(QFileSystemWatcher* theWrappedObject, const QStringList& files);
|
|
|
QStringList directories(QFileSystemWatcher* theWrappedObject) const;
|
|
|
QStringList files(QFileSystemWatcher* theWrappedObject) const;
|
|
|
void removePath(QFileSystemWatcher* theWrappedObject, const QString& file);
|
|
|
void addPath(QFileSystemWatcher* theWrappedObject, const QString& file);
|
|
|
};
|
|
|
|
|
|
#endif // PYTHONQTWRAPPER_QFILESYSTEMWATCHER_H
|
|
|
|