VariableController2.h
55 lines
| 1.6 KiB
| text/x-c
|
CLexer
r26 | #ifndef VARIABLECONTROLLER2_H | |||
#define VARIABLECONTROLLER2_H | ||||
r67 | #include "Data/DateTimeRange.h" | |||
#include <Common/spimpl.h> | ||||
#include <Data/IDataProvider.h> | ||||
#include <QByteArray> | ||||
r0 | #include <QHash> | |||
r67 | #include <QItemSelectionModel> | |||
r2 | #include <QMutexLocker> | |||
r67 | #include <QObject> | |||
r2 | #include <QUuid> | |||
r67 | #include <Variable/Variable2.h> | |||
#include <memory> | ||||
#include <set> | ||||
#include <vector> | ||||
r0 | ||||
r67 | class SCIQLOP_CORE_EXPORT VariableController2 : public QObject | |||
r0 | { | |||
r67 | class VariableController2Private; | |||
Q_OBJECT | ||||
r2 | ||||
r67 | spimpl::unique_impl_ptr<VariableController2Private> impl; | |||
r0 | ||||
public: | ||||
r67 | explicit VariableController2(); | |||
std::shared_ptr<Variable2> | ||||
createVariable(const QString& name, const QVariantHash& metadata, | ||||
const std::shared_ptr<IDataProvider>& provider, | ||||
const DateTimeRange& range); | ||||
std::shared_ptr<Variable2> | ||||
cloneVariable(const std::shared_ptr<Variable2>& variable); | ||||
void deleteVariable(const std::shared_ptr<Variable2>& variable); | ||||
void changeRange(const std::shared_ptr<Variable2>& variable, | ||||
const DateTimeRange& r); | ||||
void asyncChangeRange(const std::shared_ptr<Variable2>& variable, | ||||
const DateTimeRange& r); | ||||
const std::vector<std::shared_ptr<Variable2>> variables(); | ||||
bool isReady(const std::shared_ptr<Variable2>& variable); | ||||
bool isReady(); | ||||
void synchronize(const std::shared_ptr<Variable2>& var, | ||||
const std::shared_ptr<Variable2>& with); | ||||
const std::vector<std::shared_ptr<Variable2>> | ||||
variables(const std::vector<QUuid>& ids); | ||||
r8 | ||||
r2 | signals: | |||
r67 | void variableAdded(const std::shared_ptr<Variable2>&); | |||
void variableDeleted(const std::shared_ptr<Variable2>&); | ||||
r0 | }; | |||
r26 | ||||
r67 | #endif // VARIABLECONTROLLER2_H | |||