mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-03-24 13:54:41 +01:00
Remove some old remote control weirdness.
This commit is contained in:
parent
7bbd64c386
commit
f320e82be4
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2019,2021,2023,2025 by Jonathan Naylor G4KLX
|
||||
* Copyright (C) 2019,2021,2023,2025,2026 by Jonathan Naylor G4KLX
|
||||
*
|
||||
* 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
|
||||
|
|
@ -126,35 +126,3 @@ REMOTE_COMMAND CRemoteControl::processCommand(const std::string& command)
|
|||
|
||||
return m_command;
|
||||
}
|
||||
|
||||
unsigned int CRemoteControl::getArgCount() const
|
||||
{
|
||||
switch (m_command) {
|
||||
default:
|
||||
return 0U;
|
||||
}
|
||||
}
|
||||
|
||||
std::string CRemoteControl::getArgString(unsigned int n) const
|
||||
{
|
||||
switch (m_command) {
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
|
||||
if (n >= m_args.size())
|
||||
return "";
|
||||
|
||||
return m_args.at(n);
|
||||
}
|
||||
|
||||
unsigned int CRemoteControl::getArgUInt(unsigned int n) const
|
||||
{
|
||||
return (unsigned int)::atoi(getArgString(n).c_str());
|
||||
}
|
||||
|
||||
int CRemoteControl::getArgInt(unsigned int n) const
|
||||
{
|
||||
return ::atoi(getArgString(n).c_str());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2019,2021,2023,2025 by Jonathan Naylor G4KLX
|
||||
* Copyright (C) 2019,2021,2023,2025,2026 by Jonathan Naylor G4KLX
|
||||
*
|
||||
* 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
|
||||
|
|
@ -57,12 +57,6 @@ public:
|
|||
|
||||
REMOTE_COMMAND processCommand(const std::string& command);
|
||||
|
||||
unsigned int getArgCount() const;
|
||||
|
||||
std::string getArgString(unsigned int n) const;
|
||||
unsigned int getArgUInt(unsigned int n) const;
|
||||
signed int getArgInt(unsigned int n) const;
|
||||
|
||||
private:
|
||||
CDMRGateway* m_host;
|
||||
REMOTE_COMMAND m_command;
|
||||
|
|
|
|||
Loading…
Reference in a new issue