Book Shelf
Loading...
Searching...
No Matches
bookwriter.h
Go to the documentation of this file.
1
10#ifndef BOOKWRITER_H
11#define BOOKWRITER_H
12
13#include "filewriter.h"
14#include "book.h"
15
16#include <QDomDocument>
17
18class QString;
19
20
27{
28public:
34 BookWriter(const QString &fileName);
35
43 bool write(const QList<Book*> bookList);
44
45private:
53 QDomElement createBookElement(QDomDocument &doc, const Book *book);
54
55
56 QString m_FileName;
57 FileWriter m_FileWriter;
58};
59
60#endif // BOOKWRITER_H
This file contains the declaration of the Book class.
The Book class represents a book object.
Definition book.h:23
The BookWriter class is responsible for serializing a list of books to an XML file....
Definition bookwriter.h:27
BookWriter(const QString &fileName)
Construct a new BookWriter object.
Definition bookwriter.cpp:13
bool write(const QList< Book * > bookList)
Write a list of books to the file.
Definition bookwriter.cpp:19
The FileWriter class is responsible for writing a string to a file.
Definition filewriter.h:22
This file contains the declaration of the FileWriter class.