summaryrefslogtreecommitdiff
path: root/src/mobile/ui/moduleinterface.h
diff options
context:
space:
mode:
authorTeus Benschop <teusjannette@gmail.com>2017-10-06 12:24:31 +0200
committerTeus Benschop <teusjannette@gmail.com>2017-10-06 12:24:31 +0200
commit90d2181239761f8950b95768d3b037843e9e8b50 (patch)
tree6cc667ab420cc04029de2de7e361d2305e214595 /src/mobile/ui/moduleinterface.h
parent1ea03c0fce8066c1e22188447b4a6ca4dcef1201 (diff)
New upstream version 2.11.0
Diffstat (limited to 'src/mobile/ui/moduleinterface.h')
-rw-r--r--src/mobile/ui/moduleinterface.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/mobile/ui/moduleinterface.h b/src/mobile/ui/moduleinterface.h
index 165c30f..c2c714f 100644
--- a/src/mobile/ui/moduleinterface.h
+++ b/src/mobile/ui/moduleinterface.h
@@ -1,3 +1,15 @@
+/*********
+*
+* In the name of the Father, and of the Son, and of the Holy Spirit.
+*
+* This file is part of BibleTime's source code, http://www.bibletime.info/.
+*
+* Copyright 1999-2016 by the BibleTime developers.
+* The BibleTime source code is licensed under the GNU General Public License
+* version 2.0.
+*
+**********/
+
#ifndef MODULE_INTERFACE_H
#define MODULE_INTERFACE_H
@@ -25,8 +37,17 @@ public:
Q_INVOKABLE void updateCategoryAndLanguageModels();
Q_INVOKABLE void updateWorksModel();
Q_INVOKABLE QString category(int index);
+ Q_INVOKABLE QString englishCategory(int index);
Q_INVOKABLE QString language(int index);
Q_INVOKABLE QString module(int index);
+ Q_INVOKABLE bool isLocked(const QString& moduleName);
+ Q_INVOKABLE void unlock(const QString& moduleName, const QString& unlockKey);
+ Q_INVOKABLE QStringList installedModuleLanguages();
+ Q_INVOKABLE QString getFontNameForLanguage(const QString& language);
+ Q_INVOKABLE qreal getFontSizeForLanguage(const QString& language);
+ Q_INVOKABLE void setFontForLanguage(const QString& language, const QString& fontName, qreal fontSize);
+ Q_INVOKABLE void saveCurrentFonts();
+ Q_INVOKABLE void restoreSavedFonts();
private:
void getCategoriesAndLanguages();