##// END OF EJS Templates
Some refac for new PySide2 bindings...
Some refac for new PySide2 bindings - made DataSourceItem iterable - added some tree print function for debug - fixed minor bug on DataSourceContorller which prevented from adding products in more than one call per provider - improved IDataProvider for future refac Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r67:a8a4e48c21af
r92:9ff5f48e3d71
Show More
VariableController2.h
55 lines | 1.6 KiB | text/x-c | CLexer
/ include / Variable / VariableController2.h
(•̀ᴗ•́)و ̑̑ Some cleaning, remover previous implementation of VariableController...
r26 #ifndef VARIABLECONTROLLER2_H
#define VARIABLECONTROLLER2_H
Switched to new TS impl, but quite broken!...
r67 #include "Data/DateTimeRange.h"
#include <Common/spimpl.h>
#include <Data/IDataProvider.h>
#include <QByteArray>
First init from SciQLop Core module...
r0 #include <QHash>
Switched to new TS impl, but quite broken!...
r67 #include <QItemSelectionModel>
Basic serial variable creation and update...
r2 #include <QMutexLocker>
Switched to new TS impl, but quite broken!...
r67 #include <QObject>
Basic serial variable creation and update...
r2 #include <QUuid>
Switched to new TS impl, but quite broken!...
r67 #include <Variable/Variable2.h>
#include <memory>
#include <set>
#include <vector>
First init from SciQLop Core module...
r0
Switched to new TS impl, but quite broken!...
r67 class SCIQLOP_CORE_EXPORT VariableController2 : public QObject
First init from SciQLop Core module...
r0 {
Switched to new TS impl, but quite broken!...
r67 class VariableController2Private;
Q_OBJECT
Basic serial variable creation and update...
r2
Switched to new TS impl, but quite broken!...
r67 spimpl::unique_impl_ptr<VariableController2Private> impl;
First init from SciQLop Core module...
r0
public:
Switched to new TS impl, but quite broken!...
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);
Added more features in DateTimeRange to prepare variable synchronization...
r8
Basic serial variable creation and update...
r2 signals:
Switched to new TS impl, but quite broken!...
r67 void variableAdded(const std::shared_ptr<Variable2>&);
void variableDeleted(const std::shared_ptr<Variable2>&);
First init from SciQLop Core module...
r0 };
(•̀ᴗ•́)و ̑̑ Some cleaning, remover previous implementation of VariableController...
r26
Switched to new TS impl, but quite broken!...
r67 #endif // VARIABLECONTROLLER2_H