VariableController2.h
40 lines
| 1.3 KiB
| text/x-c
|
CLexer
r0 | #include <memory> | |||
#include <vector> | ||||
#include <QHash> | ||||
r2 | #include <QObject> | |||
#include <QMutexLocker> | ||||
#include <QUuid> | ||||
#include <QItemSelectionModel> | ||||
#include <Common/spimpl.h> | ||||
r0 | #include <Variable/Variable.h> | |||
#include <Variable/VariableSynchronizationGroup.h> | ||||
#include <Variable/VariableModel.h> | ||||
#include <Data/IDataProvider.h> | ||||
#include "Data/DateTimeRange.h" | ||||
r2 | class VariableController2: public QObject | |||
r0 | { | |||
r2 | class VariableController2Private; | |||
Q_OBJECT | ||||
r0 | spimpl::unique_impl_ptr<VariableController2Private> impl; | |||
public: | ||||
explicit VariableController2(); | ||||
std::shared_ptr<Variable> createVariable(const QString &name, const QVariantHash &metadata, | ||||
r14 | const std::shared_ptr<IDataProvider>& provider, | |||
const DateTimeRange &range); | ||||
r2 | ||||
r14 | void deleteVariable(const std::shared_ptr<Variable>& variable); | |||
void changeRange(const std::shared_ptr<Variable>& variable, const DateTimeRange& r); | ||||
void asyncChangeRange(const std::shared_ptr<Variable>& variable, const DateTimeRange& r); | ||||
r9 | const std::set<std::shared_ptr<Variable>> variables(); | |||
r2 | ||||
r14 | void synchronize(const std::shared_ptr<Variable>& var, const std::shared_ptr<Variable>& with); | |||
r8 | ||||
r2 | signals: | |||
r14 | void variableAdded(const std::shared_ptr<Variable>&); | |||
void variableDeleted(const std::shared_ptr<Variable>&); | ||||
r0 | ||||
}; | ||||