OLD | NEW |
1 #include "PluginStdAfx.h" | 1 #include "PluginStdAfx.h" |
2 | 2 |
3 #include <Wbemidl.h> | 3 #include <Wbemidl.h> |
4 #include <time.h> | 4 #include <time.h> |
5 #include "PluginSettings.h" | 5 #include "PluginSettings.h" |
6 #include "PluginClient.h" | 6 #include "PluginClient.h" |
7 #include "PluginSystem.h" | 7 #include "PluginSystem.h" |
8 #ifdef SUPPORT_FILTER | 8 #ifdef SUPPORT_FILTER |
9 #include "PluginFilter.h" | 9 #include "PluginFilter.h" |
10 #endif | 10 #endif |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 return lang; | 145 return lang; |
146 | 146 |
147 } | 147 } |
148 | 148 |
149 | 149 |
150 bool CPluginSettings::IsPluginEnabled() const | 150 bool CPluginSettings::IsPluginEnabled() const |
151 { | 151 { |
152 return GetPluginEnabled(); | 152 return GetPluginEnabled(); |
153 } | 153 } |
154 | 154 |
155 | 155 |
156 std::map<CString, CString> CPluginSettings::GetFilterLanguageTitleList() | 156 std::map<CString, CString> CPluginSettings::GetFilterLanguageTitleList() const |
157 { | 157 { |
158 m_subscriptions = CPluginClient::GetInstance()->FetchAvailableSubscriptions(); | 158 std::vector<SubscriptionDescription> subscriptions = CPluginClient::GetInstanc
e()->FetchAvailableSubscriptions(); |
159 | 159 |
160 std::map<CString, CString> filterList; | 160 std::map<CString, CString> filterList; |
161 for (size_t i = 0; i < m_subscriptions.size(); i ++) | 161 for (size_t i = 0; i < subscriptions.size(); i ++) |
162 { | 162 { |
163 SubscriptionDescription it = m_subscriptions[i]; | 163 SubscriptionDescription it = subscriptions[i]; |
164 filterList.insert(std::make_pair(CString(it.url.c_str()), CString(it.title.c
_str()))); | 164 filterList.insert(std::make_pair(CString(it.url.c_str()), CString(it.title.c
_str()))); |
165 } | 165 } |
166 return filterList; | 166 return filterList; |
167 } | 167 } |
168 | 168 |
169 bool CPluginSettings::IsWorkingThread(DWORD dwThreadId) const | 169 bool CPluginSettings::IsWorkingThread(DWORD dwThreadId) const |
170 { | 170 { |
171 if (dwThreadId == 0) | 171 if (dwThreadId == 0) |
172 { | 172 { |
173 dwThreadId = ::GetCurrentThreadId(); | 173 dwThreadId = ::GetCurrentThreadId(); |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 } | 331 } |
332 | 332 |
333 CString CPluginSettings::GetDocumentationLink() | 333 CString CPluginSettings::GetDocumentationLink() |
334 { | 334 { |
335 return CString(CPluginClient::GetInstance()->GetDocumentationLink().c_str()); | 335 return CString(CPluginClient::GetInstance()->GetDocumentationLink().c_str()); |
336 } | 336 } |
337 | 337 |
338 | 338 |
339 | 339 |
340 #endif // SUPPORT_WHITELIST | 340 #endif // SUPPORT_WHITELIST |
OLD | NEW |