mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-04 14:07:36 +00:00
Translate DMR Id to callsign from a file.
This commit is contained in:
parent
9c59294c23
commit
8eb564ba37
18 changed files with 87 additions and 43 deletions
9
Conf.cpp
9
Conf.cpp
|
|
@ -85,6 +85,7 @@ m_dmrColorCode(2U),
|
|||
m_dmrSelfOnly(false),
|
||||
m_dmrPrefixes(),
|
||||
m_dmrBlackList(),
|
||||
m_dmrLookupFile(),
|
||||
m_fusionEnabled(true),
|
||||
m_fusionParrotEnabled(false),
|
||||
m_dstarNetworkEnabled(true),
|
||||
|
|
@ -278,7 +279,8 @@ bool CConf::read()
|
|||
m_dmrBlackList.push_back(id);
|
||||
p = ::strtok(NULL, ",\r\n");
|
||||
}
|
||||
}
|
||||
} else if (::strcmp(key, "LookupFile") == 0)
|
||||
m_dmrLookupFile = value;
|
||||
} else if (section == SECTION_FUSION) {
|
||||
if (::strcmp(key, "Enable") == 0)
|
||||
m_fusionEnabled = ::atoi(value) == 1;
|
||||
|
|
@ -547,6 +549,11 @@ std::vector<unsigned int> CConf::getDMRBlackList() const
|
|||
return m_dmrBlackList;
|
||||
}
|
||||
|
||||
std::string CConf::getDMRLookupFile() const
|
||||
{
|
||||
return m_dmrLookupFile;
|
||||
}
|
||||
|
||||
bool CConf::getFusionEnabled() const
|
||||
{
|
||||
return m_fusionEnabled;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue