44 band_name = set_p->value(
"Name").toString();
47 def_rx_ant = set_p->value(
"DefRXAnt").toString();
48 def_tx_ant = set_p->value(
"DefTXAnt").toString();
50 def_mode = set_p->value(
"DefMode").toString();
52 min_freq = set_p->value(
"MinFreq").toDouble();
53 max_freq = set_p->value(
"MaxFreq").toDouble();
60 tv_LO_freq = set_p->value(
"TVLOFreq").toDouble();
61 tv_LO_mult = set_p->value(
"TVLOMult").toDouble();
66 void save(QSettings * set_p)
const {
71 set_p->setValue(
"DefMode",
def_mode);
72 set_p->setValue(
"MinFreq",
min_freq);
73 set_p->setValue(
"MaxFreq",
max_freq);
117 double tf = freq * 1e-6;
148 int size = set_p->beginReadArray(
"Bands");
149 for(
int i = 0; i < size; i++) {
151 set_p->setArrayIndex(i);
152 QString dname = set_p->value(
"Name").toString();
154 QString bn = b.
name();
155 (*this)[b.
name()] = b;
161 set_p->beginWriteArray(
"Bands");
162 BandMapIterator bmi(*
this);
164 while(bmi.hasNext()) {
166 if(bmi.value().name() ==
"")
continue;
167 set_p->setArrayIndex(i);
168 bmi.value().save(set_p);
175 BandMapIterator bmi(*
this);
176 while(bmi.hasNext()) {
178 if(bmi.value().isInBand(freq))
return bmi.value().name();
QString findBand(double freq) const
const QString & name() const
void setLastTXFreq(double v)
bool isInBand(double freq) const
const QString & defTXAnt() const
void restoreBands(QSettings *set_p)
void saveBands(QSettings *set_p)
void save(QSettings *set_p) const
void setTvLOFreq(double v)
double lastRXFreq() const
void setName(const QString &v)
void setTvLOMult(double v)
double lastTXFreq() const
const QString & defMode() const
void restore(QSettings *set_p)
QMapIterator< QString, Band > BandMapIterator
void setDefMode(const QString &v)
void setLastRXFreq(double v)
void setDefRXAnt(const QString &v)
void setTverterLowInjection(bool v)
void setTverterEna(bool v)
void setDefTXAnt(const QString &v)
void setMinFreq(double v)
bool tverterLowInjection() const
void setMaxFreq(double v)
const QString & defRXAnt() const