Skip to content

Commit f968cb7

Browse files
committed
插件接口名称调整
1 parent ca857d1 commit f968cb7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

TrafficMonitor/TrafficMonitor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ int CTrafficMonitorApp::GetAPIVersion()
13921392
return 0;
13931393
}
13941394

1395-
const wchar_t* CTrafficMonitorApp::GetTrafficMonitorVersion()
1395+
const wchar_t* CTrafficMonitorApp::GetVersion()
13961396
{
13971397
return VERSION;
13981398
}
@@ -1432,7 +1432,7 @@ unsigned short CTrafficMonitorApp::GetLanguageId() const
14321432
return m_general_data.language;
14331433
}
14341434

1435-
const wchar_t* CTrafficMonitorApp::GetConfigDir() const
1435+
const wchar_t* CTrafficMonitorApp::GetPluginConfigDir() const
14361436
{
14371437
static std::wstring config_dir;
14381438
config_dir = m_config_dir;

TrafficMonitor/TrafficMonitor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,12 @@ class CTrafficMonitorApp : public CWinApp, public ITrafficMonitor
202202
// 通过 ITrafficMonitor 继承
203203
private:
204204
virtual int GetAPIVersion() override;
205-
virtual const wchar_t* GetTrafficMonitorVersion() override;
205+
virtual const wchar_t* GetVersion() override;
206206
public:
207207
double GetMonitorData(MonitorItem item) override;
208208
void ShowNotifyMessage(const wchar_t* strMsg) override;
209209
unsigned short GetLanguageId() const override;
210-
const wchar_t* GetConfigDir() const override;
210+
const wchar_t* GetPluginConfigDir() const override;
211211
int GetDPI(DPIType type) const override;
212212
};
213213

include/PluginInterface.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ class ITrafficMonitor
340340
* @brief 获取TrafficMonitor的版本。
341341
* @return const wchar_t*
342342
*/
343-
virtual const wchar_t* GetTrafficMonitorVersion() = 0;
343+
virtual const wchar_t* GetVersion() = 0;
344344

345345
/** 主程序的所有监控信息 */
346346
enum MonitorItem
@@ -384,7 +384,7 @@ class ITrafficMonitor
384384
* @brief 获取配置文件目录
385385
* @return 配置文件目录
386386
*/
387-
virtual const wchar_t* GetConfigDir() const = 0;
387+
virtual const wchar_t* GetPluginConfigDir() const = 0;
388388

389389
/** 主程序DPI类型 */
390390
enum DPIType

0 commit comments

Comments
 (0)