void Interface_GUIControlSettingsSlider::reset(void* kodiBase, void* handle) { CAddonDll* addon = static_cast<CAddonDll*>(kodiBase); CGUISettingsSliderControl* control = static_cast<CGUISettingsSliderControl*>(handle); if (!addon || !control) { CLog::Log(LOGERROR, "Interface_GUIControlSettingsSlider::%s - invalid handler data (kodiBase='%p', handle='%p') on addon '%s'", __FUNCTION__, addon, control, addon ? addon->ID().c_str() : "unknown"); return; } CGUIMessage msg(GUI_MSG_LABEL_RESET, control->GetParentID(), control->GetID()); g_windowManager.SendThreadMessage(msg, control->GetParentID()); }
void Interface_GUIControlSettingsSlider::Reset(void* kodiBase, void* handle) { CAddonDll* addon = static_cast<CAddonDll*>(kodiBase); if (!addon) { CLog::Log(LOGERROR, "ADDON::Interface_GUIControlSettingsSlider::%s - invalid data", __FUNCTION__); return; } if (!handle) { CLog::Log(LOGERROR, "ADDON::Interface_GUIControlSettingsSlider::%s - invalid handler data on addon '%s'", __FUNCTION__, addon->ID().c_str()); return; } CGUISettingsSliderControl* pControl = static_cast<CGUISettingsSliderControl*>(handle); CGUIMessage msg(GUI_MSG_LABEL_RESET, pControl->GetParentID(), pControl->GetID()); g_windowManager.SendThreadMessage(msg, pControl->GetParentID()); }
void Interface_GUIControlSettingsSlider::SetText(void* kodiBase, void* handle, const char *text) { CAddonDll* addon = static_cast<CAddonDll*>(kodiBase); if (!addon) { CLog::Log(LOGERROR, "ADDON::Interface_GUIControlSettingsSlider::%s - invalid data", __FUNCTION__); return; } if (!handle || !text) { CLog::Log(LOGERROR, "ADDON::Interface_GUIControlSettingsSlider::%s - invalid handler data on addon '%s'", __FUNCTION__, addon->ID().c_str()); return; } CGUISettingsSliderControl* pControl = static_cast<CGUISettingsSliderControl*>(handle); // create message CGUIMessage msg(GUI_MSG_LABEL_SET, pControl->GetParentID(), pControl->GetID()); msg.SetLabel(text); // send message g_windowManager.SendThreadMessage(msg, pControl->GetParentID()); }