LEFT | RIGHT |
1 #include "PluginStdAfx.h" | 1 #include "PluginStdAfx.h" |
2 | 2 |
3 #include <Wbemidl.h> | 3 #include <Wbemidl.h> |
4 #include <time.h> | 4 #include <time.h> |
5 #include "PluginSettings.h" | 5 #include "PluginSettings.h" |
6 #include "PluginClient.h" | 6 #include "PluginClient.h" |
7 #include "PluginSystem.h" | 7 #include "PluginSystem.h" |
8 #ifdef SUPPORT_FILTER | 8 #ifdef SUPPORT_FILTER |
9 #include "PluginFilter.h" | 9 #include "PluginFilter.h" |
10 #endif | 10 #endif |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 { | 314 { |
315 CPluginClient::GetInstance()->SetSubscription(url); | 315 CPluginClient::GetInstance()->SetSubscription(url); |
316 RefreshWhitelist(); | 316 RefreshWhitelist(); |
317 } | 317 } |
318 | 318 |
319 CString CPluginSettings::GetSubscription() | 319 CString CPluginSettings::GetSubscription() |
320 { | 320 { |
321 std::vector<SubscriptionDescription> subscriptions = CPluginClient::GetInstanc
e()->GetListedSubscriptions(); | 321 std::vector<SubscriptionDescription> subscriptions = CPluginClient::GetInstanc
e()->GetListedSubscriptions(); |
322 std::wstring aaUrl = CPluginClient::GetInstance()->GetPref(L"subscriptions_exc
eptionsurl", L""); | 322 std::wstring aaUrl = CPluginClient::GetInstance()->GetPref(L"subscriptions_exc
eptionsurl", L""); |
323 | 323 |
324 for (std::vector<SubscriptionDescription>::iterator subscription = subscriptio
ns.begin(); subscription < subscriptions.end(); subscription ++) | 324 for (std::vector<SubscriptionDescription>::iterator subscription = subscriptio
ns.begin(); subscription != subscriptions.end(); subscription++) |
325 { | 325 { |
326 if (subscription->url != aaUrl) | 326 if (subscription->url != aaUrl) |
327 { | 327 { |
328 return CString(subscription->url.c_str()); | 328 return CString(subscription->url.c_str()); |
329 } | 329 } |
330 } | 330 } |
331 return CString(L""); | 331 return CString(L""); |
332 } | 332 } |
333 | 333 |
334 CString CPluginSettings::GetAppLocale() | 334 CString CPluginSettings::GetAppLocale() |
335 { | 335 { |
336 return CPluginSystem::GetInstance()->GetBrowserLanguage(); | 336 return CPluginSystem::GetInstance()->GetBrowserLanguage(); |
337 } | 337 } |
338 | 338 |
339 CString CPluginSettings::GetDocumentationLink() | 339 CString CPluginSettings::GetDocumentationLink() |
340 { | 340 { |
341 return CString(CPluginClient::GetInstance()->GetDocumentationLink().c_str()); | 341 return CString(CPluginClient::GetInstance()->GetDocumentationLink().c_str()); |
342 } | 342 } |
343 | 343 |
344 | 344 |
345 | 345 |
346 #endif // SUPPORT_WHITELIST | 346 #endif // SUPPORT_WHITELIST |
LEFT | RIGHT |