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

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

Issue 6288156869525504: Issue #276 - eliminate CString from GetDataPath (Closed)
Patch Set: Created July 30, 2014, 8:59 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
« no previous file with comments | « src/plugin/PluginDebug.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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 CPluginSettings(); 63 CPluginSettings();
64 public: 64 public:
65 65
66 ~CPluginSettings(); 66 ~CPluginSettings();
67 67
68 static CPluginSettings* s_instance; 68 static CPluginSettings* s_instance;
69 69
70 static bool HasInstance(); 70 static bool HasInstance();
71 static CPluginSettings* GetInstance(); 71 static CPluginSettings* GetInstance();
72 72
73 static CString GetDataPath(const CString& filename=L"");
74
75 bool IsPluginEnabled() const; 73 bool IsPluginEnabled() const;
76 74
77 std::map<CString, CString> GetFilterLanguageTitleList() const; 75 std::map<CString, CString> GetFilterLanguageTitleList() const;
78 76
79 void SetWorkingThreadId(); 77 void SetWorkingThreadId();
80 void SetWorkingThreadId(DWORD id); 78 void SetWorkingThreadId(DWORD id);
81 bool IsWorkingThread(DWORD dwThread=0) const; 79 bool IsWorkingThread(DWORD dwThread=0) const;
82 80
83 DWORD m_WindowsBuildNumber; 81 DWORD m_WindowsBuildNumber;
84 82
(...skipping 23 matching lines...) Expand all
108 bool RefreshWhitelist(); 106 bool RefreshWhitelist();
109 DWORD GetWindowsBuildNumber(); 107 DWORD GetWindowsBuildNumber();
110 108
111 void SetSubscription(const std::wstring& url); 109 void SetSubscription(const std::wstring& url);
112 void SetDefaultSubscription(); 110 void SetDefaultSubscription();
113 CString GetSubscription(); 111 CString GetSubscription();
114 CString GetAppLocale(); 112 CString GetAppLocale();
115 CString GetDocumentationLink(); 113 CString GetDocumentationLink();
116 }; 114 };
117 115
116 std::wstring GetDataPath(const std::wstring& filename=L"");
Oleksandr 2014/08/05 12:06:08 If it's not a member of a class I'd move it elsewh
Eric 2014/08/05 15:42:07 There are a bunch of static functions like this th
118 117
119 #endif // _PLUGIN_SETTINGS_H_ 118 #endif // _PLUGIN_SETTINGS_H_
OLDNEW
« no previous file with comments | « src/plugin/PluginDebug.cpp ('k') | src/plugin/PluginSettings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld