##// END OF EJS Templates
Adds the ability to force an acquisition pending for an operation (3)...
Adds the ability to force an acquisition pending for an operation (3) Forces to wait acquisition when creating a variable

File last commit:

r1196:b6390f556418
r1251:6cdc10030ad4
Show More
CatalogueController.h
75 lines | 2.3 KiB | text/x-c | CLexer
/ core / include / Catalogue / CatalogueController.h
correction of merge
r1097 #ifndef SCIQLOP_CATALOGUECONTROLLER_H
#define SCIQLOP_CATALOGUECONTROLLER_H
#include "CoreGlobal.h"
#include <Data/SqpRange.h>
#include <QLoggingCategory>
#include <QObject>
#include <QUuid>
#include <Common/spimpl.h>
Add retrieve events impl
r1158 #include <memory>
class DBCatalogue;
class DBEvent;
correction of merge
r1097 Q_DECLARE_LOGGING_CATEGORY(LOG_CatalogueController)
class DataSourceItem;
class Variable;
/**
Add retrieve events impl
r1158 * @brief The CatalogueController class aims to handle catalogues and event using the CatalogueAPI
* library.
correction of merge
r1097 */
class SCIQLOP_CORE_EXPORT CatalogueController : public QObject {
Q_OBJECT
public:
explicit CatalogueController(QObject *parent = 0);
virtual ~CatalogueController();
Add retrieve events impl
r1158 // DB
Add Catalogue methods
r1191 QStringList getRepositories() const;
Add retrieve events impl
r1158 void addDB(const QString &dbPath);
void saveDB(const QString &destinationPath, const QString &repository);
// Event
Add Catalogue methods
r1191 /// retrieveEvents with empty repository retrieve them from the default repository
Add retrieve events impl
r1158 std::list<std::shared_ptr<DBEvent> > retrieveEvents(const QString &repository) const;
std::list<std::shared_ptr<DBEvent> > retrieveAllEvents() const;
CatalogueController: add few basic methods + commit the one not yet implemented
r1161 std::list<std::shared_ptr<DBEvent> >
Adaptation to the shared pointers of catalogue controller
r1176 retrieveEventsFromCatalogue(std::shared_ptr<DBCatalogue> catalogue) const;
Add Catalogue methods
r1191 void addEvent(std::shared_ptr<DBEvent> event);
void updateEvent(std::shared_ptr<DBEvent> event);
void removeEvent(std::shared_ptr<DBEvent> event);
CatalogueController: add few basic methods + commit the one not yet implemented
r1161 // void trashEvent(std::shared_ptr<DBEvent> event);
// void restore(QUuid eventId);
Add Catalogue methods
r1191 void saveEvent(std::shared_ptr<DBEvent> event);
correction of merge
r1097
Add retrieve events impl
r1158 // Catalogue
CatalogueController: add few basic methods + commit the one not yet implemented
r1161 // bool createCatalogue(const QString &name, QVector<QUuid> eventList);
Add Catalogue methods
r1191 /// retrieveEvents with empty repository retrieve them from the default repository
Adaptation to last version of catalogue controller
r1196 std::list<std::shared_ptr<DBCatalogue> > retrieveCatalogues(const QString &repository
= QString()) const;
Add Catalogue methods
r1191 void updateCatalogue(std::shared_ptr<DBCatalogue> catalogue);
void removeCatalogue(std::shared_ptr<DBCatalogue> catalogue);
void saveCatalogue(std::shared_ptr<DBCatalogue> catalogue);
void saveAll();
correction of merge
r1097
public slots:
/// Manage init/end of the controller
void initialize();
void finalize();
private:
void waitForFinish();
class CatalogueControllerPrivate;
spimpl::unique_impl_ptr<CatalogueControllerPrivate> impl;
};
#endif // SCIQLOP_CATALOGUECONTROLLER_H