void CNetwork::StartServices()
{
-#ifdef HAS_TIME_SERVER
- g_application.StartTimeServer();
-#endif
#ifdef HAS_WEB_SERVER
if (!g_application.StartWebServer())
CGUIDialogKaiToast::QueueNotification("DefaultIconWarning.png", g_localizeStrings.Get(33101), g_localizeStrings.Get(33100));
{
if (bWait)
{
-#ifdef HAS_TIME_SERVER
- g_application.StopTimeServer();
-#endif
#ifdef HAS_UPNP
g_application.StopUPnP(bWait);
#endif
AddString(loc, "locale.timezone", 14080, g_timezone.GetOSConfiguredTimezone(), SPIN_CONTROL_TEXT);
}
#endif
-#ifdef HAS_TIME_SERVER
- AddSeparator(loc, "locale.sep2");
- AddBool(loc, "locale.timeserver", 168, false);
- AddString(loc, "locale.timeserveraddress", 731, "pool.ntp.org", EDIT_CONTROL_INPUT);
-#endif
AddSeparator(loc, "locale.sep3");
AddString(loc, "locale.audiolanguage", 285, "original", SPIN_CONTROL_TEXT);
AddString(loc, "locale.subtitlelanguage", 286, "original", SPIN_CONTROL_TEXT);
m_strOldTrackFormatRight = g_guiSettings.GetString("musicfiles.trackformatright");
}
}
-#ifdef HAS_TIME_SERVER
- else if (strSetting.Equals("locale.timeserveraddress"))
- {
- CGUIControl *pControl = (CGUIControl *)GetControl(pSettingControl->GetID());
- if (pControl) pControl->SetEnabled(g_guiSettings.GetBool("locale.timeserver"));
- }
-#endif
else if (strSetting.Equals("audiocds.recordingpath") || strSetting.Equals("debug.screenshotpath"))
{
CGUIButtonControl *pControl = (CGUIButtonControl *)GetControl(pSettingControl->GetID());
g_guiSettings.SetString("locale.country", strRegion);
g_weatherManager.Refresh(); // need to reset our weather, as temperatures need re-translating.
}
-#ifdef HAS_TIME_SERVER
- else if (strSetting.Equals("locale.timeserver") || strSetting.Equals("locale.timeserveraddress"))
- {
- g_application.StopTimeServer();
- if (g_guiSettings.GetBool("locale.timeserver"))
- g_application.StartTimeServer();
- }
-#endif
else if (strSetting.Equals("smb.winsserver") || strSetting.Equals("smb.workgroup") )
{
if (g_guiSettings.GetString("smb.winsserver") == "0.0.0.0")