Changeset View
Changeset View
Standalone View
Standalone View
src/qtquick/ArchiveBookModel.h
Show First 20 Lines • Show All 172 Lines • ▼ Show 20 Line(s) | 42 | public: | |||
---|---|---|---|---|---|
173 | Q_INVOKABLE QString createBook(QString folder, QString title, QString coverUrl); | 173 | Q_INVOKABLE QString createBook(QString folder, QString title, QString coverUrl); | ||
174 | 174 | | |||
175 | friend class ArchiveImageProvider; | 175 | friend class ArchiveImageProvider; | ||
176 | protected: | 176 | protected: | ||
177 | const KArchiveFile* archiveFile(const QString& filePath); | 177 | const KArchiveFile* archiveFile(const QString& filePath); | ||
178 | 178 | | |||
179 | private: | 179 | private: | ||
180 | class Private; | 180 | class Private; | ||
181 | /** | ||||
182 | * @brief loadComicInfoXML | ||||
183 | * Loads ComicInfo.xml, this is an old file metadata type used by comicrack, and since then | ||||
184 | * written by other editors, amongst which a callibre plugin. | ||||
185 | * @param xmlDocument string with the archive value. | ||||
186 | * @param acbfData a pointer pointing to a acbfDocument. | ||||
187 | * @param entries a list of image entries, sorted. | ||||
188 | * @param filename the file name of the doument, necessary for writing data to kfilemetadata. | ||||
189 | * @return whether the reading was succesful. | ||||
190 | */ | ||||
191 | bool loadComicInfoXML(QString xmlDocument, QObject* acbfData, QStringList entries, QString filename); | ||||
192 | /** | ||||
193 | * @brief loads CoMet xmls, https://www.denvog.com/comet/comet-specification/ | ||||
194 | * @param xmlDocument string with the archive value. | ||||
195 | * @param acbfData a pointer pointing to a acbfDocument. | ||||
196 | * @param entries a list of image entries, sorted. | ||||
197 | * @param filename the file name of the doument, necessary for writing data to kfilemetadata. | ||||
198 | * @return whether the reading was succesful. | ||||
199 | */ | ||||
200 | bool loadCoMet(QStringList xmlDocuments, QObject* acbfData, QStringList entries, QString filename); | ||||
181 | Private* d; | 201 | Private* d; | ||
182 | }; | 202 | }; | ||
183 | 203 | | |||
184 | #endif//ARCHIVEBOOKMODEL_H | 204 | #endif//ARCHIVEBOOKMODEL_H |