OLD | NEW |
1 #include "PluginStdAfx.h" | 1 #include "PluginStdAfx.h" |
2 #include "PluginSettings.h" | 2 #include "PluginSettings.h" |
3 #include "PluginSystem.h" | 3 #include "PluginSystem.h" |
4 #include "PluginFilter.h" | 4 #include "PluginFilter.h" |
5 #include "PluginClientFactory.h" | 5 #include "PluginClientFactory.h" |
6 #include "PluginMutex.h" | 6 #include "PluginMutex.h" |
7 #include "PluginClass.h" | 7 #include "PluginClass.h" |
8 | 8 |
9 #include "AdblockPlusClient.h" | 9 #include "AdblockPlusClient.h" |
10 | 10 |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 else | 472 else |
473 { | 473 { |
474 DEBUG_GENERAL((L"GetPref: " + name + L" end").c_str()); | 474 DEBUG_GENERAL((L"GetPref: " + name + L" end").c_str()); |
475 return defaultValue; | 475 return defaultValue; |
476 } | 476 } |
477 } | 477 } |
478 | 478 |
479 void CAdblockPlusClient::CheckForUpdates(HWND callbackWindow) | 479 void CAdblockPlusClient::CheckForUpdates(HWND callbackWindow) |
480 { | 480 { |
481 Communication::OutputBuffer request; | 481 Communication::OutputBuffer request; |
482 request << Communication::PROC_CHECK_FOR_UPDATES << (int32_t)(callbackWindow); | 482 request << Communication::PROC_CHECK_FOR_UPDATES << reinterpret_cast<int32_t>(
callbackWindow); |
483 CallEngine(request); | 483 CallEngine(request); |
484 } | 484 } |
485 | 485 |
486 std::wstring CAdblockPlusClient::GetDocumentationLink() | 486 std::wstring CAdblockPlusClient::GetDocumentationLink() |
487 { | 487 { |
488 DEBUG_GENERAL("GetDocumentationLink"); | 488 DEBUG_GENERAL("GetDocumentationLink"); |
489 Communication::InputBuffer response; | 489 Communication::InputBuffer response; |
490 if (!CallEngine(Communication::PROC_GET_DOCUMENTATION_LINK, response)) | 490 if (!CallEngine(Communication::PROC_GET_DOCUMENTATION_LINK, response)) |
491 return L""; | 491 return L""; |
492 std::wstring docLink; | 492 std::wstring docLink; |
493 response >> docLink; | 493 response >> docLink; |
494 return docLink; | 494 return docLink; |
495 } | 495 } |
496 | 496 |
497 bool CAdblockPlusClient::TogglePluginEnabled() | 497 bool CAdblockPlusClient::TogglePluginEnabled() |
498 { | 498 { |
499 DEBUG_GENERAL("TogglePluginEnabled"); | 499 DEBUG_GENERAL("TogglePluginEnabled"); |
500 Communication::InputBuffer response; | 500 Communication::InputBuffer response; |
501 if (!CallEngine(Communication::PROC_TOGGLE_PLUGIN_ENABLED, response)) | 501 if (!CallEngine(Communication::PROC_TOGGLE_PLUGIN_ENABLED, response)) |
502 return false; | 502 return false; |
503 bool currentEnabledState; | 503 bool currentEnabledState; |
504 response >> currentEnabledState; | 504 response >> currentEnabledState; |
505 return currentEnabledState; | 505 return currentEnabledState; |
506 } | 506 } |
OLD | NEW |