Conference Registration 2024.07.18.04
Loading...
Searching...
No Matches
registrationlistwriter.h
Go to the documentation of this file.
1
9#ifndef REGISTRATIONLISTWRITER_H
10#define REGISTRATIONLISTWRITER_H
11
12#include "filewriter.h"
13#include "registration.h"
14
15#include <QDomDocument>
16
17class QString;
18
19
26{
27public:
32 RegistrationListWriter(const QString &fileName);
33
39 bool write(const QList<Registration*> registrations);
40
41private:
48 QDomElement createRegistrationElement(QDomDocument &doc, const Registration *registration);
49
56 void addCommonElements(QDomDocument &doc, QDomElement &regElem, const Registration *registration);
57
58private:
59 QString m_FileName;
60 FileWriter m_FileWriter;
61};
62
63#endif // REGISTRATIONLISTWRITER_H
The FileWriter class provides functionality to write data to a file.
Definition filewriter.h:21
The Registration class represents a registration for an event.
Definition registration.h:24
The RegistrationListWriter class provides functionality to write a list of registrations to an XML fi...
Definition registrationlistwriter.h:26
bool write(const QList< Registration * > registrations)
Write the list of registrations to the XML file.
Definition registrationlistwriter.cpp:24
RegistrationListWriter(const QString &fileName)
Construct a new Registration List Writer:: Registration List Writer object.
Definition registrationlistwriter.cpp:17