7 #include "MimePoints.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");
19 const QString &htmlGraph) :
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) {
MimePoints()
Default constructor. Initial contents are overwritten by other constructors.
virtual QStringList formats() const
Available formats, which depend on whether or not the transform is defined.
Custom mime type for separate treatment of graph coordinates and, when there is no transform...
virtual ~MimePoints()
Destructor.
QString htmlGraph() const
Get methjod for htmlGraph.
QString csvGraph() const
Get method for csvGraph.
virtual QVariant retrieveData(const QString &format, QVariant::Type preferredType) const
Returns a variant with the data for the specified format.
QString csvPoints() const
Get method for csvPoints.
MimePoints & operator=(const MimePoints &other)
Assignment operator.