API Documentation
Loading...
Searching...
No Matches
DeploymentReportSource.h
Go to the documentation of this file.
1#pragma once
2/*
3#include "Design/Headers/Deployment.h"
4#include "Design/Headers/StationModel.h"
5#include "Base/Headers/Buffer.hpp"
6#include "include/ncreportdatasource.h"
7#include <QDate>
8namespace NDEVR
9{
10 class DeploymentReportSource : public NCReportDataSource
11 {
12 Q_OBJECT
13 public:
14 DeploymentReportSource(QObject* parent = 0);
15 ~DeploymentReportSource() {}
16
17 //!Opens the datasource and fetches data from it
18 bool open() override;
19 /*!Closes the datasource opened by open()
20 bool close() override;
21 // data record navigation
22 bool first() override;
23 bool last() override;
24 bool next() override;
25 bool previous() override;
26 //! Returns true if it has next data row.
27 virtual bool hasNext() override;
28 //! Jumps to the data row/record at position index, if available, and positions the query on the retrieved record.
29 //The first record is at position 0. If index = -1 the record positioning is skipped (keeps current record)
30 virtual bool seek(int index) override;
31
32 int size() const override;
33
34 //! Reloads the data if applicable
35 virtual bool update();
36 void updateData();
37
38 virtual QVariant value(const QString& columnname, bool* ok = 0, int nQTDataRole = -1) const;
39 virtual QVariant value(int column, bool* ok = 0, int nQTDataRole = -1) const;
40 bool read(NCReportXMLReader*) override;
41 bool write(NCReportXMLWriter*) override;
42 private:
43 Buffer<Deployment> m_deployments;
44 uint04 m_deployment_number;
45 Deployment m_current_deployment;
46 Deployment m_current_planned_deployment;
47 StationModel m_current_station;
48 Model m_current_row;
49 Model m_current_pattern;
50 };
51}*/