mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
imageinfo: outsource api info init into own member
This commit is contained in:
@@ -387,11 +387,23 @@ void CImageInfo::InitInfoData()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//internal api versions
|
//internal api versions
|
||||||
|
initAPIVersions();
|
||||||
|
|
||||||
|
//www
|
||||||
|
v_info.push_back({g_Locale->getText(LOCALE_IMAGEINFO_HOMEPAGE), config.getString("homepage", PACKAGE_URL)});
|
||||||
|
//doc
|
||||||
|
v_info.push_back({g_Locale->getText(LOCALE_IMAGEINFO_DOKUMENTATION), config.getString("docs", "http://wiki.tuxbox-neutrino.org")});
|
||||||
|
//support
|
||||||
|
v_info.push_back( {g_Locale->getText(LOCALE_IMAGEINFO_FORUM), config.getString("forum", "http://forum.tuxbox.org")});
|
||||||
|
}
|
||||||
|
|
||||||
|
void CImageInfo::initAPIVersions()
|
||||||
|
{
|
||||||
string s_api;
|
string s_api;
|
||||||
#ifdef ENABLE_LUA
|
#ifdef ENABLE_LUA
|
||||||
s_api += "LUA " + to_string(LUA_API_VERSION_MAJOR) + "." + to_string(LUA_API_VERSION_MINOR);
|
s_api += "LUA " + to_string(LUA_API_VERSION_MAJOR) + "." + to_string(LUA_API_VERSION_MINOR);
|
||||||
s_api += ", ";
|
s_api += ", ";
|
||||||
#endif
|
#endif
|
||||||
s_api += "yWeb ";
|
s_api += "yWeb ";
|
||||||
s_api += getYWebVersion();
|
s_api += getYWebVersion();
|
||||||
s_api += ", ";
|
s_api += ", ";
|
||||||
@@ -403,13 +415,6 @@ void CImageInfo::InitInfoData()
|
|||||||
s_api += + " ";
|
s_api += + " ";
|
||||||
s_api += YHTTPD_VERSION;
|
s_api += YHTTPD_VERSION;
|
||||||
v_info.push_back({g_Locale->getText(LOCALE_IMAGEINFO_API), s_api});
|
v_info.push_back({g_Locale->getText(LOCALE_IMAGEINFO_API), s_api});
|
||||||
|
|
||||||
//www
|
|
||||||
v_info.push_back({g_Locale->getText(LOCALE_IMAGEINFO_HOMEPAGE), config.getString("homepage", PACKAGE_URL)});
|
|
||||||
//doc
|
|
||||||
v_info.push_back({g_Locale->getText(LOCALE_IMAGEINFO_DOKUMENTATION), config.getString("docs", "http://wiki.tuxbox-neutrino.org")});
|
|
||||||
//support
|
|
||||||
v_info.push_back( {g_Locale->getText(LOCALE_IMAGEINFO_FORUM), config.getString("forum", "http://forum.tuxbox.org")});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -59,6 +59,7 @@ class CImageInfo : public CMenuTarget
|
|||||||
void InitInfos();
|
void InitInfos();
|
||||||
void InitBuildInfos();
|
void InitBuildInfos();
|
||||||
void InitInfoText(const std::string& text);
|
void InitInfoText(const std::string& text);
|
||||||
|
void initAPIVersions();
|
||||||
std::string getLicenseText();
|
std::string getLicenseText();
|
||||||
std::string getPolicyText();
|
std::string getPolicyText();
|
||||||
void ShowWindow();
|
void ShowWindow();
|
||||||
|
Reference in New Issue
Block a user