-
Notifications
You must be signed in to change notification settings - Fork 0
/
htmlreport.h
42 lines (36 loc) · 968 Bytes
/
htmlreport.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef HTMLREPORT_H
#define HTMLREPORT_H
#include <QObject>
class Trip;
class Fish;
class Lure;
class HTMLReport : public QObject
{
Q_OBJECT
public:
explicit HTMLReport(QObject *parent = 0);
QString getReport(Trip*);
void setShowImages(bool);
void setShowMaps(bool);
signals:
public slots:
private:
QString parseLure(Lure*);
QString norm(const QString& p_number, const QString& p_unit = QString());
QString parseTrip(Trip*);
QString parseFish(Fish*);
QString parseFish(Trip*);
QString parsePOI(Trip*);
QString parsePOI(Fish*);
QString parseWeather(Trip*);
QString parseWeather(Fish*);
QString googleMapsCoords(const QString&, const QString&);
QString divSection(const QString&, const QString&);
QString tdSection(const QString&);
QString trtdSection(const QString&, const QString&);
QString m_style;
private:
bool m_bShowImages;
bool m_bShowMaps;
};
#endif // HTMLREPORT_H