6 #ifndef C_UTILS_LANGSELECT_H 7 #define C_UTILS_LANGSELECT_H 9 #include <Cutelyst/cutelyst_global.h> 10 #include <Cutelyst/plugin.h> 35 class LangSelectPrivate;
358 void setSupportedLocales(
const QStringList &locales);
364 void addSupportedLocale(
const QLocale &locale);
371 void addSupportedLocale(
const QString &locale);
395 void setLocalesFromDir(
const QString &path,
const QString &name,
const QString &prefix = QStringLiteral(
"."),
const QString &suffix = QStringLiteral(
".qm"));
418 void setLocalesFromDirs(
const QString &path,
const QString &name);
429 void setQueryKey(
const QString &key);
434 void setSessionKey(
const QString &key);
439 void setCookieName(
const QString &name);
458 void setFallbackLocale(
const QLocale &fallback);
465 void setDetectFromHeader(
bool enabled);
470 void setLanguageCodeStashKey(
const QString &key = QStringLiteral(
"c_langselect_lang"));
476 void setLanguageDirStashKey(
const QString &key = QStringLiteral(
"c_langselect_dir"));
593 LangSelectPrivate *
const d_ptr;
598 #endif // C_UTILS_LANGSELECT_H
The Cutelyst namespace holds all public Cutelyst API.
Language selection plugin.
The Cutelyst Application.