| Index: src/plugin/PluginUserSettings.cpp |
| =================================================================== |
| --- a/src/plugin/PluginUserSettings.cpp |
| +++ b/src/plugin/PluginUserSettings.cpp |
| @@ -40,6 +40,7 @@ |
| dispatchID_IsAcceptableAdsEnabled, |
| dispatchID_SetAcceptableAdsEnabled, |
| dispatchID_IsUpdate, |
| + dispatchID_GetConversion |
| }; |
| /** |
| @@ -65,6 +66,7 @@ |
| m.emplace(L"IsAcceptableAdsEnabled", dispatchID_IsAcceptableAdsEnabled); |
| m.emplace(L"SetAcceptableAdsEnabled", dispatchID_SetAcceptableAdsEnabled); |
| m.emplace(L"IsUpdate", dispatchID_IsUpdate); |
| + m.emplace(L"GetConversion", dispatchID_GetConversion); |
| } |
| catch(...) |
| { |
| @@ -441,6 +443,19 @@ |
| } |
| } |
| break; |
| + case dispatchID_GetConversion: |
| + { |
| + if (pDispparams->cArgs != 0) |
| + { |
| + return DISP_E_BADPARAMCOUNT; |
| + } |
| + if (pVarResult) |
| + { |
| + pVarResult->vt = VT_BSTR; |
| + pVarResult->bstrVal = CComBSTR(CPluginClient::GetInstance()->GetConvertedFrom().c_str()); |
| + } |
| + } |
| + break; |
| default: |
| return DISP_E_MEMBERNOTFOUND; |
| break; |