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

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

Issue 10836037: Share code for data path retrieval in engine and plugin (Closed)
Patch Set: Fixed nit Created June 4, 2013, 10:38 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/engine/main.cpp ('k') | src/plugin/PluginSettings.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 CString m_tabNumber; 71 CString m_tabNumber;
72 72
73 CPluginSettings::TProperties m_properties; 73 CPluginSettings::TProperties m_properties;
74 74
75 bool m_isDirty; 75 bool m_isDirty;
76 76
77 CString m_settingsVersion; 77 CString m_settingsVersion;
78 std::auto_ptr<CPluginIniFileW> m_settingsFile; 78 std::auto_ptr<CPluginIniFileW> m_settingsFile;
79 79
80 static WCHAR* s_dataPath;
81 static WCHAR* s_dataPathParent;
82
83 80
84 static CComAutoCriticalSection s_criticalSectionLocal; 81 static CComAutoCriticalSection s_criticalSectionLocal;
85 #ifdef SUPPORT_WHITELIST 82 #ifdef SUPPORT_WHITELIST
86 static CComAutoCriticalSection s_criticalSectionDomainHistory; 83 static CComAutoCriticalSection s_criticalSectionDomainHistory;
87 #endif 84 #endif
88 85
89 bool m_isPluginSelftestEnabled; 86 bool m_isPluginSelftestEnabled;
90 87
91 void Clear(); 88 void Clear();
92 89
93 // Private constructor used by the singleton pattern 90 // Private constructor used by the singleton pattern
94 CPluginSettings(); 91 CPluginSettings();
95 public: 92 public:
96 93
97 ~CPluginSettings(); 94 ~CPluginSettings();
98 95
99 static CPluginSettings* s_instance; 96 static CPluginSettings* s_instance;
100 97
101 static bool s_isLightOnly; 98 static bool s_isLightOnly;
102 static bool HasInstance(); 99 static bool HasInstance();
103 static CPluginSettings* GetInstance(); 100 static CPluginSettings* GetInstance();
104 101
105 bool Read(bool bDebug=true); 102 bool Read(bool bDebug=true);
106 bool Write(bool bDebug=true); 103 bool Write(bool bDebug=true);
107 104
108 static CString GetDataPathParent();
109 static CString GetDataPath(const CString& filename=L""); 105 static CString GetDataPath(const CString& filename=L"");
110 106
111 static CString GetTempPath(const CString& filename=L""); 107 static CString GetTempPath(const CString& filename=L"");
112 static CString GetTempFile(const CString& prefix, const CString& extension=L"" ); 108 static CString GetTempFile(const CString& prefix, const CString& extension=L"" );
113 109
114 bool Has(const CString& key) const; 110 bool Has(const CString& key) const;
115 void Remove(const CString& key); 111 void Remove(const CString& key);
116 112
117 CString GetPluginId(); 113 CString GetPluginId();
118 114
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 void SetSubscription(std::string language); 224 void SetSubscription(std::string language);
229 void SetDefaultSubscription(); 225 void SetDefaultSubscription();
230 CString GetSubscription(); 226 CString GetSubscription();
231 void RefreshFilterlist(); 227 void RefreshFilterlist();
232 228
233 std::vector<SubscriptionDescription> m_subscriptions; 229 std::vector<SubscriptionDescription> m_subscriptions;
234 }; 230 };
235 231
236 232
237 #endif // _PLUGIN_SETTINGS_H_ 233 #endif // _PLUGIN_SETTINGS_H_
OLDNEW
« no previous file with comments | « src/engine/main.cpp ('k') | src/plugin/PluginSettings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld