VariableController2.h
36 lines
| 1.1 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, | ||||
std::shared_ptr<IDataProvider> provider, const DateTimeRange &range); | ||||
r2 | ||||
void deleteVariable(std::shared_ptr<Variable> variable); | ||||
void changeRange(std::shared_ptr<Variable> variable, DateTimeRange r); | ||||
void asyncChangeRange(std::shared_ptr<Variable> variable, DateTimeRange r); | ||||
const std::set<std::shared_ptr<Variable> > &variables(); | ||||
signals: | ||||
void variableAdded(std::shared_ptr<Variable>); | ||||
void variableDeleted(std::shared_ptr<Variable>); | ||||
r0 | ||||
}; | ||||