Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/PluginSettings.h

Issue 10800092: Use libadblockplus update checker (Closed)
Patch Set: Addressed review comments Created June 7, 2013, 5:27 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/plugin/PluginSettings.h
===================================================================
--- a/src/plugin/PluginSettings.h
+++ b/src/plugin/PluginSettings.h
@@ -10,26 +10,23 @@
#include "PluginTypedef.h"
#include "AdblockPlusClient.h"
// Main settings
#define SETTING_PLUGIN_INFO_PANEL L"plugininfopanel"
#define SETTING_PLUGIN_VERSION L"pluginversion"
-#define SETTING_PLUGIN_UPDATE_URL L"pluginupdateurl"
#define SETTING_PLUGIN_UPDATE_VERSION L"pluginupdateversion"
-#define SETTING_PLUGIN_UPDATE_TIME L"pluginupdatetime"
#define SETTING_PLUGIN_SELFTEST L"pluginselftest"
#define SETTING_LANGUAGE L"language"
#ifdef SUPPORT_CONFIG
#define SETTING_CONFIG_VERSION L"configversion"
#endif
-#define SETTING_LAST_UPDATE_TIME L"lastupdatetime"
#define SETTING_DICTIONARY_VERSION L"dictionaryversion"
// Tab settings
#define SETTING_TAB_PLUGIN_ENABLED L"pluginenabled"
#define SETTING_TAB_COUNT L"tabcount"
#define SETTING_TAB_START_TIME L"tabstart"
#define SETTING_TAB_UPDATE_ON_START L"updateonstart"
@@ -117,17 +114,16 @@ public:
int GetValue(const CString& key, int defaultValue=0) const;
void SetValue(const CString& key, int value);
bool GetBool(const CString& key, bool defaultValue) const;
void SetBool(const CString& key, bool value);
bool IsPluginEnabled() const;
- bool IsPluginUpdateAvailable() const;
bool IsPluginSelftestEnabled();
bool FilterlistExpired(CString filterlist) const;
bool SetFilterRefreshDate(CString filterlist, time_t refreshtime);
std::map<CString, CString> GetFilterLanguageTitleList() const;
@@ -211,17 +207,16 @@ private:
public:
void AddWhiteListedDomain(const CString& domain);
bool IsWhiteListedDomain(const CString& domain) const;
int GetWhiteListedDomainCount() const;
std::vector<std::string> GetWhiteListedDomainList();
#endif //SUPPORT_WHITELIST
- bool MakeRequestForUpdate();
bool RefreshWhitelist();
DWORD GetWindowsBuildNumber();
void SetSubscription(BSTR language);
void SetSubscription(std::string language);
void SetDefaultSubscription();
CString GetSubscription();
void RefreshFilterlist();

Powered by Google App Engine
This is Rietveld