6#ifndef C_UTILS_LANGSELECT_H
7#define C_UTILS_LANGSELECT_H
9#include <Cutelyst/cutelyst_global.h>
10#include <Cutelyst/plugin.h>
38class LangSelectPrivate;
394 void setSupportedLocales(
const QStringList &locales);
400 void addSupportedLocale(
const QLocale &locale);
407 void addSupportedLocale(
const QString &locale);
435 void setLocalesFromDir(
const QString &path,
437 const QString &prefix = QStringLiteral(
"."),
438 const QString &suffix = QStringLiteral(
".qm"));
464 void setLocalesFromDirs(
const QString &path,
const QString &name);
476 void setQueryKey(
const QString &key);
481 void setSessionKey(
const QString &key);
486 void setCookieName(
const QString &name);
505 void setFallbackLocale(
const QLocale &fallback);
512 void setDetectFromHeader(
bool enabled);
517 void setLanguageCodeStashKey(
const QString &key = QStringLiteral(
"c_langselect_lang"));
523 void setLanguageDirStashKey(
const QString &key = QStringLiteral(
"c_langselect_dir"));
626 static bool fromDomain(
Context *c,
656 LangSelectPrivate *
const d_ptr;
The Cutelyst Application.
Language selection plugin.
LangSelect(Application *parent, Source source)
Plugin(Application *parent)
The Cutelyst namespace holds all public Cutelyst API.