SoDaRadio-5.0.3-master:8901fb5
|
#include <soda_listener.hpp>
Public Slots | |
void | setRXFreq (double freq) |
void | setTXFreq (double freq) |
void | setModulation (int mod_id) |
void | setAFFilter (int id) |
void | setRXGain (int gain) |
void | setTXGain (int gain) |
void | setAFGain (int gain) |
void | setAFSidetoneGain (int gain) |
void | setRXAnt (const QString &antname) |
void | setTXAnt (const QString &antname) |
double | getRXFreq () |
double | getTXFreq () |
void | setSpectrumCenter (double freq) |
void | setSpectrumAvgWindow (int window) |
void | setSpectrumUpdateRate (int rate) |
void | setCWSpeed (int speed) |
void | setSidetoneVolume (int vol) |
void | setTXPower (int vol) |
void | setPTT (bool on) |
void | sendCW (const QString &txt) |
void | clearCWBuffer () |
void | closeRadio () |
Signals | |
void | updateData (double cfreq, float *y) |
void | configureSpectrum (double cfreq, double span, long buckets) |
void | addModulation (QString modtype, int mod_id) |
void | addFilterWidth (double lo, double hi) |
void | addFilterName (QString filter_name, int filt_id) |
void | repMarkerOffset (double lo, double hi) |
void | addRXAntName (const QString &ant_name) |
void | addTXAntName (const QString &ant_name) |
void | repFilterEdges (double lo, double hi) |
void | repGPSLatLon (double lat, double lon) |
void | repGPSTime (int hh, int mm, int ss) |
void | repGPSLock (bool is_locked) |
void | repSDRVersion (const QString &version) |
void | repHWMBVersion (const QString &version) |
void | repPTT (bool on) |
void | initSetupComplete () |
void | fatalError (const QString &error_string) |
Public Member Functions | |
Listener (QObject *parent=0, const QString &socket_basename="tmp") | |
~Listener () | |
bool | init () |
connect to radio server sockets and initialize listener state More... | |
void | start () |
initiate transfers on the socket. More... | |
Protected Slots | |
void | processCmd () |
void | cmdErrorHandler (QLocalSocket::LocalSocketError err) |
void | processSpectrum () |
Protected Member Functions | |
int | get (char *buf, int maxlen) |
bool | get (SoDa::Command &cmd) |
int | put (const char *buf, int len) |
bool | put (const SoDa::Command &cmd) |
bool | handleREP (const SoDa::Command &cmd) |
bool | handleSET (const SoDa::Command &cmd) |
bool | handleGET (const SoDa::Command &cmd) |
Protected Attributes | |
double | current_rx_freq |
double | current_tx_freq |
Private Member Functions | |
void | setupSpectrumBuffer (double cfreq, double span, long buflen) |
Private Attributes | |
long | spect_buffer_len |
float * | spect_buffer |
double | spect_center_freq |
QString | socket_basename |
QLocalSocket * | cmd_socket |
QLocalSocket * | spect_socket |
bool | quit |
Definition at line 40 of file soda_listener.hpp.
GUISoDa::Listener::Listener | ( | QObject * | parent = 0 , |
const QString & | socket_basename = "tmp" |
||
) |
Definition at line 31 of file soda_listener.cpp.
References quit, and socket_basename.
|
inline |
Definition at line 45 of file soda_listener.hpp.
References addFilterName(), addFilterWidth(), addModulation(), addRXAntName(), addTXAntName(), configureSpectrum(), fatalError(), init(), initSetupComplete(), repFilterEdges(), repGPSLatLon(), repGPSLock(), repGPSTime(), repHWMBVersion(), repMarkerOffset(), repPTT(), repSDRVersion(), setAFFilter(), setAFGain(), setAFSidetoneGain(), setModulation(), setRXAnt(), setRXFreq(), setRXGain(), setTXAnt(), setTXFreq(), setTXGain(), start(), and updateData().
|
signal |
Referenced by handleREP(), and ~Listener().
|
signal |
Referenced by ~Listener().
|
signal |
Referenced by handleREP(), and ~Listener().
|
signal |
Referenced by handleREP(), MainWindow::setupBandConfig(), MainWindow::setupMidControls(), and ~Listener().
|
signal |
Referenced by handleREP(), MainWindow::setupBandConfig(), MainWindow::setupMidControls(), and ~Listener().
|
slot |
Definition at line 365 of file soda_listener.cpp.
References put(), SoDa::Command::SET, and SoDa::Command::TX_CW_FLUSHTEXT.
Referenced by getTXFreq().
|
slot |
Definition at line 420 of file soda_listener.cpp.
References put(), SoDa::Command::SET, and SoDa::Command::STOP.
Referenced by getTXFreq().
|
inlineprotectedslot |
Definition at line 147 of file soda_listener.hpp.
References processSpectrum().
Referenced by init().
|
signal |
Referenced by handleREP(), and ~Listener().
|
signal |
Referenced by init(), and ~Listener().
|
protected |
Definition at line 109 of file soda_listener.cpp.
References cmd_socket.
|
protected |
Definition at line 133 of file soda_listener.cpp.
|
inlineslot |
Definition at line 108 of file soda_listener.hpp.
References current_rx_freq.
|
inlineslot |
Definition at line 109 of file soda_listener.hpp.
References clearCWBuffer(), closeRadio(), current_tx_freq, sendCW(), setCWSpeed(), setPTT(), setSidetoneVolume(), setSpectrumAvgWindow(), setSpectrumCenter(), setSpectrumUpdateRate(), and setTXPower().
|
protected |
Definition at line 411 of file soda_listener.cpp.
References SoDa::Command::target.
Referenced by processCmd().
|
protected |
Definition at line 255 of file soda_listener.cpp.
References addFilterName(), addModulation(), addRXAntName(), addTXAntName(), SoDa::Command::AF_FILT_ENTRY, configureSpectrum(), SoDa::Command::dparms, SoDa::Command::GPS_LATLON, SoDa::Command::GPS_UTC, SoDa::Command::HWMB_REP, SoDa::Command::INIT_SETUP_COMPLETE, initSetupComplete(), SoDa::Command::iparms, SoDa::Command::MOD_SEL_ENTRY, repGPSLatLon(), repGPSTime(), repHWMBVersion(), repMarkerOffset(), repPTT(), repSDRVersion(), SoDa::Command::RX_AF_FILTER_SHAPE, SoDa::Command::RX_ANT_NAME, SoDa::Command::SDR_VERSION, setupSpectrumBuffer(), SoDa::Command::sparm, SoDa::Command::SPEC_DIMS, SoDa::Command::tag, SoDa::Command::target, SoDa::Command::TX_ANT_NAME, and SoDa::Command::TX_STATE.
Referenced by processCmd().
|
protected |
Definition at line 401 of file soda_listener.cpp.
References SoDa::Command::target.
Referenced by processCmd().
bool GUISoDa::Listener::init | ( | ) |
connect to radio server sockets and initialize listener state
Definition at line 36 of file soda_listener.cpp.
References cmd_socket, cmdErrorHandler(), fatalError(), processCmd(), processSpectrum(), socket_basename, spect_buffer_len, and spect_socket.
Referenced by MainWindow::MainWindow(), and ~Listener().
|
signal |
Referenced by handleREP(), and ~Listener().
|
protectedslot |
Definition at line 173 of file soda_listener.cpp.
References SoDa::Command::cmd, cmd_socket, SoDa::Command::GET, handleGET(), handleREP(), handleSET(), SoDa::Command::REP, and SoDa::Command::SET.
Referenced by init().
|
protectedslot |
Definition at line 154 of file soda_listener.cpp.
References spect_buffer, spect_buffer_len, spect_center_freq, spect_socket, and updateData().
Referenced by cmdErrorHandler(), and init().
|
protected |
Definition at line 89 of file soda_listener.cpp.
References cmd_socket.
Referenced by clearCWBuffer(), closeRadio(), put(), sendCW(), setAFFilter(), setAFGain(), setAFSidetoneGain(), setCWSpeed(), setModulation(), setPTT(), setRXAnt(), setRXFreq(), setRXGain(), setSidetoneVolume(), setSpectrumAvgWindow(), setSpectrumCenter(), setSpectrumUpdateRate(), setTXAnt(), setTXFreq(), setTXGain(), setTXPower(), and start().
|
protected |
Definition at line 186 of file soda_listener.cpp.
References put().
|
signal |
Referenced by ~Listener().
|
signal |
Referenced by handleREP(), and ~Listener().
|
signal |
Referenced by ~Listener().
|
signal |
Referenced by handleREP(), and ~Listener().
|
signal |
Referenced by handleREP(), MainWindow::MainWindow(), and ~Listener().
|
signal |
Referenced by handleREP(), and ~Listener().
|
signal |
Referenced by handleREP(), MainWindow::setupMidControls(), and ~Listener().
|
signal |
Referenced by handleREP(), and ~Listener().
|
slot |
Definition at line 372 of file soda_listener.cpp.
References SoDa::Command::getMaxStringLen(), put(), SoDa::Command::SET, and SoDa::Command::TX_CW_TEXT.
Referenced by getTXFreq(), and MainWindow::sendCannedCW().
|
slot |
Definition at line 248 of file soda_listener.cpp.
References put(), SoDa::Command::RX_AF_FILTER, and SoDa::Command::SET.
Referenced by ~Listener().
|
slot |
Definition at line 220 of file soda_listener.cpp.
References put(), SoDa::Command::RX_AF_GAIN, and SoDa::Command::SET.
Referenced by ~Listener().
|
slot |
Definition at line 229 of file soda_listener.cpp.
References put(), SoDa::Command::RX_AF_SIDETONE_GAIN, and SoDa::Command::SET.
Referenced by ~Listener().
|
slot |
Definition at line 336 of file soda_listener.cpp.
References put(), SoDa::Command::SET, and SoDa::Command::TX_CW_SPEED.
Referenced by getTXFreq().
|
slot |
Definition at line 237 of file soda_listener.cpp.
References put(), SoDa::Command::RX_MODE, SoDa::Command::SET, and SoDa::Command::TX_MODE.
Referenced by ~Listener().
|
slot |
Definition at line 357 of file soda_listener.cpp.
References put(), SoDa::Command::SET, and SoDa::Command::TX_STATE.
Referenced by getTXFreq().
|
slot |
Definition at line 301 of file soda_listener.cpp.
References put(), SoDa::Command::RX_ANT, and SoDa::Command::SET.
Referenced by ~Listener().
|
slot |
Definition at line 192 of file soda_listener.cpp.
References current_rx_freq, put(), SoDa::Command::RX_RETUNE_FREQ, and SoDa::Command::SET.
Referenced by MainWindow::setRXFreq_nocross(), MainWindow::setupWaterFall(), and ~Listener().
|
slot |
Definition at line 206 of file soda_listener.cpp.
References put(), SoDa::Command::RX_RF_GAIN, and SoDa::Command::SET.
Referenced by ~Listener().
|
slot |
Definition at line 343 of file soda_listener.cpp.
References put(), SoDa::Command::RX_AF_SIDETONE_GAIN, and SoDa::Command::SET.
Referenced by getTXFreq().
|
slot |
Definition at line 329 of file soda_listener.cpp.
References put(), SoDa::Command::SET, and SoDa::Command::SPEC_AVG_WINDOW.
Referenced by getTXFreq().
|
slot |
Definition at line 315 of file soda_listener.cpp.
References put(), SoDa::Command::SET, and SoDa::Command::SPEC_CENTER_FREQ.
Referenced by MainWindow::changeBand(), getTXFreq(), and MainWindow::updateBandDisplay().
|
slot |
Definition at line 322 of file soda_listener.cpp.
References put(), SoDa::Command::SET, and SoDa::Command::SPEC_UPDATE_RATE.
Referenced by getTXFreq().
|
slot |
Definition at line 308 of file soda_listener.cpp.
References put(), SoDa::Command::SET, and SoDa::Command::TX_ANT.
Referenced by ~Listener().
|
slot |
Definition at line 199 of file soda_listener.cpp.
References current_tx_freq, put(), SoDa::Command::SET, and SoDa::Command::TX_RETUNE_FREQ.
Referenced by MainWindow::setTXFreq_nocross(), and ~Listener().
|
slot |
Definition at line 213 of file soda_listener.cpp.
References put(), SoDa::Command::SET, and SoDa::Command::TX_RF_GAIN.
Referenced by ~Listener().
|
slot |
Definition at line 350 of file soda_listener.cpp.
References put(), SoDa::Command::SET, and SoDa::Command::TX_RF_GAIN.
Referenced by getTXFreq().
|
private |
Definition at line 139 of file soda_listener.cpp.
References spect_buffer, spect_buffer_len, and spect_center_freq.
Referenced by handleREP().
void GUISoDa::Listener::start | ( | ) |
initiate transfers on the socket.
Definition at line 83 of file soda_listener.cpp.
References SoDa::Command::GET, SoDa::Command::HWMB_REP, and put().
Referenced by MainWindow::MainWindow(), and ~Listener().
|
signal |
Referenced by processSpectrum(), and ~Listener().
|
private |
Definition at line 155 of file soda_listener.hpp.
Referenced by get(), init(), processCmd(), and put().
|
protected |
Definition at line 128 of file soda_listener.hpp.
Referenced by getRXFreq(), and setRXFreq().
|
protected |
Definition at line 129 of file soda_listener.hpp.
Referenced by getTXFreq(), and setTXFreq().
|
private |
Definition at line 157 of file soda_listener.hpp.
Referenced by Listener().
|
private |
Definition at line 154 of file soda_listener.hpp.
Referenced by init(), and Listener().
|
private |
Definition at line 142 of file soda_listener.hpp.
Referenced by processSpectrum(), and setupSpectrumBuffer().
|
private |
Definition at line 141 of file soda_listener.hpp.
Referenced by init(), processSpectrum(), and setupSpectrumBuffer().
|
private |
Definition at line 143 of file soda_listener.hpp.
Referenced by processSpectrum(), and setupSpectrumBuffer().
|
private |
Definition at line 156 of file soda_listener.hpp.
Referenced by init(), and processSpectrum().