##// END OF EJS Templates
Added DateTimeRange unit Tests...
Added DateTimeRange unit Tests Added tests: - delta computation test - Shift based on + operator overloading - Zoom based on * operator overloading Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org> Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r2:c7f53bda4647
r6:d9ddd9092db4
Show More
VariableController2.h
36 lines | 1.1 KiB | text/x-c | CLexer
#include <memory>
#include <vector>
#include <QHash>
#include <QObject>
#include <QMutexLocker>
#include <QUuid>
#include <QItemSelectionModel>
#include <Common/spimpl.h>
#include <Variable/Variable.h>
#include <Variable/VariableSynchronizationGroup.h>
#include <Variable/VariableModel.h>
#include <Data/IDataProvider.h>
#include "Data/DateTimeRange.h"
class VariableController2: public QObject
{
class VariableController2Private;
Q_OBJECT
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);
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>);
};