18 #ifndef INCLUDE_FCDINPUT_H 19 #define INCLUDE_FCDINPUT_H 25 #include <QNetworkRequest> 39 class QNetworkAccessManager;
86 m_startStop(startStop)
105 m_startStop(startStop)
111 virtual void destroy();
114 virtual bool start();
117 virtual QByteArray serialize()
const;
118 virtual bool deserialize(
const QByteArray& data);
121 virtual const QString& getDeviceDescription()
const;
122 virtual int getSampleRate()
const;
124 virtual quint64 getCenterFrequency()
const;
125 virtual void setCenterFrequency(qint64 centerFrequency);
127 virtual bool handleMessage(
const Message& message);
129 virtual int webapiRunGet(
131 QString& errorMessage);
133 virtual int webapiRun(
136 QString& errorMessage);
138 virtual int webapiSettingsGet(
140 QString& errorMessage);
142 virtual int webapiSettingsPutPatch(
144 const QStringList& deviceSettingsKeys,
146 QString& errorMessage);
148 void set_center_freq(
double freq);
149 void set_bias_t(
bool on);
150 void set_lna_gain(
bool on);
151 void set_mixer_gain(
bool on);
152 void set_if_gain(
int gain);
153 void set_rf_filter(
int filterIndex);
154 void set_if_filter(
int filterIndex);
172 bool openFCDAudio(
const char *filename);
173 void closeFCDAudio();
176 void webapiReverseSendSettings(QList<QString>& deviceSettingsKeys,
const FCDProPlusSettings& settings,
bool force);
177 void webapiReverseSendStartStop(
bool start);
180 void networkManagerFinished(QNetworkReply *reply);
183 #endif // INCLUDE_FCD_H
#define MESSAGE_CLASS_DECLARATION