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