Restored StaticFileController custom code.

This commit is contained in:
Luis Ángel San Martín
2016-06-24 23:03:12 +02:00
parent 3baeac6bac
commit 9cd592622a
2 changed files with 110 additions and 0 deletions

View File

@ -82,6 +82,13 @@ private:
/** Set a content-type header in the response depending on the ending of the filename */
void setContentType(QString file, HttpResponse& response) const;
//YACReader------------------------------------------------------------------------
QString getLocalizedFileName(QString fileName, QString locales, QString path) const;
QString getDeviceAwareFileName(QString fileName, QString device, QString locales, QString path) const;
QString getDeviceAwareFileName(QString fileName, QString device, QString display, QString locales, QString path) const;
bool exists(QString localizedName, QString path) const;
};
#endif // STATICFILECONTROLLER_H