Changeset View
Changeset View
Standalone View
Standalone View
src/qtquick/ArchiveBookModel.h
Context not available. | |||||
172 | */ | 172 | */ | ||
---|---|---|---|---|---|
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 | /** | ||||
176 | * @brief Generate a POT file from a given text layer. These can be | ||||
177 | * used with translation programs to make translation files. | ||||
178 | * @param fileName the filename to write the pot to. | ||||
179 | * @param language the language of which to use the textlayer. | ||||
180 | * @return whether creating the filename was succesful. | ||||
181 | */ | ||||
182 | Q_INVOKABLE bool generatePot(const QString fileName, const QString language); | ||||
183 | /** | ||||
184 | * @brief readPoFile | ||||
185 | * @param fileName po file to read. | ||||
186 | * @param addTranslatorEmail whether to include the translator's email address. | ||||
187 | * @return | ||||
188 | */ | ||||
189 | Q_INVOKABLE bool readPoFile(const QString fileName, bool addTranslatorEmail); | ||||
190 | /** | ||||
191 | * @brief readPoFileSummary | ||||
192 | * @param fileName po file to read. | ||||
193 | * @return a qstringlist with the language on the first entry and the translator on the second. | ||||
194 | */ | ||||
195 | Q_INVOKABLE QStringList readPoFileSummary(const QString fileName); | ||||
196 | | ||||
175 | friend class ArchiveImageProvider; | 197 | friend class ArchiveImageProvider; | ||
176 | protected: | 198 | protected: | ||
177 | const KArchiveFile* archiveFile(const QString& filePath); | 199 | const KArchiveFile* archiveFile(const QString& filePath); | ||
Context not available. |