You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
F4KXL_DStarGateway/DStarGateway/DStarGatewayStatusData.cpp

91 lines
2.2 KiB

/*
* Copyright (C) 2010,2011,2013 by Jonathan Naylor G4KLX
* Copyright (C) 2021 by Geoffrey Merck F4FXL / KC3FRA
*
* 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.
*/
#include <cassert>
#include "DStarGatewayStatusData.h"
CDStarGatewayStatusData::CDStarGatewayStatusData(IRCDDB_STATUS ircDDBStatus, bool dprsStatus) :
m_ircDDBStatus(ircDDBStatus),
m_dprsStatus(dprsStatus)
{
}
CDStarGatewayStatusData::~CDStarGatewayStatusData()
{
}
void CDStarGatewayStatusData::setRepeater(unsigned int n, const std::string& callsign, LINK_STATUS linkStatus, const std::string& linkCallsign, const std::string& incoming)
{
assert(n < 4U);
m_callsign[n] = callsign;
m_linkStatus[n] = linkStatus;
m_linkCallsign[n] = linkCallsign;
m_incoming[n] = incoming;
}
void CDStarGatewayStatusData::setDongles(const std::string& dongles)
{
m_dongles = dongles;
}
IRCDDB_STATUS CDStarGatewayStatusData::getIrcDDBStatus() const
{
return m_ircDDBStatus;
}
bool CDStarGatewayStatusData::getDPRSStatus() const
{
return m_dprsStatus;
}
std::string CDStarGatewayStatusData::getCallsign(unsigned int n) const
{
assert(n < 4U);
return m_callsign[n];
}
LINK_STATUS CDStarGatewayStatusData::getLinkStatus(unsigned int n) const
{
assert(n < 4U);
return m_linkStatus[n];
}
std::string CDStarGatewayStatusData::getLinkCallsign(unsigned int n) const
{
assert(n < 4U);
return m_linkCallsign[n];
}
std::string CDStarGatewayStatusData::getIncoming(unsigned int n) const
{
assert(n < 4U);
return m_incoming[n];
}
std::string CDStarGatewayStatusData::getDongles() const
{
return m_dongles;
}

Powered by TurnKey Linux.