First commit
[hikingdiary] / src / xmlparser.h
1 #ifndef XMLPARSER_H
2 #define XMLPARSER_H
3
4 #include <QtCore/QCoreApplication>
5 #include <QXmlStreamReader>
6 #include <QXmlStreamWriter>
7 #include <QObject>
8 #include <QFile>
9 #include <QMessageBox>
10 #include <QDate>
11 #include "mainwindow.h"
12
13 class xmlParser
14 {
15 public:
16     /* Constructor of the class */
17     xmlParser();
18     /* Destructor of the class */
19     ~xmlParser();
20
21     /*This function creates client's messages in xml -format from the given inputs.
22       Note ! In order to send pure character strings without linebreaks nor xml -headers,
23       xml autoformatting must be disabled and xml file header insertion is omitted.
24       @param QString header
25       @param QString date
26       @param QString content
27       @param QString latitude
28       @param QString longitude
29       @return
30       */
31     bool writeXmlData(QString header, QDate date, QString content, QString latitude, QString longitude);
32 };
33
34 #endif // XMLPARSER_H