forked from foldynl/QLog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAdxFormat.h
35 lines (27 loc) · 1.02 KB
/
AdxFormat.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
#ifndef QLOG_LOGFORMAT_ADXFORMAT_H
#define QLOG_LOGFORMAT_ADXFORMAT_H
#include <QXmlStreamWriter>
#include "AdiFormat.h"
class AdxFormat : public AdiFormat
{
public:
explicit AdxFormat(QTextStream& stream);
virtual void importStart() override;
virtual void importEnd() override;
virtual void exportContact(const QSqlRecord& record,
QMap<QString, QString> *applTags = nullptr) override;
virtual void exportStart() override;
virtual void exportEnd() override;
protected:
virtual void writeField(const QString &name,
bool presenceCondition,
const QString &value,
const QString &type="") override;
virtual void writeSQLRecord(const QSqlRecord& record,
QMap<QString, QString> *applTags) override;
virtual bool readContact(QVariantMap& ) override;
private:
QXmlStreamWriter *writer;
QXmlStreamReader *reader;
};
#endif // QLOG_LOGFORMAT_ADXFORMAT_H