##// END OF EJS Templates
Updates IDataProvider::requestDataLoading() method's signature...
Updates IDataProvider::requestDataLoading() method's signature The parameters needed for data retrieval are passed to a DataProviderParameters object. For now, it concerns only the list of datetimes to process, but the object will be completed with extra data which may be necessary for certain providers

File last commit:

r302:c121d060318a
r408:49f712bf7e59
Show More
TimeController.h
40 lines | 969 B | text/x-c | CLexer
#ifndef SCIQLOP_TIMECONTROLLER_H
#define SCIQLOP_TIMECONTROLLER_H
#include <Data/SqpDateTime.h>
#include <QLoggingCategory>
#include <QObject>
#include <Common/spimpl.h>
Q_DECLARE_LOGGING_CATEGORY(LOG_TimeController)
/**
* @brief The TimeController class aims to handle the Time parameters notification in SciQlop.
*/
class TimeController : public QObject {
Q_OBJECT
public:
explicit TimeController(QObject *parent = 0);
SqpDateTime dateTime() const noexcept;
signals:
/// Signal emitted to notify that time parameters has beed updated
void timeUpdated(SqpDateTime time);
public slots:
/// Slot called when a new dateTime has been defined.
void onTimeToUpdate(SqpDateTime dateTime);
/// Slot called when the dateTime has to be notified. Call timeUpdated signal
void onTimeNotify();
private:
class TimeControllerPrivate;
spimpl::unique_impl_ptr<TimeControllerPrivate> impl;
};
#endif // SCIQLOP_TIMECONTROLLER_H