LEFT | RIGHT |
(no file at all) | |
1 #ifndef _PLUGIN_CONFIG_H_ | |
2 #define _PLUGIN_CONFIG_H_ | |
3 | |
4 | |
5 #include "PluginTypedef.h" | |
6 #include "PluginIniFileW.h" | |
7 #include "PluginChecksum.h" | |
8 | |
9 | |
10 class CPluginConfig | |
11 { | |
12 | |
13 private: | |
14 | |
15 static CPluginConfig* s_instance; | |
16 | |
17 static CComAutoCriticalSection s_criticalSection; | |
18 | |
19 TDownloadFileProperties m_downloadFileProperties; | |
20 TDownloadFileCategories m_downloadFileCategories; | |
21 TDownloadDomainTitles m_downloadDomainTitles; | |
22 | |
23 // private constructor used by the singleton pattern | |
24 CPluginConfig(bool forceCreate=true); | |
25 | |
26 public: | |
27 | |
28 ~CPluginConfig(); | |
29 | |
30 // Returns an instance of the Dictionary | |
31 static CPluginConfig* GetInstance(bool forceCreate=true); | |
32 | |
33 static bool Download(const CString& url, const CString& filename); | |
34 bool GetDownloadProperties(const CString& headers, SDownloadFileProperties&
properties) const; | |
35 | |
36 void Read(); | |
37 void Create(bool forceCreate=true); | |
38 | |
39 int GenerateFilterString(TCHAR* pBuffer, SDownloadFileProperties& proper
ties, std::vector<std::pair<CString,CString>>& filterData, bool allowConversion)
const; | |
40 | |
41 void GetDownloadDomainTitles(TDownloadDomainTitles& domainTitles) const; | |
42 | |
43 std::vector<CString> GetConversionExtenssions(); | |
44 }; | |
45 | |
46 | |
47 #endif // _PLUGIN_CONFIG_H_ | |
LEFT | RIGHT |