iVS3D v2.0.0
Loading...
Searching...
No Matches
openexecutor.h
1#ifndef OPENEXECUTOR_H
2#define OPENEXECUTOR_H
3
4#include "DataManager.h"
5
6#include <QtConcurrent/QtConcurrent>
7#include <QFuture>
8#include <QFutureWatcher>
9
21class OpenExecutor : public QObject
22{
23 Q_OBJECT
24public:
31 OpenExecutor(const QString &pathToOpen, DataManager *dataManager);
39 void open();
40
41public slots:
45 void slot_abort();
46
47signals:
52 void sig_finished(int result);
53
54
55private slots:
59 void slot_finished();
60
61private:
62 QFuture<int> m_futurePics;
63 QFutureWatcher<int> *m_futurePicsWatcher;
64 DataManager *m_dataManager;
65 QString m_path;
66
67 bool isProjectPath();
68};
69
70#endif // OPENEXECUTOR_H
The DataManager class is a Facade for the data holding classes in the model. It delegates most of it'...
Definition DataManager.h:29
The OpenExecutor class tries to import files from given path. It does this in a concurrent thread and...
Definition openexecutor.h:22
~OpenExecutor()
~OpenExecuter Destructor, which disconnects the futureWatcher and deletes it
Definition openexecutor.cpp:5
void open()
open uses the given DataManger to open the file (defined through pathToOpen) in a seperate thread
Definition openexecutor.cpp:14
void sig_finished(int result)
[signal] sig_finished signals the connected element that it is done
void slot_finished()
[slot] slot_finished emits sig_process to show that it is done
Definition openexecutor.cpp:38
void slot_abort()
[slot] slot_abort calls destructor and aborts current data retrieval
Definition openexecutor.cpp:33