mirror of
https://github.com/g4klx/DMRGateway
synced 2025-12-21 13:35:40 +08:00
Move the location to the DMR Gateway from the Host.
This commit is contained in:
8
Conf.cpp
8
Conf.cpp
@@ -63,6 +63,7 @@ m_logFileRoot(),
|
||||
m_infoLatitude(0.0F),
|
||||
m_infoLongitude(0.0F),
|
||||
m_infoHeight(0),
|
||||
m_infoLocation(),
|
||||
m_infoDescription(),
|
||||
m_infoURL(),
|
||||
m_dmrNetwork1Enabled(false),
|
||||
@@ -287,6 +288,8 @@ bool CConf::read()
|
||||
m_infoLongitude = float(::atof(value));
|
||||
else if (::strcmp(key, "Height") == 0)
|
||||
m_infoHeight = ::atoi(value);
|
||||
else if (::strcmp(key, "Location") == 0)
|
||||
m_infoLocation = value;
|
||||
else if (::strcmp(key, "Description") == 0)
|
||||
m_infoDescription = value;
|
||||
else if (::strcmp(key, "URL") == 0)
|
||||
@@ -1047,6 +1050,11 @@ int CConf::getInfoHeight() const
|
||||
return m_infoHeight;
|
||||
}
|
||||
|
||||
std::string CConf::getInfoLocation() const
|
||||
{
|
||||
return m_infoLocation;
|
||||
}
|
||||
|
||||
std::string CConf::getInfoDescription() const
|
||||
{
|
||||
return m_infoDescription;
|
||||
|
||||
Reference in New Issue
Block a user