29 #ifndef SODA_LISTENER_HEADER 30 #define SODA_LISTENER_HEADER 33 #include <QtNetwork/QtNetwork> 36 #include "../src/Command.hxx" 105 void setRXAnt(
const QString & antname);
106 void setTXAnt(
const QString & antname);
121 void sendCW(
const QString & txt);
130 int get(
char* buf,
int maxlen);
132 int put(
const char * buf,
int len);
148 std::cerr <<
"Error [" << err <<
"]\n";
void repMarkerOffset(double lo, double hi)
void addFilterName(QString filter_name, int filt_id)
void sendCW(const QString &txt)
void repFilterEdges(double lo, double hi)
void addTXAntName(const QString &ant_name)
int put(const char *buf, int len)
void setTXAnt(const QString &antname)
void setSidetoneVolume(int vol)
void updateData(double cfreq, float *y)
void setModulation(int mod_id)
void setRXFreq(double freq)
void setSpectrumAvgWindow(int window)
void setCWSpeed(int speed)
void repSDRVersion(const QString &version)
void setAFSidetoneGain(int gain)
void setSpectrumUpdateRate(int rate)
This is a list of all the commands that can "do something" to one or more components in the SoDa radi...
void repGPSTime(int hh, int mm, int ss)
void addModulation(QString modtype, int mod_id)
QLocalSocket * spect_socket
void repGPSLock(bool is_locked)
bool init()
connect to radio server sockets and initialize listener state
void addFilterWidth(double lo, double hi)
bool handleREP(const SoDa::Command &cmd)
void repHWMBVersion(const QString &version)
void setSpectrumCenter(double freq)
bool handleSET(const SoDa::Command &cmd)
void cmdErrorHandler(QLocalSocket::LocalSocketError err)
void setupSpectrumBuffer(double cfreq, double span, long buflen)
void start()
initiate transfers on the socket.
void configureSpectrum(double cfreq, double span, long buckets)
Listener(QObject *parent=0, const QString &socket_basename="tmp")
void setTXFreq(double freq)
void setRXAnt(const QString &antname)
QLocalSocket * cmd_socket
bool handleGET(const SoDa::Command &cmd)
void addRXAntName(const QString &ant_name)
void fatalError(const QString &error_string)
void repGPSLatLon(double lat, double lon)