##// END OF EJS Templates
Ajout de la méthode wait pour éviter de détruire un thread en cours...
Ajout de la méthode wait pour éviter de détruire un thread en cours d'éxécution

File last commit:

r21:45edf6844d32
r22:ac81b58d0bc3
Show More
DataSourceController.h
39 lines | 1.1 KiB | text/x-c | CLexer
#ifndef SCIQLOP_DATASOURCECONTROLLER_H
#define SCIQLOP_DATASOURCECONTROLLER_H
#include "DataSourceController.h"
#include <QLoggingCategory>
#include <QObject>
#include <Common/spimpl.h>
Q_DECLARE_LOGGING_CATEGORY(LOG_DataSourceController)
/**
* @brief The DataSourceController class aims to make the link between SciQlop
* and its plugins. This is the intermediate class that SciQlop have to use
* in the way to connect a data source. Please first use load method to intialize
* a plugin specified by its metadata name (JSON plugin source) then others specifics
* method will ba able to access it.
* You can load a data source driver plugin then create a data source.
*/
class DataSourceController : public QObject {
Q_OBJECT
public:
explicit DataSourceController(QObject *parent = 0);
virtual ~DataSourceController();
public slots:
/// Manage init/end of the controller
void initialize();
void finalize();
private:
void waitForFinish();
class DataSourceControllerPrivate;
spimpl::unique_impl_ptr<DataSourceControllerPrivate> impl;
};
#endif // SCIQLOP_DATASOURCECONTROLLER_H