29 #ifndef SODA_HAMLIB_HANDLER_HEADER 30 #define SODA_HAMLIB_HANDLER_HEADER 33 #include <QTextStream> 34 #include <QtNetwork/QtNetwork> 36 #include <boost/format.hpp> 39 #include "../src/Command.hxx" 78 const char * longname,
85 bool cmdDumpState(QTextStream & out, QTextStream & in,
bool getval);
86 bool cmdVFO(QTextStream & out, QTextStream & in,
bool getval);
87 bool cmdFreq(QTextStream & out, QTextStream & in,
bool getval);
88 bool cmdSplitFreq(QTextStream & out, QTextStream & in,
bool getval);
89 bool cmdMode(QTextStream & out, QTextStream & in,
bool getval);
90 bool cmdPTT(QTextStream & out, QTextStream & in,
bool getval);
91 bool cmdSplitVFO(QTextStream & out, QTextStream & in,
bool getval);
92 bool cmdQuit(QTextStream & out, QTextStream & in,
bool getval);
void reportTXOn(bool tx_on)
bool cmdMode(QTextStream &out, QTextStream &in, bool getval)
void reportTXFreq(double f)
void setModulation(SoDa::Command::ModulationType mod)
void processCommand(const QString &cmd, QTcpSocket *socket_p)
bool cmdPTT(QTextStream &out, QTextStream &in, bool getval)
std::map< QString, SoDa::Command::ModulationType > hl2soda_modmap
bool cmdSplitVFO(QTextStream &out, QTextStream &in, bool getval)
ModulationType
modulation selector targets take one of these values
std::map< QString, cmdHandler_t > set_command_map
bool cmdQuit(QTextStream &out, QTextStream &in, bool getval)
bool(HamlibHandler::* cmdHandler_t)(QTextStream &, QTextStream &, bool)
bool cmdVFO(QTextStream &out, QTextStream &in, bool getval)
void registerCommand(const char *shortname, const char *longname, cmdHandler_t handler, bool is_get)
std::map< QString, cmdHandler_t > get_command_map
void reportModulation(int mod_id)
void reportRXFreq(double f)
bool cmdDumpState(QTextStream &out, QTextStream &in, bool getval)
bool cmdSplitFreq(QTextStream &out, QTextStream &in, bool getval)
HamlibHandler(QObject *parent=0)
SoDa::Command::ModulationType current_modtype
SoDa::Command::ModulationType modulation
std::map< SoDa::Command::ModulationType, QString > soda2hl_modmap
bool cmdFreq(QTextStream &out, QTextStream &in, bool getval)