| 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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 DEBUG_GENERAL((L"GetPref: " + name + L" end").c_str()); | 434 DEBUG_GENERAL((L"GetPref: " + name + L" end").c_str()); |
| 435 return value; | 435 return value; |
| 436 } | 436 } |
| 437 else | 437 else |
| 438 { | 438 { |
| 439 DEBUG_GENERAL((L"GetPref: " + name + L" end").c_str()); | 439 DEBUG_GENERAL((L"GetPref: " + name + L" end").c_str()); |
| 440 return defaultValue; | 440 return defaultValue; |
| 441 } | 441 } |
| 442 } | 442 } |
| 443 | 443 |
| 444 void CAdblockPlusClient::CheckForUpdates() | 444 void CAdblockPlusClient::CheckForUpdates(HWND callbackWindow) |
| 445 { | 445 { |
| 446 CallEngine(Communication::PROC_CHECK_FOR_UPDATES); | 446 Communication::OutputBuffer request; |
| 447 request << Communication::PROC_CHECK_FOR_UPDATES << (int32_t)(callbackWindow); |
| 448 CallEngine(request); |
| 447 } | 449 } |
| 448 | 450 |
| 449 std::wstring CAdblockPlusClient::GetDocumentationLink() | 451 std::wstring CAdblockPlusClient::GetDocumentationLink() |
| 450 { | 452 { |
| 451 DEBUG_GENERAL("GetDocumentationLink"); | 453 DEBUG_GENERAL("GetDocumentationLink"); |
| 452 Communication::InputBuffer response; | 454 Communication::InputBuffer response; |
| 453 if (!CallEngine(Communication::PROC_GET_DOCUMENTATION_LINK, response)) | 455 if (!CallEngine(Communication::PROC_GET_DOCUMENTATION_LINK, response)) |
| 454 return L""; | 456 return L""; |
| 455 std::wstring docLink; | 457 std::wstring docLink; |
| 456 response >> docLink; | 458 response >> docLink; |
| 457 return docLink; | 459 return docLink; |
| 458 } | 460 } |
| 459 | 461 |
| 460 bool CAdblockPlusClient::TogglePluginEnabled() | 462 bool CAdblockPlusClient::TogglePluginEnabled() |
| 461 { | 463 { |
| 462 DEBUG_GENERAL("TogglePluginEnabled"); | 464 DEBUG_GENERAL("TogglePluginEnabled"); |
| 463 Communication::InputBuffer response; | 465 Communication::InputBuffer response; |
| 464 if (!CallEngine(Communication::PROC_TOGGLE_PLUGIN_ENABLED, response)) | 466 if (!CallEngine(Communication::PROC_TOGGLE_PLUGIN_ENABLED, response)) |
| 465 return false; | 467 return false; |
| 466 bool currentEnabledState; | 468 bool currentEnabledState; |
| 467 response >> currentEnabledState; | 469 response >> currentEnabledState; |
| 468 return currentEnabledState; | 470 return currentEnabledState; |
| 469 } | 471 } |
| OLD | NEW |