From 74e6f419589607f143a8b3e2d6fae13eab62fea1 Mon Sep 17 00:00:00 2001 From: Lukas Pioch Date: Mon, 1 May 2017 10:31:18 +0200 Subject: Don't return const ref params and removed functions from ManualBindings.cpp --- src/WebAdmin.h | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'src/WebAdmin.h') diff --git a/src/WebAdmin.h b/src/WebAdmin.h index b76ca6df8..50a0487b0 100644 --- a/src/WebAdmin.h +++ b/src/WebAdmin.h @@ -192,6 +192,16 @@ public: /** Returns the list of ports on which the webadmin is configured to listen. */ AString GetPorts(void) const { return StringsConcat(m_Ports, ','); } + + /** Returns the prefix needed for making a link point to the webadmin root from the given URL ("../../../webadmin"-style). */ + static AString GetBaseURL(const AString & a_URL); + + /** Returns the content type from the file extension. + If the extension isn't in the list, the function returns an empty string. */ + static AString GetContentTypeFromFileExt(const AString & a_FileExtension); + + /** Escapes text passed into it, so it can be embedded into html. */ + static AString GetHTMLEscapedString(const AString & a_Input); // tolua_end /** Adds a new WebTab handler. @@ -212,26 +222,13 @@ public: Exported in ManualBindings.cpp */ bool DelWebTab(const AString & a_UrlPath); - /** Escapes text passed into it, so it can be embedded into html. - Exported to Lua in ManualBindings.cpp. */ - static AString GetHTMLEscapedString(const AString & a_Input); - /** Escapes the string for use in an URL Exported to Lua in ManualBindings.cpp. */ static AString GetURLEncodedString(const AString & a_Input); - /** Returns the prefix needed for making a link point to the webadmin root from the given URL ("../../../webadmin"-style). - Exported to Lua in ManualBindings.cpp. */ - static AString GetBaseURL(const AString & a_URL); - /** Returns the prefix needed for making a link point to the webadmin root from the given URL ("../../../webadmin"-style) */ static AString GetBaseURL(const AStringVector & a_URLSplit); - /** Returns the content type from the file extension. - If the extension isn't in the list, the function returns an empty string. - Exported to Lua in ManualBindings.cpp. */ - static AString GetContentTypeFromFileExt(const AString & a_FileExtension); - protected: /** Protects m_WebTabs, m_TemplateScript, m_LoginTemplate and m_IniFile against multithreaded access. */ -- cgit v1.2.3