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

Side by Side Diff: src/plugin/PluginSettings.h

Issue 11043057: First run page triggering (Closed)
Patch Set: All changes Created July 25, 2013, 2:02 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 86
89 void SetFirstRun();
90 bool IsFirstRun() const;
91
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
101 void TogglePluginEnabled(); 96 void TogglePluginEnabled();
(...skipping 18 matching lines...) Expand all
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_
OLDNEW

Powered by Google App Engine
This is Rietveld