Index: src/plugin/AdblockPlusClient.h |
=================================================================== |
--- a/src/plugin/AdblockPlusClient.h |
+++ b/src/plugin/AdblockPlusClient.h |
@@ -4,6 +4,7 @@ |
#include "PluginTypedef.h" |
#include "PluginClientBase.h" |
+#include "../shared/Communication.h" |
class CPluginFilter; |
@@ -32,6 +33,9 @@ |
// Private constructor used by the singleton pattern |
CAdblockPlusClient(); |
+ void PostRequest(Communication::OutputBuffer request); |
+ Communication::InputBuffer FetchResponse(const std::wstring& name); |
+ |
public: |
static CAdblockPlusClient* s_instance; |
@@ -59,7 +63,13 @@ |
void AddFilter(const std::wstring& text); |
void RemoveFilter(const std::wstring& text); |
void SetPref(const std::wstring& name, const std::wstring& value); |
- std::wstring GetPref(const std::wstring& name); |
+ void SetPref(const std::string& name, const std::string& value); |
+ void SetPref(const std::wstring& name, const int64_t& value); |
+ void SetPref(const std::wstring& name, bool value); |
+ std::wstring GetPref(const std::wstring& name, const std::wstring& defaultValue = L""); |
+ std::wstring GetPref(const std::wstring& name, LPCWSTR defaultValue); |
+ bool GetPref(const std::wstring& name, bool defaultValue = false); |
+ int64_t GetPref(const std::wstring& name, int64_t defaultValue = 0); |
}; |
#endif // _ADBLOCK_PLUS_CLIENT_H_ |