mirror of
https://github.com/zhongyang219/TrafficMonitor.git
synced 2026-10-18 13:51:38 +08:00
40 lines
867 B
C++
40 lines
867 B
C++
#include "pch.h"
|
|
#include <wchar.h>
|
|
#include "PluginSystemTime.h"
|
|
#include "DataManager.h"
|
|
|
|
CPluginSystemTime::CPluginSystemTime()
|
|
{
|
|
}
|
|
|
|
const wchar_t* CPluginSystemTime::GetItemName() const
|
|
{
|
|
return CDataManager::Instance().StringRes(IDS_TIME);
|
|
}
|
|
|
|
const wchar_t* CPluginSystemTime::GetItemId() const
|
|
{
|
|
return L"ra1YX2g1";
|
|
}
|
|
|
|
const wchar_t* CPluginSystemTime::GetItemLableText() const
|
|
{
|
|
if (CDataManager::Instance().m_setting_data.show_label_text)
|
|
return CDataManager::Instance().StringRes(IDS_TIME);
|
|
else
|
|
return L"";
|
|
}
|
|
|
|
const wchar_t* CPluginSystemTime::GetItemValueText() const
|
|
{
|
|
return CDataManager::Instance().m_cur_time.c_str();
|
|
}
|
|
|
|
const wchar_t* CPluginSystemTime::GetItemValueSampleText() const
|
|
{
|
|
if (CDataManager::Instance().m_setting_data.show_second)
|
|
return L"12:00:00";
|
|
else
|
|
return L"12:00";
|
|
}
|