##// END OF EJS Templates
Creates settings dialog and adds it to a new menu in MainWindow...
Creates settings dialog and adds it to a new menu in MainWindow The dialog will contain a set of widgets saved as a list (one entry per widget). By selecting an entry in the list, the corresponding widget will be displayed

File last commit:

r428:ef71cf285dcb
r463:6a4aa86600f2
Show More
CosinusProvider.h
33 lines | 940 B | text/x-c | CLexer
#ifndef SCIQLOP_COSINUSPROVIDER_H
#define SCIQLOP_COSINUSPROVIDER_H
#include "MockPluginGlobal.h"
#include <Data/IDataProvider.h>
#include <QLoggingCategory>
#include <QUuid>
#include <QHash>
Q_DECLARE_LOGGING_CATEGORY(LOG_CosinusProvider)
/**
* @brief The CosinusProvider class is an example of how a data provider can generate data
*/
class SCIQLOP_MOCKPLUGIN_EXPORT CosinusProvider : public IDataProvider {
public:
/// @sa IDataProvider::requestDataLoading(). The current impl isn't thread safe.
void requestDataLoading(QUuid token, const DataProviderParameters &parameters) override;
/// @sa IDataProvider::requestDataAborting(). The current impl isn't thread safe.
void requestDataAborting(QUuid identifier) override;
private:
std::shared_ptr<IDataSeries> retrieveData(QUuid token, const SqpDateTime &dateTime);
QHash<QUuid, bool> m_VariableToEnableProvider;
};
#endif // SCIQLOP_COSINUSPROVIDER_H