Engauge Digitizer 2
Loading...
Searching...
No Matches
MimePointsExport.h
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#ifndef MIME_POINTS_EXPORT_H
8#define MIME_POINTS_EXPORT_H
9
10#include <QMimeData>
11#include <QString>
12#include <QStringList>
13
16class MimePointsExport : public QMimeData
17{
18public:
21
23 MimePointsExport(const QString &csvGraph,
24 const QString &htmlGraph);
25
27 MimePointsExport (const QString &csvPoints);
28
31
33 virtual ~MimePointsExport ();
34
36 QString csvGraph () const;
37
39 QString csvPoints () const;
40
42 virtual QStringList formats() const;
43
45 QString htmlGraph () const;
46
47protected:
49 virtual QVariant retrieveData (const QString &format,
50 QVariant::Type preferredType) const;
51
52private:
53 QString m_csvGraph;
54 QString m_csvPoints;
55 QString m_htmlGraph;
56 QStringList m_formats;
57};
58
59#endif // MIME_POINTS_EXPORT_H
QString htmlGraph() const
Get methjod for htmlGraph.
virtual QVariant retrieveData(const QString &format, QVariant::Type preferredType) const
Returns a variant with the data for the specified format.
MimePointsExport()
Default constructor. Initial contents are overwritten by other constructors.
QString csvPoints() const
Get method for csvPoints.
QString csvGraph() const
Get method for csvGraph.
virtual QStringList formats() const
Available formats, which depend on whether or not the transform is defined.
virtual ~MimePointsExport()
Destructor.
MimePointsExport & operator=(const MimePointsExport &other)
Assignment operator.