summaryrefslogtreecommitdiff
path: root/src/libcalamares/locale/LabelModel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcalamares/locale/LabelModel.h')
-rw-r--r--src/libcalamares/locale/LabelModel.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/libcalamares/locale/LabelModel.h b/src/libcalamares/locale/LabelModel.h
index c807e6016..6b4f41343 100644
--- a/src/libcalamares/locale/LabelModel.h
+++ b/src/libcalamares/locale/LabelModel.h
@@ -30,7 +30,7 @@ namespace CalamaresUtils {}
namespace CalamaresUtils::Locale
{
-DLLEXPORT class LabelModel : public QAbstractListModel
+class DLLEXPORT LabelModel : public QAbstractListModel
{
public:
enum
@@ -65,5 +65,17 @@ private:
QVector< Label > m_locales;
} ;
+/** @brief Returns a model with all available translations.
+ *
+ * The translations are set when Calamares is compiled; the list
+ * is provided by CMake via the CALAMARES_TRANSLATION_LANGUAGES
+ * #define.
+ *
+ * This model is a singleton and can be shared.
+ *
+ * NOTE: While the model is not typed const, it should be. Do not modify.
+ */
+DLLEXPORT LabelModel* const availableTranslations();
+
} // namespace
#endif