2016-01-14 18:45:04 +00:00
|
|
|
/*
|
2021-02-16 22:34:25 +00:00
|
|
|
* Copyright (C) 2015-2021 by Jonathan Naylor G4KLX
|
2016-01-14 18:45:04 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
*/
|
|
|
|
|
2016-04-06 17:46:05 +00:00
|
|
|
#include "DStarDefines.h"
|
2016-01-14 18:45:04 +00:00
|
|
|
#include "Conf.h"
|
|
|
|
#include "Log.h"
|
|
|
|
|
|
|
|
#include <cstdio>
|
|
|
|
#include <cstdlib>
|
|
|
|
#include <cstring>
|
2016-04-06 17:46:05 +00:00
|
|
|
#include <cctype>
|
2016-01-14 18:45:04 +00:00
|
|
|
|
|
|
|
const int BUFFER_SIZE = 500;
|
|
|
|
|
|
|
|
enum SECTION {
|
2020-12-15 16:21:07 +00:00
|
|
|
SECTION_NONE,
|
|
|
|
SECTION_GENERAL,
|
|
|
|
SECTION_INFO,
|
|
|
|
SECTION_LOG,
|
|
|
|
SECTION_CWID,
|
|
|
|
SECTION_DMRID_LOOKUP,
|
|
|
|
SECTION_NXDNID_LOOKUP,
|
|
|
|
SECTION_MODEM,
|
|
|
|
SECTION_TRANSPARENT,
|
|
|
|
SECTION_DMR,
|
|
|
|
SECTION_DMR_NETWORK,
|
|
|
|
SECTION_TFTSERIAL,
|
|
|
|
SECTION_HD44780,
|
|
|
|
SECTION_NEXTION,
|
|
|
|
SECTION_OLED,
|
|
|
|
SECTION_LCDPROC,
|
|
|
|
SECTION_LOCK_FILE,
|
|
|
|
SECTION_REMOTE_CONTROL
|
2016-01-14 18:45:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
CConf::CConf(const std::string& file) :
|
|
|
|
m_file(file),
|
|
|
|
m_callsign(),
|
2017-08-19 15:23:37 +00:00
|
|
|
m_id(0U),
|
2016-01-14 18:45:04 +00:00
|
|
|
m_timeout(120U),
|
|
|
|
m_duplex(true),
|
|
|
|
m_display(),
|
2016-05-03 22:01:49 +00:00
|
|
|
m_daemon(false),
|
2016-01-14 18:45:04 +00:00
|
|
|
m_rxFrequency(0U),
|
|
|
|
m_txFrequency(0U),
|
|
|
|
m_power(0U),
|
2020-12-09 09:41:11 +00:00
|
|
|
m_latitude(0.0F),
|
|
|
|
m_longitude(0.0F),
|
|
|
|
m_height(0),
|
|
|
|
m_location(),
|
|
|
|
m_description(),
|
|
|
|
m_url(),
|
2016-03-07 18:42:05 +00:00
|
|
|
m_logDisplayLevel(0U),
|
|
|
|
m_logFileLevel(0U),
|
|
|
|
m_logFilePath(),
|
|
|
|
m_logFileRoot(),
|
2020-10-31 21:35:09 +00:00
|
|
|
m_logFileRotate(true),
|
2016-05-09 20:55:44 +00:00
|
|
|
m_cwIdEnabled(false),
|
|
|
|
m_cwIdTime(10U),
|
2017-04-10 16:55:53 +00:00
|
|
|
m_cwIdCallsign(),
|
2016-10-10 18:15:30 +00:00
|
|
|
m_dmrIdLookupFile(),
|
|
|
|
m_dmrIdLookupTime(0U),
|
2018-01-17 21:21:25 +00:00
|
|
|
m_nxdnIdLookupFile(),
|
|
|
|
m_nxdnIdLookupTime(0U),
|
2018-07-19 13:09:00 +00:00
|
|
|
m_modemProtocol("uart"),
|
2021-02-16 22:34:25 +00:00
|
|
|
m_modemUARTPort(),
|
|
|
|
m_modemUARTSpeed(115200U),
|
|
|
|
m_modemI2CPort(),
|
|
|
|
m_modemI2CAddress(0x22U),
|
|
|
|
m_modemModemAddress(),
|
|
|
|
m_modemModemPort(0U),
|
2021-04-25 10:10:35 +00:00
|
|
|
m_modemLocalAddress(),
|
2021-02-16 22:34:25 +00:00
|
|
|
m_modemLocalPort(0U),
|
2016-01-14 18:45:04 +00:00
|
|
|
m_modemRXInvert(false),
|
|
|
|
m_modemTXInvert(false),
|
|
|
|
m_modemPTTInvert(false),
|
|
|
|
m_modemTXDelay(100U),
|
2016-03-17 18:12:14 +00:00
|
|
|
m_modemDMRDelay(0U),
|
2017-08-20 11:07:57 +00:00
|
|
|
m_modemTXOffset(0),
|
|
|
|
m_modemRXOffset(0),
|
2017-10-28 11:37:32 +00:00
|
|
|
m_modemRXDCOffset(0),
|
2017-08-20 11:07:57 +00:00
|
|
|
m_modemTXDCOffset(0),
|
2017-12-30 15:05:11 +00:00
|
|
|
m_modemRFLevel(100.0F),
|
2017-06-02 15:34:55 +00:00
|
|
|
m_modemRXLevel(50.0F),
|
|
|
|
m_modemCWIdTXLevel(50.0F),
|
|
|
|
m_modemDMRTXLevel(50.0F),
|
2016-12-21 19:58:46 +00:00
|
|
|
m_modemRSSIMappingFile(),
|
2020-07-13 15:02:04 +00:00
|
|
|
m_modemUseCOSAsLockout(false),
|
2017-04-14 13:05:30 +00:00
|
|
|
m_modemTrace(false),
|
2016-01-14 18:45:04 +00:00
|
|
|
m_modemDebug(false),
|
2018-03-22 07:13:13 +00:00
|
|
|
m_transparentEnabled(false),
|
|
|
|
m_transparentRemoteAddress(),
|
|
|
|
m_transparentRemotePort(0U),
|
|
|
|
m_transparentLocalPort(0U),
|
2018-08-13 18:39:16 +00:00
|
|
|
m_transparentSendFrameType(0U),
|
2016-09-30 10:41:56 +00:00
|
|
|
m_dmrEnabled(false),
|
2019-11-05 08:42:21 +00:00
|
|
|
m_dmrBeacons(DMR_BEACONS_OFF),
|
2018-01-16 18:35:29 +00:00
|
|
|
m_dmrBeaconInterval(60U),
|
|
|
|
m_dmrBeaconDuration(3U),
|
2016-01-14 18:45:04 +00:00
|
|
|
m_dmrId(0U),
|
|
|
|
m_dmrColorCode(2U),
|
2016-04-04 16:40:05 +00:00
|
|
|
m_dmrSelfOnly(false),
|
2017-01-16 12:10:23 +00:00
|
|
|
m_dmrEmbeddedLCOnly(false),
|
2017-02-27 20:17:55 +00:00
|
|
|
m_dmrDumpTAData(true),
|
2016-04-04 18:03:38 +00:00
|
|
|
m_dmrPrefixes(),
|
2016-04-06 17:46:05 +00:00
|
|
|
m_dmrBlackList(),
|
2016-12-21 19:06:29 +00:00
|
|
|
m_dmrWhiteList(),
|
2017-01-05 19:15:10 +00:00
|
|
|
m_dmrSlot1TGWhiteList(),
|
|
|
|
m_dmrSlot2TGWhiteList(),
|
2018-02-08 18:30:16 +00:00
|
|
|
m_dmrCallHang(10U),
|
2016-05-05 16:56:18 +00:00
|
|
|
m_dmrTXHang(4U),
|
2017-09-01 08:25:54 +00:00
|
|
|
m_dmrModeHang(10U),
|
2019-11-17 02:57:58 +00:00
|
|
|
m_dmrOVCM(DMR_OVCM_OFF),
|
2022-07-29 16:49:08 +00:00
|
|
|
m_dmrNetworkEnabled(true),
|
2020-12-06 16:12:54 +00:00
|
|
|
m_dmrNetworkType("Gateway"),
|
2021-04-25 10:10:35 +00:00
|
|
|
m_dmrNetworkRemoteAddress(),
|
|
|
|
m_dmrNetworkRemotePort(0U),
|
|
|
|
m_dmrNetworkLocalAddress(),
|
|
|
|
m_dmrNetworkLocalPort(0U),
|
2016-01-14 18:45:04 +00:00
|
|
|
m_dmrNetworkPassword(),
|
2016-11-03 19:27:52 +00:00
|
|
|
m_dmrNetworkOptions(),
|
2016-01-14 18:45:04 +00:00
|
|
|
m_dmrNetworkDebug(false),
|
2018-07-03 17:28:54 +00:00
|
|
|
m_dmrNetworkJitter(360U),
|
2016-02-15 20:36:05 +00:00
|
|
|
m_dmrNetworkSlot1(true),
|
|
|
|
m_dmrNetworkSlot2(true),
|
2017-09-01 08:25:54 +00:00
|
|
|
m_dmrNetworkModeHang(3U),
|
2016-05-03 16:59:21 +00:00
|
|
|
m_tftSerialPort("/dev/ttyAMA0"),
|
2016-03-14 22:58:09 +00:00
|
|
|
m_tftSerialBrightness(50U),
|
|
|
|
m_hd44780Rows(2U),
|
2016-04-06 16:43:20 +00:00
|
|
|
m_hd44780Columns(16U),
|
2016-04-06 18:53:25 +00:00
|
|
|
m_hd44780Pins(),
|
2016-06-30 19:16:29 +00:00
|
|
|
m_hd44780i2cAddress(),
|
2016-05-03 16:59:21 +00:00
|
|
|
m_hd44780PWM(false),
|
2016-05-01 15:59:43 +00:00
|
|
|
m_hd44780PWMPin(),
|
|
|
|
m_hd44780PWMBright(),
|
|
|
|
m_hd44780PWMDim(),
|
2016-05-28 20:29:30 +00:00
|
|
|
m_hd44780DisplayClock(false),
|
|
|
|
m_hd44780UTC(false),
|
2016-05-03 16:59:21 +00:00
|
|
|
m_nextionPort("/dev/ttyAMA0"),
|
2016-05-06 23:03:39 +00:00
|
|
|
m_nextionBrightness(50U),
|
2016-06-01 10:55:24 +00:00
|
|
|
m_nextionDisplayClock(false),
|
|
|
|
m_nextionUTC(false),
|
2016-06-24 09:33:28 +00:00
|
|
|
m_nextionIdleBrightness(20U),
|
2017-11-13 20:48:47 +00:00
|
|
|
m_nextionScreenLayout(0U),
|
2018-09-05 20:12:12 +00:00
|
|
|
m_nextionTempInFahrenheit(false),
|
2016-11-03 21:43:29 +00:00
|
|
|
m_oledType(3U),
|
|
|
|
m_oledBrightness(0U),
|
|
|
|
m_oledInvert(false),
|
2017-08-13 09:57:02 +00:00
|
|
|
m_oledScroll(false),
|
2018-10-30 14:30:41 +00:00
|
|
|
m_oledRotate(false),
|
2019-09-27 20:28:57 +00:00
|
|
|
m_oledLogoScreensaver(true),
|
2016-10-28 12:22:20 +00:00
|
|
|
m_lcdprocAddress(),
|
|
|
|
m_lcdprocPort(0U),
|
|
|
|
m_lcdprocLocalPort(0U),
|
|
|
|
m_lcdprocDisplayClock(false),
|
2018-10-10 19:05:24 +00:00
|
|
|
m_lcdprocUTC(false),
|
2020-04-09 21:02:47 +00:00
|
|
|
m_lcdprocDimOnIdle(false),
|
2018-10-10 19:05:24 +00:00
|
|
|
m_lockFileEnabled(false),
|
2018-11-06 12:14:57 +00:00
|
|
|
m_lockFileName(),
|
2019-01-07 11:03:37 +00:00
|
|
|
m_remoteControlEnabled(false),
|
2020-04-11 04:12:19 +00:00
|
|
|
m_remoteControlAddress("127.0.0.1"),
|
2019-01-07 11:03:37 +00:00
|
|
|
m_remoteControlPort(0U)
|
2016-01-14 18:45:04 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
CConf::~CConf()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CConf::read()
|
|
|
|
{
|
2020-12-15 16:21:07 +00:00
|
|
|
FILE* fp = ::fopen(m_file.c_str(), "rt");
|
|
|
|
if (fp == NULL) {
|
|
|
|
::fprintf(stderr, "Couldn't open the .ini file - %s\n", m_file.c_str());
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
SECTION section = SECTION_NONE;
|
|
|
|
|
|
|
|
char buffer[BUFFER_SIZE];
|
|
|
|
while (::fgets(buffer, BUFFER_SIZE, fp) != NULL) {
|
|
|
|
if (buffer[0U] == '#')
|
|
|
|
continue;
|
|
|
|
|
|
|
|
if (buffer[0U] == '[') {
|
|
|
|
if (::strncmp(buffer, "[General]", 9U) == 0)
|
|
|
|
section = SECTION_GENERAL;
|
|
|
|
else if (::strncmp(buffer, "[Info]", 6U) == 0)
|
|
|
|
section = SECTION_INFO;
|
|
|
|
else if (::strncmp(buffer, "[Log]", 5U) == 0)
|
|
|
|
section = SECTION_LOG;
|
|
|
|
else if (::strncmp(buffer, "[CW Id]", 7U) == 0)
|
|
|
|
section = SECTION_CWID;
|
|
|
|
else if (::strncmp(buffer, "[DMR Id Lookup]", 15U) == 0)
|
|
|
|
section = SECTION_DMRID_LOOKUP;
|
|
|
|
else if (::strncmp(buffer, "[NXDN Id Lookup]", 16U) == 0)
|
|
|
|
section = SECTION_NXDNID_LOOKUP;
|
|
|
|
else if (::strncmp(buffer, "[Modem]", 7U) == 0)
|
|
|
|
section = SECTION_MODEM;
|
|
|
|
else if (::strncmp(buffer, "[Transparent Data]", 18U) == 0)
|
|
|
|
section = SECTION_TRANSPARENT;
|
|
|
|
else if (::strncmp(buffer, "[DMR]", 5U) == 0)
|
|
|
|
section = SECTION_DMR;
|
|
|
|
else if (::strncmp(buffer, "[DMR Network]", 13U) == 0)
|
|
|
|
section = SECTION_DMR_NETWORK;
|
|
|
|
else if (::strncmp(buffer, "[TFT Serial]", 12U) == 0)
|
|
|
|
section = SECTION_TFTSERIAL;
|
|
|
|
else if (::strncmp(buffer, "[HD44780]", 9U) == 0)
|
|
|
|
section = SECTION_HD44780;
|
|
|
|
else if (::strncmp(buffer, "[Nextion]", 9U) == 0)
|
|
|
|
section = SECTION_NEXTION;
|
|
|
|
else if (::strncmp(buffer, "[OLED]", 6U) == 0)
|
|
|
|
section = SECTION_OLED;
|
|
|
|
else if (::strncmp(buffer, "[LCDproc]", 9U) == 0)
|
|
|
|
section = SECTION_LCDPROC;
|
|
|
|
else if (::strncmp(buffer, "[Lock File]", 11U) == 0)
|
|
|
|
section = SECTION_LOCK_FILE;
|
|
|
|
else if (::strncmp(buffer, "[Remote Control]", 16U) == 0)
|
|
|
|
section = SECTION_REMOTE_CONTROL;
|
|
|
|
else
|
|
|
|
section = SECTION_NONE;
|
|
|
|
|
|
|
|
continue;
|
2017-04-11 18:26:44 +00:00
|
|
|
}
|
2020-12-15 16:21:07 +00:00
|
|
|
|
2021-10-25 11:17:07 +00:00
|
|
|
char* key = ::strtok(buffer, " \t=\r\n");
|
2020-12-15 16:21:07 +00:00
|
|
|
if (key == NULL)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
char* value = ::strtok(NULL, "\r\n");
|
|
|
|
if (value == NULL)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
// Remove quotes from the value
|
|
|
|
size_t len = ::strlen(value);
|
|
|
|
if (len > 1U && *value == '"' && value[len - 1U] == '"') {
|
|
|
|
value[len - 1U] = '\0';
|
|
|
|
value++;
|
|
|
|
} else {
|
2021-10-25 11:17:07 +00:00
|
|
|
char *p;
|
|
|
|
|
2020-12-15 16:21:07 +00:00
|
|
|
// if value is not quoted, remove after # (to make comment)
|
2021-10-25 11:17:07 +00:00
|
|
|
if ((p = strchr(value, '#')) != NULL)
|
|
|
|
*p = '\0';
|
|
|
|
|
|
|
|
// remove trailing tab/space
|
|
|
|
for (p = value + strlen(value) - 1U; p >= value && (*p == '\t' || *p == ' '); p--)
|
|
|
|
*p = '\0';
|
2020-12-15 16:21:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (section == SECTION_GENERAL) {
|
|
|
|
if (::strcmp(key, "Callsign") == 0) {
|
|
|
|
// Convert the callsign to upper case
|
|
|
|
for (unsigned int i = 0U; value[i] != 0; i++)
|
|
|
|
value[i] = ::toupper(value[i]);
|
|
|
|
} else if (::strcmp(key, "Id") == 0)
|
2022-07-29 16:49:08 +00:00
|
|
|
m_id = m_dmrId = (unsigned int)::atoi(value);
|
2020-12-15 16:21:07 +00:00
|
|
|
else if (::strcmp(key, "Duplex") == 0)
|
|
|
|
m_duplex = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "ModeHang") == 0)
|
2022-07-29 16:49:08 +00:00
|
|
|
m_dmrNetworkModeHang = m_dmrModeHang = (unsigned int)::atoi(value);
|
2020-12-15 16:21:07 +00:00
|
|
|
else if (::strcmp(key, "RFModeHang") == 0)
|
2022-07-29 16:49:08 +00:00
|
|
|
m_dmrModeHang = (unsigned int)::atoi(value);
|
2020-12-15 16:21:07 +00:00
|
|
|
else if (::strcmp(key, "NetModeHang") == 0)
|
2022-07-29 16:49:08 +00:00
|
|
|
m_dmrNetworkModeHang = (unsigned int)::atoi(value);
|
2020-12-15 16:21:07 +00:00
|
|
|
else if (::strcmp(key, "Display") == 0)
|
|
|
|
m_display = value;
|
|
|
|
else if (::strcmp(key, "Daemon") == 0)
|
|
|
|
m_daemon = ::atoi(value) == 1;
|
|
|
|
} else if (section == SECTION_INFO) {
|
|
|
|
if (::strcmp(key, "TXFrequency") == 0)
|
2022-07-29 16:49:08 +00:00
|
|
|
m_txFrequency = (unsigned int)::atoi(value);
|
2020-12-15 16:21:07 +00:00
|
|
|
else if (::strcmp(key, "RXFrequency") == 0)
|
|
|
|
m_rxFrequency = (unsigned int)::atoi(value);
|
|
|
|
else if (::strcmp(key, "Power") == 0)
|
|
|
|
m_power = (unsigned int)::atoi(value);
|
|
|
|
else if (::strcmp(key, "Latitude") == 0)
|
|
|
|
m_latitude = float(::atof(value));
|
|
|
|
else if (::strcmp(key, "Longitude") == 0)
|
|
|
|
m_longitude = float(::atof(value));
|
|
|
|
else if (::strcmp(key, "Height") == 0)
|
|
|
|
m_height = ::atoi(value);
|
|
|
|
else if (::strcmp(key, "Location") == 0)
|
|
|
|
m_location = value;
|
|
|
|
else if (::strcmp(key, "Description") == 0)
|
|
|
|
m_description = value;
|
|
|
|
else if (::strcmp(key, "URL") == 0)
|
|
|
|
m_url = value;
|
|
|
|
} else if (section == SECTION_LOG) {
|
|
|
|
if (::strcmp(key, "FilePath") == 0)
|
|
|
|
m_logFilePath = value;
|
|
|
|
else if (::strcmp(key, "FileRoot") == 0)
|
|
|
|
m_logFileRoot = value;
|
|
|
|
else if (::strcmp(key, "FileLevel") == 0)
|
|
|
|
m_logFileLevel = (unsigned int)::atoi(value);
|
|
|
|
else if (::strcmp(key, "DisplayLevel") == 0)
|
|
|
|
m_logDisplayLevel = (unsigned int)::atoi(value);
|
|
|
|
else if (::strcmp(key, "FileRotate") == 0)
|
|
|
|
m_logFileRotate = ::atoi(value) == 1;
|
|
|
|
} else if (section == SECTION_CWID) {
|
|
|
|
if (::strcmp(key, "Enable") == 0)
|
|
|
|
m_cwIdEnabled = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "Time") == 0)
|
|
|
|
m_cwIdTime = (unsigned int)::atoi(value);
|
|
|
|
else if (::strcmp(key, "Callsign") == 0) {
|
|
|
|
// Convert the callsign to upper case
|
|
|
|
for (unsigned int i = 0U; value[i] != 0; i++)
|
|
|
|
value[i] = ::toupper(value[i]);
|
|
|
|
m_cwIdCallsign = value;
|
2020-12-15 15:52:27 +00:00
|
|
|
}
|
2020-12-15 16:21:07 +00:00
|
|
|
} else if (section == SECTION_DMRID_LOOKUP) {
|
|
|
|
if (::strcmp(key, "File") == 0)
|
|
|
|
m_dmrIdLookupFile = value;
|
|
|
|
else if (::strcmp(key, "Time") == 0)
|
|
|
|
m_dmrIdLookupTime = (unsigned int)::atoi(value);
|
2022-07-29 16:49:08 +00:00
|
|
|
} else if (section == SECTION_MODEM) {
|
2021-02-16 22:34:25 +00:00
|
|
|
if (::strcmp(key, "Protocol") == 0)
|
2020-12-15 16:21:07 +00:00
|
|
|
m_modemProtocol = value;
|
2021-02-16 22:34:25 +00:00
|
|
|
else if (::strcmp(key, "UARTPort") == 0)
|
|
|
|
m_modemUARTPort = value;
|
|
|
|
else if (::strcmp(key, "UARTSpeed") == 0)
|
|
|
|
m_modemUARTSpeed = (unsigned int)::atoi(value);
|
|
|
|
else if (::strcmp(key, "I2CPort") == 0)
|
|
|
|
m_modemI2CPort = value;
|
|
|
|
else if (::strcmp(key, "I2CAddress") == 0)
|
|
|
|
m_modemI2CAddress = (unsigned int)::strtoul(value, NULL, 16);
|
|
|
|
else if (::strcmp(key, "ModemAddress") == 0)
|
|
|
|
m_modemModemAddress = value;
|
|
|
|
else if (::strcmp(key, "ModemPort") == 0)
|
2021-04-25 09:26:57 +00:00
|
|
|
m_modemModemPort = (unsigned short)::atoi(value);
|
2021-04-25 10:10:35 +00:00
|
|
|
else if (::strcmp(key, "LocalAddress") == 0)
|
|
|
|
m_modemLocalAddress = value;
|
2021-02-16 22:34:25 +00:00
|
|
|
else if (::strcmp(key, "LocalPort") == 0)
|
2021-04-25 09:26:57 +00:00
|
|
|
m_modemLocalPort = (unsigned short)::atoi(value);
|
2020-12-15 16:21:07 +00:00
|
|
|
else if (::strcmp(key, "RXInvert") == 0)
|
|
|
|
m_modemRXInvert = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "TXInvert") == 0)
|
|
|
|
m_modemTXInvert = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "PTTInvert") == 0)
|
|
|
|
m_modemPTTInvert = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "TXDelay") == 0)
|
2022-07-29 16:49:08 +00:00
|
|
|
m_modemTXDelay = (unsigned int)::atoi(value);
|
2020-12-15 16:21:07 +00:00
|
|
|
else if (::strcmp(key, "DMRDelay") == 0)
|
|
|
|
m_modemDMRDelay = (unsigned int)::atoi(value);
|
|
|
|
else if (::strcmp(key, "RXOffset") == 0)
|
|
|
|
m_modemRXOffset = ::atoi(value);
|
|
|
|
else if (::strcmp(key, "TXOffset") == 0)
|
|
|
|
m_modemTXOffset = ::atoi(value);
|
|
|
|
else if (::strcmp(key, "RXDCOffset") == 0)
|
|
|
|
m_modemRXDCOffset = ::atoi(value);
|
|
|
|
else if (::strcmp(key, "TXDCOffset") == 0)
|
|
|
|
m_modemTXDCOffset = ::atoi(value);
|
|
|
|
else if (::strcmp(key, "RFLevel") == 0)
|
|
|
|
m_modemRFLevel = float(::atof(value));
|
|
|
|
else if (::strcmp(key, "RXLevel") == 0)
|
|
|
|
m_modemRXLevel = float(::atof(value));
|
|
|
|
else if (::strcmp(key, "TXLevel") == 0)
|
2022-07-29 16:49:08 +00:00
|
|
|
m_modemCWIdTXLevel = m_modemDMRTXLevel = float(::atof(value));
|
2020-12-15 16:21:07 +00:00
|
|
|
else if (::strcmp(key, "CWIdTXLevel") == 0)
|
|
|
|
m_modemCWIdTXLevel = float(::atof(value));
|
|
|
|
else if (::strcmp(key, "DMRTXLevel") == 0)
|
|
|
|
m_modemDMRTXLevel = float(::atof(value));
|
|
|
|
else if (::strcmp(key, "RSSIMappingFile") == 0)
|
|
|
|
m_modemRSSIMappingFile = value;
|
2022-01-31 17:37:24 +00:00
|
|
|
else if (::strcmp(key, "UseCOSAsLockout") == 0)
|
|
|
|
m_modemUseCOSAsLockout = ::atoi(value) == 1;
|
2020-12-15 16:21:07 +00:00
|
|
|
else if (::strcmp(key, "Trace") == 0)
|
|
|
|
m_modemTrace = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "Debug") == 0)
|
|
|
|
m_modemDebug = ::atoi(value) == 1;
|
|
|
|
} else if (section == SECTION_TRANSPARENT) {
|
|
|
|
if (::strcmp(key, "Enable") == 0)
|
|
|
|
m_transparentEnabled = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "RemoteAddress") == 0)
|
|
|
|
m_transparentRemoteAddress = value;
|
|
|
|
else if (::strcmp(key, "RemotePort") == 0)
|
2021-04-25 09:26:57 +00:00
|
|
|
m_transparentRemotePort = (unsigned short)::atoi(value);
|
2020-12-15 16:21:07 +00:00
|
|
|
else if (::strcmp(key, "LocalPort") == 0)
|
2021-04-25 09:26:57 +00:00
|
|
|
m_transparentLocalPort = (unsigned short)::atoi(value);
|
2020-12-15 16:21:07 +00:00
|
|
|
else if (::strcmp(key, "SendFrameType") == 0)
|
|
|
|
m_transparentSendFrameType = (unsigned int)::atoi(value);
|
|
|
|
} else if (section == SECTION_DMR) {
|
|
|
|
if (::strcmp(key, "Enable") == 0)
|
|
|
|
m_dmrEnabled = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "Beacons") == 0)
|
|
|
|
m_dmrBeacons = ::atoi(value) == 1 ? DMR_BEACONS_NETWORK : DMR_BEACONS_OFF;
|
|
|
|
else if (::strcmp(key, "BeaconInterval") == 0) {
|
|
|
|
m_dmrBeacons = m_dmrBeacons != DMR_BEACONS_OFF ? DMR_BEACONS_TIMED : DMR_BEACONS_OFF;
|
|
|
|
m_dmrBeaconInterval = (unsigned int)::atoi(value);
|
|
|
|
} else if (::strcmp(key, "BeaconDuration") == 0)
|
|
|
|
m_dmrBeaconDuration = (unsigned int)::atoi(value);
|
|
|
|
else if (::strcmp(key, "Id") == 0)
|
|
|
|
m_dmrId = (unsigned int)::atoi(value);
|
|
|
|
else if (::strcmp(key, "ColorCode") == 0)
|
|
|
|
m_dmrColorCode = (unsigned int)::atoi(value);
|
|
|
|
else if (::strcmp(key, "SelfOnly") == 0)
|
|
|
|
m_dmrSelfOnly = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "EmbeddedLCOnly") == 0)
|
|
|
|
m_dmrEmbeddedLCOnly = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "DumpTAData") == 0)
|
|
|
|
m_dmrDumpTAData = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "Prefixes") == 0) {
|
|
|
|
char* p = ::strtok(value, ",\r\n");
|
|
|
|
while (p != NULL) {
|
|
|
|
unsigned int prefix = (unsigned int)::atoi(p);
|
|
|
|
if (prefix > 0U && prefix <= 999U)
|
|
|
|
m_dmrPrefixes.push_back(prefix);
|
|
|
|
p = ::strtok(NULL, ",\r\n");
|
|
|
|
}
|
|
|
|
} else if (::strcmp(key, "BlackList") == 0) {
|
|
|
|
char* p = ::strtok(value, ",\r\n");
|
|
|
|
while (p != NULL) {
|
|
|
|
unsigned int id = (unsigned int)::atoi(p);
|
|
|
|
if (id > 0U)
|
|
|
|
m_dmrBlackList.push_back(id);
|
|
|
|
p = ::strtok(NULL, ",\r\n");
|
|
|
|
}
|
|
|
|
} else if (::strcmp(key, "WhiteList") == 0) {
|
|
|
|
char* p = ::strtok(value, ",\r\n");
|
|
|
|
while (p != NULL) {
|
|
|
|
unsigned int id = (unsigned int)::atoi(p);
|
|
|
|
if (id > 0U)
|
|
|
|
m_dmrWhiteList.push_back(id);
|
|
|
|
p = ::strtok(NULL, ",\r\n");
|
|
|
|
}
|
|
|
|
} else if (::strcmp(key, "Slot1TGWhiteList") == 0) {
|
|
|
|
char* p = ::strtok(value, ",\r\n");
|
|
|
|
while (p != NULL) {
|
|
|
|
unsigned int id = (unsigned int)::atoi(p);
|
|
|
|
if (id > 0U)
|
|
|
|
m_dmrSlot1TGWhiteList.push_back(id);
|
|
|
|
p = ::strtok(NULL, ",\r\n");
|
|
|
|
}
|
|
|
|
} else if (::strcmp(key, "Slot2TGWhiteList") == 0) {
|
|
|
|
char* p = ::strtok(value, ",\r\n");
|
|
|
|
while (p != NULL) {
|
|
|
|
unsigned int id = (unsigned int)::atoi(p);
|
|
|
|
if (id > 0U)
|
|
|
|
m_dmrSlot2TGWhiteList.push_back(id);
|
|
|
|
p = ::strtok(NULL, ",\r\n");
|
|
|
|
}
|
|
|
|
} else if (::strcmp(key, "TXHang") == 0)
|
|
|
|
m_dmrTXHang = (unsigned int)::atoi(value);
|
|
|
|
else if (::strcmp(key, "CallHang") == 0)
|
|
|
|
m_dmrCallHang = (unsigned int)::atoi(value);
|
|
|
|
else if (::strcmp(key, "ModeHang") == 0)
|
|
|
|
m_dmrModeHang = (unsigned int)::atoi(value);
|
|
|
|
else if (::strcmp(key, "OVCM") == 0) {
|
|
|
|
switch (::atoi(value)) {
|
2019-11-17 02:57:58 +00:00
|
|
|
case 1:
|
|
|
|
m_dmrOVCM = DMR_OVCM_RX_ON;
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
m_dmrOVCM = DMR_OVCM_TX_ON;
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
m_dmrOVCM = DMR_OVCM_ON;
|
|
|
|
break;
|
2021-03-07 17:42:55 +00:00
|
|
|
case 4:
|
|
|
|
m_dmrOVCM = DMR_OVCM_FORCE_OFF;
|
|
|
|
break;
|
2019-11-17 02:57:58 +00:00
|
|
|
default:
|
|
|
|
m_dmrOVCM = DMR_OVCM_OFF;
|
|
|
|
break;
|
2020-12-15 16:21:07 +00:00
|
|
|
}
|
2019-11-17 02:57:58 +00:00
|
|
|
}
|
2020-12-15 16:21:07 +00:00
|
|
|
} else if (section == SECTION_DMR_NETWORK) {
|
|
|
|
if (::strcmp(key, "Enable") == 0)
|
|
|
|
m_dmrNetworkEnabled = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "Type") == 0)
|
|
|
|
m_dmrNetworkType = value;
|
2021-04-25 10:10:35 +00:00
|
|
|
else if (::strcmp(key, "RemoteAddress") == 0)
|
|
|
|
m_dmrNetworkRemoteAddress = value;
|
|
|
|
else if (::strcmp(key, "RemotePort") == 0)
|
|
|
|
m_dmrNetworkRemotePort = (unsigned short)::atoi(value);
|
|
|
|
else if (::strcmp(key, "LocalAddress") == 0)
|
|
|
|
m_dmrNetworkLocalAddress = value;
|
|
|
|
else if (::strcmp(key, "LocalPort") == 0)
|
|
|
|
m_dmrNetworkLocalPort = (unsigned short)::atoi(value);
|
2020-12-15 16:21:07 +00:00
|
|
|
else if (::strcmp(key, "Password") == 0)
|
|
|
|
m_dmrNetworkPassword = value;
|
|
|
|
else if (::strcmp(key, "Options") == 0)
|
|
|
|
m_dmrNetworkOptions = value;
|
|
|
|
else if (::strcmp(key, "Debug") == 0)
|
|
|
|
m_dmrNetworkDebug = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "Jitter") == 0)
|
|
|
|
m_dmrNetworkJitter = (unsigned int)::atoi(value);
|
|
|
|
else if (::strcmp(key, "Slot1") == 0)
|
|
|
|
m_dmrNetworkSlot1 = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "Slot2") == 0)
|
|
|
|
m_dmrNetworkSlot2 = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "ModeHang") == 0)
|
|
|
|
m_dmrNetworkModeHang = (unsigned int)::atoi(value);
|
|
|
|
} else if (section == SECTION_TFTSERIAL) {
|
|
|
|
if (::strcmp(key, "Port") == 0)
|
|
|
|
m_tftSerialPort = value;
|
|
|
|
else if (::strcmp(key, "Brightness") == 0)
|
|
|
|
m_tftSerialBrightness = (unsigned int)::atoi(value);
|
|
|
|
} else if (section == SECTION_HD44780) {
|
|
|
|
if (::strcmp(key, "Rows") == 0)
|
|
|
|
m_hd44780Rows = (unsigned int)::atoi(value);
|
|
|
|
else if (::strcmp(key, "Columns") == 0)
|
|
|
|
m_hd44780Columns = (unsigned int)::atoi(value);
|
|
|
|
else if (::strcmp(key, "I2CAddress") == 0)
|
|
|
|
m_hd44780i2cAddress = (unsigned int)::strtoul(value, NULL, 16);
|
|
|
|
else if (::strcmp(key, "PWM") == 0)
|
|
|
|
m_hd44780PWM = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "PWMPin") == 0)
|
|
|
|
m_hd44780PWMPin = (unsigned int)::atoi(value);
|
|
|
|
else if (::strcmp(key, "PWMBright") == 0)
|
|
|
|
m_hd44780PWMBright = (unsigned int)::atoi(value);
|
|
|
|
else if (::strcmp(key, "PWMDim") == 0)
|
|
|
|
m_hd44780PWMDim = (unsigned int)::atoi(value);
|
|
|
|
else if (::strcmp(key, "DisplayClock") == 0)
|
|
|
|
m_hd44780DisplayClock = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "UTC") == 0)
|
|
|
|
m_hd44780UTC = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "Pins") == 0) {
|
|
|
|
char* p = ::strtok(value, ",\r\n");
|
|
|
|
while (p != NULL) {
|
|
|
|
unsigned int pin = (unsigned int)::atoi(p);
|
|
|
|
m_hd44780Pins.push_back(pin);
|
|
|
|
p = ::strtok(NULL, ",\r\n");
|
|
|
|
}
|
2016-04-06 16:43:20 +00:00
|
|
|
}
|
2020-12-15 16:21:07 +00:00
|
|
|
} else if (section == SECTION_NEXTION) {
|
|
|
|
if (::strcmp(key, "Port") == 0)
|
|
|
|
m_nextionPort = value;
|
|
|
|
else if (::strcmp(key, "Brightness") == 0)
|
|
|
|
m_nextionIdleBrightness = m_nextionBrightness = (unsigned int)::atoi(value);
|
|
|
|
else if (::strcmp(key, "DisplayClock") == 0)
|
|
|
|
m_nextionDisplayClock = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "UTC") == 0)
|
|
|
|
m_nextionUTC = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "IdleBrightness") == 0)
|
|
|
|
m_nextionIdleBrightness = (unsigned int)::atoi(value);
|
|
|
|
else if (::strcmp(key, "ScreenLayout") == 0)
|
|
|
|
m_nextionScreenLayout = (unsigned int)::strtoul(value, NULL, 0);
|
|
|
|
else if (::strcmp(key, "DisplayTempInFahrenheit") == 0)
|
|
|
|
m_nextionTempInFahrenheit = ::atoi(value) == 1;
|
|
|
|
} else if (section == SECTION_OLED) {
|
|
|
|
if (::strcmp(key, "Type") == 0)
|
|
|
|
m_oledType = (unsigned char)::atoi(value);
|
|
|
|
else if (::strcmp(key, "Brightness") == 0)
|
|
|
|
m_oledBrightness = (unsigned char)::atoi(value);
|
|
|
|
else if (::strcmp(key, "Invert") == 0)
|
|
|
|
m_oledInvert = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "Scroll") == 0)
|
|
|
|
m_oledScroll = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "Rotate") == 0)
|
|
|
|
m_oledRotate = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "LogoScreensaver") == 0)
|
|
|
|
m_oledLogoScreensaver = ::atoi(value) == 1;
|
|
|
|
} else if (section == SECTION_LCDPROC) {
|
|
|
|
if (::strcmp(key, "Address") == 0)
|
|
|
|
m_lcdprocAddress = value;
|
|
|
|
else if (::strcmp(key, "Port") == 0)
|
2021-04-25 09:26:57 +00:00
|
|
|
m_lcdprocPort = (unsigned short)::atoi(value);
|
2020-12-15 16:21:07 +00:00
|
|
|
else if (::strcmp(key, "LocalPort") == 0)
|
2021-04-25 09:26:57 +00:00
|
|
|
m_lcdprocLocalPort = (unsigned short)::atoi(value);
|
2020-12-15 16:21:07 +00:00
|
|
|
else if (::strcmp(key, "DisplayClock") == 0)
|
|
|
|
m_lcdprocDisplayClock = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "UTC") == 0)
|
|
|
|
m_lcdprocUTC = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "DimOnIdle") == 0)
|
|
|
|
m_lcdprocDimOnIdle = ::atoi(value) == 1;
|
|
|
|
} else if (section == SECTION_LOCK_FILE) {
|
|
|
|
if (::strcmp(key, "Enable") == 0)
|
|
|
|
m_lockFileEnabled = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "File") == 0)
|
|
|
|
m_lockFileName = value;
|
|
|
|
} else if (section == SECTION_REMOTE_CONTROL) {
|
|
|
|
if (::strcmp(key, "Enable") == 0)
|
|
|
|
m_remoteControlEnabled = ::atoi(value) == 1;
|
|
|
|
else if (::strcmp(key, "Port") == 0)
|
2021-04-25 09:26:57 +00:00
|
|
|
m_remoteControlPort = (unsigned short)::atoi(value);
|
2016-04-06 16:43:20 +00:00
|
|
|
}
|
2016-10-28 12:22:20 +00:00
|
|
|
}
|
2016-01-14 18:45:04 +00:00
|
|
|
|
2020-12-15 16:21:07 +00:00
|
|
|
::fclose(fp);
|
2016-01-14 18:45:04 +00:00
|
|
|
|
2020-12-15 16:21:07 +00:00
|
|
|
return true;
|
2016-01-14 18:45:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
std::string CConf::getCallsign() const
|
|
|
|
{
|
2017-04-11 18:26:44 +00:00
|
|
|
return m_callsign;
|
2016-01-14 18:45:04 +00:00
|
|
|
}
|
|
|
|
|
2017-08-19 15:23:37 +00:00
|
|
|
unsigned int CConf::getId() const
|
|
|
|
{
|
|
|
|
return m_id;
|
|
|
|
}
|
|
|
|
|
2016-01-14 18:45:04 +00:00
|
|
|
unsigned int CConf::getTimeout() const
|
|
|
|
{
|
2017-04-11 18:26:44 +00:00
|
|
|
return m_timeout;
|
2016-01-14 18:45:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CConf::getDuplex() const
|
|
|
|
{
|
2017-04-11 18:26:44 +00:00
|
|
|
return m_duplex;
|
2016-01-14 18:45:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
std::string CConf::getDisplay() const
|
|
|
|
{
|
2017-04-11 18:26:44 +00:00
|
|
|
return m_display;
|
2016-01-14 18:45:04 +00:00
|
|
|
}
|
|
|
|
|
2016-05-03 22:01:49 +00:00
|
|
|
bool CConf::getDaemon() const
|
|
|
|
{
|
|
|
|
return m_daemon;
|
|
|
|
}
|
|
|
|
|
2017-08-20 11:07:57 +00:00
|
|
|
unsigned int CConf::getRXFrequency() const
|
2016-01-14 18:45:04 +00:00
|
|
|
{
|
|
|
|
return m_rxFrequency;
|
|
|
|
}
|
|
|
|
|
2017-08-20 11:07:57 +00:00
|
|
|
unsigned int CConf::getTXFrequency() const
|
2016-01-14 18:45:04 +00:00
|
|
|
{
|
|
|
|
return m_txFrequency;
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int CConf::getPower() const
|
|
|
|
{
|
|
|
|
return m_power;
|
|
|
|
}
|
|
|
|
|
2020-12-09 09:41:11 +00:00
|
|
|
float CConf::getLatitude() const
|
|
|
|
{
|
|
|
|
return m_latitude;
|
|
|
|
}
|
|
|
|
|
|
|
|
float CConf::getLongitude() const
|
|
|
|
{
|
|
|
|
return m_longitude;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CConf::getHeight() const
|
|
|
|
{
|
|
|
|
return m_height;
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string CConf::getLocation() const
|
|
|
|
{
|
|
|
|
return m_location;
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string CConf::getDescription() const
|
|
|
|
{
|
|
|
|
return m_description;
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string CConf::getURL() const
|
|
|
|
{
|
|
|
|
return m_url;
|
|
|
|
}
|
|
|
|
|
2016-03-07 18:42:05 +00:00
|
|
|
unsigned int CConf::getLogDisplayLevel() const
|
2016-01-14 18:45:04 +00:00
|
|
|
{
|
2016-03-07 18:42:05 +00:00
|
|
|
return m_logDisplayLevel;
|
2016-01-14 18:45:04 +00:00
|
|
|
}
|
|
|
|
|
2016-03-07 18:42:05 +00:00
|
|
|
unsigned int CConf::getLogFileLevel() const
|
2016-01-14 18:45:04 +00:00
|
|
|
{
|
2016-03-07 18:42:05 +00:00
|
|
|
return m_logFileLevel;
|
2016-01-14 18:45:04 +00:00
|
|
|
}
|
|
|
|
|
2016-03-07 18:42:05 +00:00
|
|
|
std::string CConf::getLogFilePath() const
|
2016-01-14 18:45:04 +00:00
|
|
|
{
|
2017-04-11 18:26:44 +00:00
|
|
|
return m_logFilePath;
|
2016-01-14 18:45:04 +00:00
|
|
|
}
|
|
|
|
|
2016-03-07 18:42:05 +00:00
|
|
|
std::string CConf::getLogFileRoot() const
|
2016-01-14 18:45:04 +00:00
|
|
|
{
|
2017-04-11 18:26:44 +00:00
|
|
|
return m_logFileRoot;
|
2016-01-14 18:45:04 +00:00
|
|
|
}
|
|
|
|
|
2020-10-31 21:35:09 +00:00
|
|
|
bool CConf::getLogFileRotate() const
|
|
|
|
{
|
|
|
|
return m_logFileRotate;
|
|
|
|
}
|
|
|
|
|
2016-05-09 20:55:44 +00:00
|
|
|
bool CConf::getCWIdEnabled() const
|
|
|
|
{
|
|
|
|
return m_cwIdEnabled;
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int CConf::getCWIdTime() const
|
|
|
|
{
|
|
|
|
return m_cwIdTime;
|
|
|
|
}
|
2017-04-10 16:55:53 +00:00
|
|
|
|
|
|
|
std::string CConf::getCWIdCallsign() const
|
|
|
|
{
|
2017-04-11 18:26:44 +00:00
|
|
|
return m_cwIdCallsign;
|
2017-04-10 16:55:53 +00:00
|
|
|
}
|
2016-05-09 20:55:44 +00:00
|
|
|
|
2016-10-10 18:15:30 +00:00
|
|
|
std::string CConf::getDMRIdLookupFile() const
|
|
|
|
{
|
|
|
|
return m_dmrIdLookupFile;
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int CConf::getDMRIdLookupTime() const
|
|
|
|
{
|
|
|
|
return m_dmrIdLookupTime;
|
|
|
|
}
|
|
|
|
|
2021-02-16 22:34:25 +00:00
|
|
|
std::string CConf::getModemProtocol() const
|
2016-01-14 18:45:04 +00:00
|
|
|
{
|
2021-02-16 22:34:25 +00:00
|
|
|
return m_modemProtocol;
|
2016-01-14 18:45:04 +00:00
|
|
|
}
|
|
|
|
|
2021-02-16 22:34:25 +00:00
|
|
|
std::string CConf::getModemUARTPort() const
|
2018-07-19 13:09:00 +00:00
|
|
|
{
|
2021-02-16 22:34:25 +00:00
|
|
|
return m_modemUARTPort;
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int CConf::getModemUARTSpeed() const
|
|
|
|
{
|
|
|
|
return m_modemUARTSpeed;
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string CConf::getModemI2CPort() const
|
|
|
|
{
|
|
|
|
return m_modemI2CPort;
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int CConf::getModemI2CAddress() const
|
|
|
|
{
|
|
|
|
return m_modemI2CAddress;
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string CConf::getModemModemAddress() const
|
|
|
|
{
|
|
|
|
return m_modemModemAddress;
|
2018-07-19 13:09:00 +00:00
|
|
|
}
|
|
|
|
|
2021-04-25 09:26:57 +00:00
|
|
|
unsigned short CConf::getModemModemPort() const
|
2020-12-15 16:21:07 +00:00
|
|
|
{
|
2021-02-16 22:34:25 +00:00
|
|
|
return m_modemModemPort;
|
2020-12-15 16:21:07 +00:00
|
|
|
}
|
|
|
|
|
2021-04-25 10:10:35 +00:00
|
|
|
std::string CConf::getModemLocalAddress() const
|
|
|
|
{
|
|
|
|
return m_modemLocalAddress;
|
|
|
|
}
|
|
|
|
|
2021-04-25 09:26:57 +00:00
|
|
|
unsigned short CConf::getModemLocalPort() const
|
2018-07-19 13:09:00 +00:00
|
|
|
{
|
2021-02-16 22:34:25 +00:00
|
|
|
return m_modemLocalPort;
|
2018-07-19 13:09:00 +00:00
|
|
|
}
|
|
|
|
|
2016-01-14 18:45:04 +00:00
|
|
|
bool CConf::getModemRXInvert() const
|
|
|
|
{
|
|
|
|
return m_modemRXInvert;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CConf::getModemTXInvert() const
|
|
|
|
{
|
|
|
|
return m_modemTXInvert;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CConf::getModemPTTInvert() const
|
|
|
|
{
|
|
|
|
return m_modemPTTInvert;
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int CConf::getModemTXDelay() const
|
|
|
|
{
|
|
|
|
return m_modemTXDelay;
|
|
|
|
}
|
|
|
|
|
2016-03-17 18:12:14 +00:00
|
|
|
unsigned int CConf::getModemDMRDelay() const
|
|
|
|
{
|
|
|
|
return m_modemDMRDelay;
|
|
|
|
}
|
|
|
|
|
2017-08-20 11:07:57 +00:00
|
|
|
int CConf::getModemRXOffset() const
|
2017-06-14 15:44:23 +00:00
|
|
|
{
|
2017-08-20 11:07:57 +00:00
|
|
|
return m_modemRXOffset;
|
2017-06-14 15:44:23 +00:00
|
|
|
}
|
|
|
|
|
2017-08-20 11:07:57 +00:00
|
|
|
int CConf::getModemTXOffset() const
|
2017-06-14 15:44:23 +00:00
|
|
|
{
|
2017-08-20 11:07:57 +00:00
|
|
|
return m_modemTXOffset;
|
|
|
|
}
|
|
|
|
|
2017-10-28 11:37:32 +00:00
|
|
|
int CConf::getModemRXDCOffset() const
|
|
|
|
{
|
|
|
|
return m_modemRXDCOffset;
|
|
|
|
}
|
|
|
|
|
2017-08-20 11:07:57 +00:00
|
|
|
int CConf::getModemTXDCOffset() const
|
|
|
|
{
|
|
|
|
return m_modemTXDCOffset;
|
2017-06-14 15:44:23 +00:00
|
|
|
}
|
|
|
|
|
2017-12-30 15:05:11 +00:00
|
|
|
float CConf::getModemRFLevel() const
|
|
|
|
{
|
|
|
|
return m_modemRFLevel;
|
|
|
|
}
|
|
|
|
|
2017-06-02 15:34:55 +00:00
|
|
|
float CConf::getModemRXLevel() const
|
2016-01-14 18:45:04 +00:00
|
|
|
{
|
|
|
|
return m_modemRXLevel;
|
|
|
|
}
|
|
|
|
|
2017-06-02 15:34:55 +00:00
|
|
|
float CConf::getModemCWIdTXLevel() const
|
2016-10-10 16:46:37 +00:00
|
|
|
{
|
|
|
|
return m_modemCWIdTXLevel;
|
|
|
|
}
|
|
|
|
|
2017-06-02 15:34:55 +00:00
|
|
|
float CConf::getModemDMRTXLevel() const
|
2016-08-09 06:08:37 +00:00
|
|
|
{
|
|
|
|
return m_modemDMRTXLevel;
|
|
|
|
}
|
|
|
|
|
2016-12-21 19:58:46 +00:00
|
|
|
std::string CConf::getModemRSSIMappingFile () const
|
2016-08-08 20:26:18 +00:00
|
|
|
{
|
2016-12-21 19:58:46 +00:00
|
|
|
return m_modemRSSIMappingFile;
|
2016-08-08 20:26:18 +00:00
|
|
|
}
|
|
|
|
|
2020-07-13 15:02:04 +00:00
|
|
|
bool CConf::getModemUseCOSAsLockout() const
|
|
|
|
{
|
|
|
|
return m_modemUseCOSAsLockout;
|
|
|
|
}
|
|
|
|
|
2017-04-14 13:05:30 +00:00
|
|
|
bool CConf::getModemTrace() const
|
|
|
|
{
|
|
|
|
return m_modemTrace;
|
|
|
|
}
|
|
|
|
|
2016-01-14 18:45:04 +00:00
|
|
|
bool CConf::getModemDebug() const
|
|
|
|
{
|
|
|
|
return m_modemDebug;
|
|
|
|
}
|
|
|
|
|
2018-03-22 07:13:13 +00:00
|
|
|
bool CConf::getTransparentEnabled() const
|
|
|
|
{
|
|
|
|
return m_transparentEnabled;
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string CConf::getTransparentRemoteAddress() const
|
|
|
|
{
|
|
|
|
return m_transparentRemoteAddress;
|
|
|
|
}
|
|
|
|
|
2021-04-25 05:47:06 +00:00
|
|
|
unsigned short CConf::getTransparentRemotePort() const
|
2018-03-22 07:13:13 +00:00
|
|
|
{
|
|
|
|
return m_transparentRemotePort;
|
|
|
|
}
|
|
|
|
|
2021-04-25 05:47:06 +00:00
|
|
|
unsigned short CConf::getTransparentLocalPort() const
|
2018-03-22 07:13:13 +00:00
|
|
|
{
|
|
|
|
return m_transparentLocalPort;
|
|
|
|
}
|
|
|
|
|
2018-08-13 18:39:16 +00:00
|
|
|
unsigned int CConf::getTransparentSendFrameType() const
|
|
|
|
{
|
|
|
|
return m_transparentSendFrameType;
|
|
|
|
}
|
|
|
|
|
2016-01-14 18:45:04 +00:00
|
|
|
bool CConf::getDMREnabled() const
|
|
|
|
{
|
|
|
|
return m_dmrEnabled;
|
|
|
|
}
|
|
|
|
|
2019-11-05 08:42:21 +00:00
|
|
|
DMR_BEACONS CConf::getDMRBeacons() const
|
2016-01-14 19:58:16 +00:00
|
|
|
{
|
|
|
|
return m_dmrBeacons;
|
|
|
|
}
|
|
|
|
|
2018-01-16 18:35:29 +00:00
|
|
|
unsigned int CConf::getDMRBeaconInterval() const
|
|
|
|
{
|
|
|
|
return m_dmrBeaconInterval;
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int CConf::getDMRBeaconDuration() const
|
|
|
|
{
|
|
|
|
return m_dmrBeaconDuration;
|
|
|
|
}
|
|
|
|
|
2016-01-14 18:45:04 +00:00
|
|
|
unsigned int CConf::getDMRId() const
|
|
|
|
{
|
|
|
|
return m_dmrId;
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int CConf::getDMRColorCode() const
|
|
|
|
{
|
|
|
|
return m_dmrColorCode;
|
|
|
|
}
|
|
|
|
|
2016-04-04 16:40:05 +00:00
|
|
|
bool CConf::getDMRSelfOnly() const
|
|
|
|
{
|
|
|
|
return m_dmrSelfOnly;
|
|
|
|
}
|
|
|
|
|
2017-01-16 12:10:23 +00:00
|
|
|
bool CConf::getDMREmbeddedLCOnly() const
|
|
|
|
{
|
|
|
|
return m_dmrEmbeddedLCOnly;
|
|
|
|
}
|
|
|
|
|
2017-02-27 20:17:55 +00:00
|
|
|
bool CConf::getDMRDumpTAData() const
|
|
|
|
{
|
|
|
|
return m_dmrDumpTAData;
|
|
|
|
}
|
|
|
|
|
2016-04-04 18:03:38 +00:00
|
|
|
std::vector<unsigned int> CConf::getDMRPrefixes() const
|
|
|
|
{
|
|
|
|
return m_dmrPrefixes;
|
|
|
|
}
|
|
|
|
|
2016-04-06 17:46:05 +00:00
|
|
|
std::vector<unsigned int> CConf::getDMRBlackList() const
|
|
|
|
{
|
|
|
|
return m_dmrBlackList;
|
|
|
|
}
|
2016-10-10 18:15:30 +00:00
|
|
|
|
2016-12-21 19:06:29 +00:00
|
|
|
std::vector<unsigned int> CConf::getDMRWhiteList() const
|
2016-04-12 17:26:13 +00:00
|
|
|
{
|
2016-12-21 19:06:29 +00:00
|
|
|
return m_dmrWhiteList;
|
2016-04-12 17:26:13 +00:00
|
|
|
}
|
|
|
|
|
2017-01-05 19:15:10 +00:00
|
|
|
std::vector<unsigned int> CConf::getDMRSlot1TGWhiteList() const
|
|
|
|
{
|
|
|
|
return m_dmrSlot1TGWhiteList;
|
|
|
|
}
|
|
|
|
|
|
|
|
std::vector<unsigned int> CConf::getDMRSlot2TGWhiteList() const
|
|
|
|
{
|
|
|
|
return m_dmrSlot2TGWhiteList;
|
|
|
|
}
|
|
|
|
|
2016-06-16 20:40:05 +00:00
|
|
|
unsigned int CConf::getDMRCallHang() const
|
|
|
|
{
|
|
|
|
return m_dmrCallHang;
|
|
|
|
}
|
|
|
|
|
2016-05-05 16:56:18 +00:00
|
|
|
unsigned int CConf::getDMRTXHang() const
|
|
|
|
{
|
|
|
|
return m_dmrTXHang;
|
|
|
|
}
|
|
|
|
|
2017-09-01 08:25:54 +00:00
|
|
|
unsigned int CConf::getDMRModeHang() const
|
|
|
|
{
|
|
|
|
return m_dmrModeHang;
|
|
|
|
}
|
|
|
|
|
2019-11-17 02:57:58 +00:00
|
|
|
DMR_OVCM_TYPES CConf::getDMROVCM() const
|
2019-10-11 17:24:25 +00:00
|
|
|
{
|
|
|
|
return m_dmrOVCM;
|
|
|
|
}
|
|
|
|
|
2022-07-29 16:49:08 +00:00
|
|
|
bool CConf::getDMRNetworkEnabled() const
|
2018-06-12 18:40:49 +00:00
|
|
|
{
|
2022-07-29 16:49:08 +00:00
|
|
|
return m_dmrNetworkEnabled;
|
2018-06-12 18:40:49 +00:00
|
|
|
}
|
|
|
|
|
2022-07-29 16:49:08 +00:00
|
|
|
std::string CConf::getDMRNetworkType() const
|
2020-04-09 21:02:47 +00:00
|
|
|
{
|
2022-07-29 16:49:08 +00:00
|
|
|
return m_dmrNetworkType;
|
2020-04-09 21:02:47 +00:00
|
|
|
}
|
|
|
|
|
2022-07-29 16:49:08 +00:00
|
|
|
std::string CConf::getDMRNetworkRemoteAddress() const
|
2020-04-09 21:02:47 +00:00
|
|
|
{
|
2022-07-29 16:49:08 +00:00
|
|
|
return m_dmrNetworkRemoteAddress;
|
2020-04-09 21:02:47 +00:00
|
|
|
}
|
|
|
|
|
2022-07-29 16:49:08 +00:00
|
|
|
unsigned short CConf::getDMRNetworkRemotePort() const
|
2020-04-09 21:02:47 +00:00
|
|
|
{
|
2022-07-29 16:49:08 +00:00
|
|
|
return m_dmrNetworkRemotePort;
|
2020-04-09 21:02:47 +00:00
|
|
|
}
|
|
|
|
|
2022-07-29 16:49:08 +00:00
|
|
|
std::string CConf::getDMRNetworkLocalAddress() const
|
2020-04-09 21:02:47 +00:00
|
|
|
{
|
2022-07-29 16:49:08 +00:00
|
|
|
return m_dmrNetworkLocalAddress;
|
2020-04-09 21:02:47 +00:00
|
|
|
}
|
|
|
|
|
2022-07-29 16:49:08 +00:00
|
|
|
unsigned short CConf::getDMRNetworkLocalPort() const
|
2020-04-09 21:02:47 +00:00
|
|
|
{
|
2022-07-29 16:49:08 +00:00
|
|
|
return m_dmrNetworkLocalPort;
|
2020-04-09 21:02:47 +00:00
|
|
|
}
|
|
|
|
|
2022-07-29 16:49:08 +00:00
|
|
|
std::string CConf::getDMRNetworkPassword() const
|
2020-04-09 21:02:47 +00:00
|
|
|
{
|
2022-07-29 16:49:08 +00:00
|
|
|
return m_dmrNetworkPassword;
|
2020-04-09 21:02:47 +00:00
|
|
|
}
|
|
|
|
|
2022-07-29 16:49:08 +00:00
|
|
|
std::string CConf::getDMRNetworkOptions() const
|
2020-04-09 21:02:47 +00:00
|
|
|
{
|
2022-07-29 16:49:08 +00:00
|
|
|
return m_dmrNetworkOptions;
|
2020-04-22 20:51:43 +00:00
|
|
|
}
|
|
|
|
|
2022-07-29 16:49:08 +00:00
|
|
|
unsigned int CConf::getDMRNetworkModeHang() const
|
2020-04-22 20:51:43 +00:00
|
|
|
{
|
2022-07-29 16:49:08 +00:00
|
|
|
return m_dmrNetworkModeHang;
|
2020-04-09 21:02:47 +00:00
|
|
|
}
|
|
|
|
|
2022-07-29 16:49:08 +00:00
|
|
|
bool CConf::getDMRNetworkDebug() const
|
2020-04-09 21:02:47 +00:00
|
|
|
{
|
2022-07-29 16:49:08 +00:00
|
|
|
return m_dmrNetworkDebug;
|
2020-04-09 21:02:47 +00:00
|
|
|
}
|
|
|
|
|
2022-07-29 16:49:08 +00:00
|
|
|
unsigned int CConf::getDMRNetworkJitter() const
|
2020-04-09 21:02:47 +00:00
|
|
|
{
|
2022-07-29 16:49:08 +00:00
|
|
|
return m_dmrNetworkJitter;
|
2020-04-09 21:02:47 +00:00
|
|
|
}
|
|
|
|
|
2022-07-29 16:49:08 +00:00
|
|
|
bool CConf::getDMRNetworkSlot1() const
|
2020-05-04 21:30:16 +00:00
|
|
|
{
|
2022-07-29 16:49:08 +00:00
|
|
|
return m_dmrNetworkSlot1;
|
2020-05-04 21:30:16 +00:00
|
|
|
}
|
|
|
|
|
2022-07-29 16:49:08 +00:00
|
|
|
bool CConf::getDMRNetworkSlot2() const
|
2016-02-15 20:36:05 +00:00
|
|
|
{
|
|
|
|
return m_dmrNetworkSlot2;
|
|
|
|
}
|
|
|
|
|
2016-01-14 18:45:04 +00:00
|
|
|
std::string CConf::getTFTSerialPort() const
|
|
|
|
{
|
2017-04-11 18:26:44 +00:00
|
|
|
return m_tftSerialPort;
|
2016-01-14 18:45:04 +00:00
|
|
|
}
|
2016-02-16 18:30:12 +00:00
|
|
|
|
|
|
|
unsigned int CConf::getTFTSerialBrightness() const
|
|
|
|
{
|
|
|
|
return m_tftSerialBrightness;
|
|
|
|
}
|
2016-03-14 22:58:09 +00:00
|
|
|
|
|
|
|
unsigned int CConf::getHD44780Rows() const
|
|
|
|
{
|
|
|
|
return m_hd44780Rows;
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int CConf::getHD44780Columns() const
|
|
|
|
{
|
|
|
|
return m_hd44780Columns;
|
|
|
|
}
|
2016-04-06 16:43:20 +00:00
|
|
|
|
|
|
|
std::vector<unsigned int> CConf::getHD44780Pins() const
|
|
|
|
{
|
|
|
|
return m_hd44780Pins;
|
|
|
|
}
|
2016-04-06 18:53:25 +00:00
|
|
|
|
2016-06-30 19:35:32 +00:00
|
|
|
unsigned int CConf::getHD44780i2cAddress() const
|
2016-06-30 19:10:30 +00:00
|
|
|
{
|
|
|
|
return m_hd44780i2cAddress;
|
|
|
|
}
|
|
|
|
|
2016-05-03 16:59:21 +00:00
|
|
|
bool CConf::getHD44780PWM() const
|
2016-05-01 15:59:43 +00:00
|
|
|
{
|
|
|
|
return m_hd44780PWM;
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int CConf::getHD44780PWMPin() const
|
|
|
|
{
|
|
|
|
return m_hd44780PWMPin;
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int CConf::getHD44780PWMBright() const
|
|
|
|
{
|
|
|
|
return m_hd44780PWMBright;
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int CConf::getHD44780PWMDim() const
|
|
|
|
{
|
|
|
|
return m_hd44780PWMDim;
|
|
|
|
}
|
|
|
|
|
2016-05-28 20:29:30 +00:00
|
|
|
bool CConf::getHD44780DisplayClock() const
|
|
|
|
{
|
|
|
|
return m_hd44780DisplayClock;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CConf::getHD44780UTC() const
|
|
|
|
{
|
|
|
|
return m_hd44780UTC;
|
|
|
|
}
|
|
|
|
|
2016-04-06 18:53:25 +00:00
|
|
|
std::string CConf::getNextionPort() const
|
|
|
|
{
|
|
|
|
return m_nextionPort;
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int CConf::getNextionBrightness() const
|
|
|
|
{
|
|
|
|
return m_nextionBrightness;
|
|
|
|
}
|
2016-05-06 23:03:39 +00:00
|
|
|
|
2016-06-01 10:55:24 +00:00
|
|
|
bool CConf::getNextionDisplayClock() const
|
|
|
|
{
|
|
|
|
return m_nextionDisplayClock;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CConf::getNextionUTC() const
|
|
|
|
{
|
|
|
|
return m_nextionUTC;
|
|
|
|
}
|
|
|
|
|
2016-06-24 09:33:28 +00:00
|
|
|
unsigned int CConf::getNextionIdleBrightness() const
|
2016-06-24 07:30:46 +00:00
|
|
|
{
|
2016-06-24 09:33:28 +00:00
|
|
|
return m_nextionIdleBrightness;
|
2016-06-24 07:30:46 +00:00
|
|
|
}
|
|
|
|
|
2017-11-13 20:48:47 +00:00
|
|
|
unsigned int CConf::getNextionScreenLayout() const
|
|
|
|
{
|
|
|
|
return m_nextionScreenLayout;
|
|
|
|
}
|
|
|
|
|
2016-05-06 23:03:39 +00:00
|
|
|
unsigned char CConf::getOLEDType() const
|
|
|
|
{
|
|
|
|
return m_oledType;
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned char CConf::getOLEDBrightness() const
|
|
|
|
{
|
|
|
|
return m_oledBrightness;
|
|
|
|
}
|
|
|
|
|
2016-11-03 21:43:29 +00:00
|
|
|
bool CConf::getOLEDInvert() const
|
2016-05-06 23:03:39 +00:00
|
|
|
{
|
|
|
|
return m_oledInvert;
|
|
|
|
}
|
2016-10-28 12:22:20 +00:00
|
|
|
|
2017-08-13 09:57:02 +00:00
|
|
|
bool CConf::getOLEDScroll() const
|
|
|
|
{
|
|
|
|
return m_oledScroll;
|
|
|
|
}
|
|
|
|
|
2018-10-30 14:30:41 +00:00
|
|
|
bool CConf::getOLEDRotate() const
|
|
|
|
{
|
|
|
|
return m_oledRotate;
|
|
|
|
}
|
|
|
|
|
2019-09-27 20:28:57 +00:00
|
|
|
bool CConf::getOLEDLogoScreensaver() const
|
|
|
|
{
|
|
|
|
return m_oledLogoScreensaver;
|
|
|
|
}
|
|
|
|
|
2016-10-28 12:22:20 +00:00
|
|
|
std::string CConf::getLCDprocAddress() const
|
|
|
|
{
|
|
|
|
return m_lcdprocAddress;
|
|
|
|
}
|
|
|
|
|
2021-04-25 05:47:06 +00:00
|
|
|
unsigned short CConf::getLCDprocPort() const
|
2016-10-28 12:22:20 +00:00
|
|
|
{
|
|
|
|
return m_lcdprocPort;
|
|
|
|
}
|
|
|
|
|
2021-04-25 05:47:06 +00:00
|
|
|
unsigned short CConf::getLCDprocLocalPort() const
|
2016-10-28 12:22:20 +00:00
|
|
|
{
|
|
|
|
return m_lcdprocLocalPort;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CConf::getLCDprocDisplayClock() const
|
|
|
|
{
|
|
|
|
return m_lcdprocDisplayClock;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CConf::getLCDprocUTC() const
|
|
|
|
{
|
|
|
|
return m_lcdprocUTC;
|
|
|
|
}
|
2016-10-29 19:00:32 +00:00
|
|
|
|
|
|
|
bool CConf::getLCDprocDimOnIdle() const
|
|
|
|
{
|
|
|
|
return m_lcdprocDimOnIdle;
|
|
|
|
}
|
2018-09-05 20:12:12 +00:00
|
|
|
|
|
|
|
bool CConf::getNextionTempInFahrenheit() const
|
|
|
|
{
|
|
|
|
return m_nextionTempInFahrenheit;
|
|
|
|
}
|
2018-10-10 19:05:24 +00:00
|
|
|
|
|
|
|
bool CConf::getLockFileEnabled() const
|
|
|
|
{
|
|
|
|
return m_lockFileEnabled;
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string CConf::getLockFileName() const
|
|
|
|
{
|
|
|
|
return m_lockFileName;
|
|
|
|
}
|
2018-11-06 12:14:57 +00:00
|
|
|
|
2019-01-07 11:03:37 +00:00
|
|
|
bool CConf::getRemoteControlEnabled() const
|
|
|
|
{
|
|
|
|
return m_remoteControlEnabled;
|
|
|
|
}
|
|
|
|
|
2020-04-11 04:12:19 +00:00
|
|
|
std::string CConf::getRemoteControlAddress() const
|
|
|
|
{
|
|
|
|
return m_remoteControlAddress;
|
|
|
|
}
|
|
|
|
|
2021-04-25 05:47:06 +00:00
|
|
|
unsigned short CConf::getRemoteControlPort() const
|
2019-01-07 11:03:37 +00:00
|
|
|
{
|
|
|
|
return m_remoteControlPort;
|
|
|
|
}
|