7 #include "MimePointsExport.h" 9 const QString FORMAT_CSV (
"text/csv");
10 const QString FORMAT_CSV_INTERNAL (
"text/engauge-points-csv");
11 const QString FORMAT_HTML (
"text/html");
12 const QString FORMAT_PLAIN (
"text/plain");
20 m_csvGraph (csvGraph),
21 m_htmlGraph (htmlGraph)
23 m_formats << FORMAT_CSV << FORMAT_HTML << FORMAT_PLAIN;
27 m_csvPoints (csvPoints)
29 m_formats << FORMAT_CSV_INTERNAL;
67 QVariant::Type )
const 69 if (format == FORMAT_CSV) {
71 }
else if (format == FORMAT_CSV_INTERNAL) {
73 }
else if (format == FORMAT_HTML) {
75 }
else if (format == FORMAT_PLAIN) {
QString htmlGraph() const
Get methjod for htmlGraph.
MimePointsExport & operator=(const MimePointsExport &other)
Assignment operator.
MimePointsExport()
Default constructor. Initial contents are overwritten by other constructors.
QString csvPoints() const
Get method for csvPoints.
QString csvGraph() const
Get method for csvGraph.
Custom mime type for separate treatment of graph coordinates and, when there is no transform...
virtual QStringList formats() const
Available formats, which depend on whether or not the transform is defined.
virtual ~MimePointsExport()
Destructor.
virtual QVariant retrieveData(const QString &format, QVariant::Type preferredType) const
Returns a variant with the data for the specified format.