Changeset View
Changeset View
Standalone View
Standalone View
src/acbf/AcbfMetadata.h
Context not available. | |||||
26 | 26 | | |||
---|---|---|---|---|---|
27 | #include "AcbfDocument.h" | 27 | #include "AcbfDocument.h" | ||
28 | 28 | | |||
29 | /** | ||||
30 | * \brief Class to handle the metadata section of ACBF. | ||||
31 | * | ||||
32 | * ACBF metadata is split into three sections: | ||||
33 | * | ||||
34 | * - Book-info, which handles the metadata about the story. | ||||
35 | * - Publishing-info, which handles the metadata about the publishing. | ||||
36 | * - Document-info, which handles the metadata about this specific ACBF document. | ||||
37 | * | ||||
38 | * All three are mandatory. | ||||
39 | */ | ||||
29 | class QXmlStreamWriter; | 40 | class QXmlStreamWriter; | ||
30 | class QXmlStreamReader; | 41 | class QXmlStreamReader; | ||
31 | namespace AdvancedComicBookFormat | 42 | namespace AdvancedComicBookFormat | ||
Context not available. | |||||
42 | 53 | | |||
43 | Document* document() const; | 54 | Document* document() const; | ||
44 | 55 | | |||
56 | /** | ||||
57 | * \brief Write the metadata into the xml writer. | ||||
58 | */ | ||||
45 | void toXml(QXmlStreamWriter *writer); | 59 | void toXml(QXmlStreamWriter *writer); | ||
60 | /** | ||||
61 | * \brief load the metadata element into this object. | ||||
62 | * @return True if the xmlReader encountered no errors. | ||||
63 | */ | ||||
46 | bool fromXml(QXmlStreamReader *xmlReader); | 64 | bool fromXml(QXmlStreamReader *xmlReader); | ||
47 | 65 | | |||
66 | /** | ||||
67 | * @return the bookinfo object. | ||||
68 | */ | ||||
48 | BookInfo* bookInfo() const; | 69 | BookInfo* bookInfo() const; | ||
70 | /** | ||||
71 | * \brief triggers when the bookinfo is changed. | ||||
72 | */ | ||||
49 | Q_SIGNAL void bookInfoChanged(); | 73 | Q_SIGNAL void bookInfoChanged(); | ||
74 | /** | ||||
75 | * @returns the publishinfo object. | ||||
76 | */ | ||||
50 | PublishInfo* publishInfo() const; | 77 | PublishInfo* publishInfo() const; | ||
78 | /** | ||||
79 | * @returns the documentinfo object. | ||||
80 | */ | ||||
51 | DocumentInfo* documentInfo() const; | 81 | DocumentInfo* documentInfo() const; | ||
52 | private: | 82 | private: | ||
53 | class Private; | 83 | class Private; | ||
Context not available. |