OLD | NEW |
1 #include "PluginStdAfx.h" | 1 #include "PluginStdAfx.h" |
2 | 2 |
3 #include "PluginSettings.h" | 3 #include "PluginSettings.h" |
4 #include "PluginSystem.h" | 4 #include "PluginSystem.h" |
5 #include "PluginFilter.h" | 5 #include "PluginFilter.h" |
6 #include "PluginClientFactory.h" | 6 #include "PluginClientFactory.h" |
7 #include "PluginMutex.h" | 7 #include "PluginMutex.h" |
8 #include "PluginClass.h" | 8 #include "PluginClass.h" |
9 | 9 |
10 #include "AdblockPlusClient.h" | 10 #include "AdblockPlusClient.h" |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 response >> success; | 410 response >> success; |
411 if (success) | 411 if (success) |
412 { | 412 { |
413 int64_t value; | 413 int64_t value; |
414 response >> value; | 414 response >> value; |
415 return value; | 415 return value; |
416 } | 416 } |
417 else | 417 else |
418 return defaultValue; | 418 return defaultValue; |
419 } | 419 } |
| 420 |
| 421 void CAdblockPlusClient::CheckForUpdates() |
| 422 { |
| 423 CallEngine(Communication::PROC_CHECK_FOR_UPDATES); |
| 424 } |
| 425 |
| 426 std::wstring CAdblockPlusClient::GetAppLocale() |
| 427 { |
| 428 Communication::InputBuffer response; |
| 429 if (!CallEngine(Communication::PROC_GET_APP_LOCALE, response)) |
| 430 return L""; |
| 431 std::wstring locale; |
| 432 response >> locale; |
| 433 return locale; |
| 434 } |
| 435 |
| 436 std::wstring CAdblockPlusClient::GetDocumentationLink() |
| 437 { |
| 438 Communication::InputBuffer response; |
| 439 if (!CallEngine(Communication::PROC_GET_DOCUMENTATION_LINK, response)) |
| 440 return L""; |
| 441 std::wstring docLink; |
| 442 response >> docLink; |
| 443 return docLink; |
| 444 } |
OLD | NEW |