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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 std::wstring CAdblockPlusClient::GetDocumentationLink() | 449 std::wstring CAdblockPlusClient::GetDocumentationLink() |
450 { | 450 { |
451 DEBUG_GENERAL("GetDocumentationLink"); | 451 DEBUG_GENERAL("GetDocumentationLink"); |
452 Communication::InputBuffer response; | 452 Communication::InputBuffer response; |
453 if (!CallEngine(Communication::PROC_GET_DOCUMENTATION_LINK, response)) | 453 if (!CallEngine(Communication::PROC_GET_DOCUMENTATION_LINK, response)) |
454 return L""; | 454 return L""; |
455 std::wstring docLink; | 455 std::wstring docLink; |
456 response >> docLink; | 456 response >> docLink; |
457 return docLink; | 457 return docLink; |
458 } | 458 } |
| 459 |
| 460 bool CAdblockPlusClient::TogglePluginEnabled() |
| 461 { |
| 462 DEBUG_GENERAL("TogglePluginEnabled"); |
| 463 Communication::InputBuffer response; |
| 464 if (!CallEngine(Communication::PROC_TOGGLE_PLUGIN_ENABLED, response)) |
| 465 return false; |
| 466 bool currentEnabledState; |
| 467 response >> currentEnabledState; |
| 468 return currentEnabledState; |
| 469 } |
OLD | NEW |