##// END OF EJS Templates
Merge branch 'feature/CatalogueGui' into develop
Merge branch 'feature/CatalogueGui' into develop

File last commit:

r1143:20294bb49a24
r1145:d65e500c483d merge
Show More
CatalogueController.h
69 lines | 2.0 KiB | text/x-c | CLexer
/ core / include / Catalogue / CatalogueController.h
correction of merge
r1059 #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
r1125 #include <memory>
class DBCatalogue;
class DBEvent;
correction of merge
r1059 Q_DECLARE_LOGGING_CATEGORY(LOG_CatalogueController)
class DataSourceItem;
class Variable;
/**
Add retrieve events impl
r1125 * @brief The CatalogueController class aims to handle catalogues and event using the CatalogueAPI
* library.
correction of merge
r1059 */
class SCIQLOP_CORE_EXPORT CatalogueController : public QObject {
Q_OBJECT
public:
explicit CatalogueController(QObject *parent = 0);
virtual ~CatalogueController();
Add retrieve events impl
r1125 // DB
CatalogueController: add few basic methods + commit the one not yet implemented
r1128 // QStringList getRepositories() const;
Add retrieve events impl
r1125 void addDB(const QString &dbPath);
void saveDB(const QString &destinationPath, const QString &repository);
// Event
CatalogueController: add few basic methods + commit the one not yet implemented
r1128 // bool createEvent(const QString &name);
Add retrieve events impl
r1125 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
r1128 std::list<std::shared_ptr<DBEvent> >
Adaptation to the shared pointers of catalogue controller
r1143 retrieveEventsFromCatalogue(std::shared_ptr<DBCatalogue> catalogue) const;
CatalogueController: add few basic methods + commit the one not yet implemented
r1128 // void updateEvent(std::shared_ptr<DBEvent> event);
// void trashEvent(std::shared_ptr<DBEvent> event);
// void removeEvent(std::shared_ptr<DBEvent> event);
// void restore(QUuid eventId);
// void saveEvent(std::shared_ptr<DBEvent> event);
correction of merge
r1059
Add retrieve events impl
r1125 // Catalogue
CatalogueController: add few basic methods + commit the one not yet implemented
r1128 // bool createCatalogue(const QString &name, QVector<QUuid> eventList);
std::list<std::shared_ptr<DBCatalogue> > getCatalogues(const QString &repository) const;
// void removeEvent(QUuid catalogueId, const QString &repository);
// void saveCatalogue(std::shared_ptr<DBEvent> event);
correction of merge
r1059
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