LEFT | RIGHT |
1 /** | 1 /** |
2 * This class contains all client functionality of the IE plugin | 2 * This class contains all client functionality of the IE plugin |
3 * | 3 * |
4 * Exception errors are tested by calls to ExceptionsTest from: Main ... | 4 * Exception errors are tested by calls to ExceptionsTest from: Main ... |
5 */ | 5 */ |
6 | 6 |
7 #ifndef _PLUGIN_SETTINGS_H_ | 7 #ifndef _PLUGIN_SETTINGS_H_ |
8 #define _PLUGIN_SETTINGS_H_ | 8 #define _PLUGIN_SETTINGS_H_ |
9 | 9 |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 { | 52 { |
53 | 53 |
54 public: | 54 public: |
55 | 55 |
56 typedef std::map<CString, CString> TProperties; | 56 typedef std::map<CString, CString> TProperties; |
57 | 57 |
58 private: | 58 private: |
59 | 59 |
60 DWORD m_dwWorkingThreadId; | 60 DWORD m_dwWorkingThreadId; |
61 | 61 |
62 CString m_settingsVersion; | |
63 | |
64 static CComAutoCriticalSection s_criticalSectionLocal; | 62 static CComAutoCriticalSection s_criticalSectionLocal; |
65 | 63 |
66 void Clear(); | 64 void Clear(); |
67 | 65 |
68 // Private constructor used by the singleton pattern | 66 // Private constructor used by the singleton pattern |
69 CPluginSettings(); | 67 CPluginSettings(); |
70 public: | 68 public: |
71 | 69 |
72 ~CPluginSettings(); | 70 ~CPluginSettings(); |
73 | 71 |
74 static CPluginSettings* s_instance; | 72 static CPluginSettings* s_instance; |
75 | 73 |
76 static bool s_isLightOnly; | |
77 static bool HasInstance(); | 74 static bool HasInstance(); |
78 static CPluginSettings* GetInstance(); | 75 static CPluginSettings* GetInstance(); |
79 | 76 |
80 static CString GetDataPath(const CString& filename=L""); | 77 static CString GetDataPath(const CString& filename=L""); |
81 | 78 |
82 bool IsPluginEnabled() const; | 79 bool IsPluginEnabled() const; |
83 | 80 |
84 std::map<CString, CString> GetFilterLanguageTitleList() const; | 81 std::map<CString, CString> GetFilterLanguageTitleList() const; |
85 | 82 |
86 void SetWorkingThreadId(); | 83 void SetWorkingThreadId(); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 int GetWhiteListedDomainCount() const; | 115 int GetWhiteListedDomainCount() const; |
119 std::vector<std::wstring> GetWhiteListedDomainList(); | 116 std::vector<std::wstring> GetWhiteListedDomainList(); |
120 #endif //SUPPORT_WHITELIST | 117 #endif //SUPPORT_WHITELIST |
121 | 118 |
122 bool RefreshWhitelist(); | 119 bool RefreshWhitelist(); |
123 DWORD GetWindowsBuildNumber(); | 120 DWORD GetWindowsBuildNumber(); |
124 | 121 |
125 void SetSubscription(const std::wstring& url); | 122 void SetSubscription(const std::wstring& url); |
126 void SetDefaultSubscription(); | 123 void SetDefaultSubscription(); |
127 CString GetSubscription(); | 124 CString GetSubscription(); |
128 | |
129 bool GetStatusBarAsked(); | |
130 void SetStatusBarAsked(); | |
131 std::vector<SubscriptionDescription> m_subscriptions; | 125 std::vector<SubscriptionDescription> m_subscriptions; |
132 }; | 126 }; |
133 | 127 |
134 | 128 |
135 #endif // _PLUGIN_SETTINGS_H_ | 129 #endif // _PLUGIN_SETTINGS_H_ |
LEFT | RIGHT |