LEFT | RIGHT |
(no file at all) | |
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 class CPluginSettings | 51 class CPluginSettings |
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 bool m_isFirstRun; | |
61 | |
62 DWORD m_dwWorkingThreadId; | 60 DWORD m_dwWorkingThreadId; |
63 | 61 |
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 HasInstance(); | 74 static bool HasInstance(); |
77 static CPluginSettings* GetInstance(); | 75 static CPluginSettings* GetInstance(); |
78 | 76 |
79 static CString GetDataPath(const CString& filename=L""); | 77 static CString GetDataPath(const CString& filename=L""); |
80 | 78 |
81 bool IsPluginEnabled() const; | 79 bool IsPluginEnabled() const; |
82 | 80 |
83 std::map<CString, CString> GetFilterLanguageTitleList() const; | 81 std::map<CString, CString> GetFilterLanguageTitleList() const; |
84 | 82 |
85 void SetWorkingThreadId(); | 83 void SetWorkingThreadId(); |
86 void SetWorkingThreadId(DWORD id); | 84 void SetWorkingThreadId(DWORD id); |
87 bool IsWorkingThread(DWORD dwThread=0) const; | 85 bool IsWorkingThread(DWORD dwThread=0) const; |
88 | |
89 void SetFirstRun(); | |
90 bool IsFirstRun() const; | |
91 | 86 |
92 static CString GetSystemLanguage(); | 87 static CString GetSystemLanguage(); |
93 DWORD m_WindowsBuildNumber; | 88 DWORD m_WindowsBuildNumber; |
94 | 89 |
95 private: | 90 private: |
96 | 91 |
97 bool m_isPluginEnabledTab; | 92 bool m_isPluginEnabledTab; |
98 | 93 |
99 public: | 94 public: |
100 | 95 |
(...skipping 19 matching lines...) Expand all Loading... |
120 int GetWhiteListedDomainCount() const; | 115 int GetWhiteListedDomainCount() const; |
121 std::vector<std::wstring> GetWhiteListedDomainList(); | 116 std::vector<std::wstring> GetWhiteListedDomainList(); |
122 #endif //SUPPORT_WHITELIST | 117 #endif //SUPPORT_WHITELIST |
123 | 118 |
124 bool RefreshWhitelist(); | 119 bool RefreshWhitelist(); |
125 DWORD GetWindowsBuildNumber(); | 120 DWORD GetWindowsBuildNumber(); |
126 | 121 |
127 void SetSubscription(const std::wstring& url); | 122 void SetSubscription(const std::wstring& url); |
128 void SetDefaultSubscription(); | 123 void SetDefaultSubscription(); |
129 CString GetSubscription(); | 124 CString GetSubscription(); |
130 | |
131 bool GetStatusBarAsked(); | |
132 void SetStatusBarAsked(); | |
133 std::vector<SubscriptionDescription> m_subscriptions; | 125 std::vector<SubscriptionDescription> m_subscriptions; |
134 }; | 126 }; |
135 | 127 |
136 | 128 |
137 #endif // _PLUGIN_SETTINGS_H_ | 129 #endif // _PLUGIN_SETTINGS_H_ |
LEFT | RIGHT |