Revision 1792 trunk/client/gui_qt/AutoImport.h

AutoImport.h (revision 1792)
8 8

                
9 9
#include "QNNTPGrabGlue.h"
10 10

                
11
class MainWindow;   /* Prevent recursion */
12

                
11 13
class AutoImport : public QObject
12 14
{
13 15
    Q_OBJECT
14 16

                
15 17
public:
16
    AutoImport(QNNTPGrabGlue *glue);
18
    AutoImport(MainWindow *mainwindow, QNNTPGrabGlue *glue);
17 19

                
18 20
    void enableWatch(QString path);
19 21
    void disableWatch();
20 22

                
21 23
private:
22 24
    QNNTPGrabGlue *glue;
25
    MainWindow *mainwindow;
23 26
    QFileSystemWatcher watcher;
24 27
    QString path;
25 28
    QTimer fileReadyTimer;
... ...
30 33
private slots:
31 34
    void directoryChanged(QString path);
32 35
    void fileReadyTimer_timeout();
36

                
37
    void onPluginEvent(QString plugin_name, QString event_name, QList args);
33 38
};
34 39

                
35 40
#endif // AUTOIMPORT_H

Also available in: Unified diff