18 #ifndef _TESTMI_TESTMI_H_ 19 #define _TESTMI_TESTMI_H_ 24 #include <QNetworkRequest> 32 class QNetworkAccessManager;
78 m_startStop(startStop),
79 m_streamIndex(streamIndex)
98 m_startStop(startStop)
107 virtual bool start();
130 QString& errorMessage);
134 const QStringList& deviceSettingsKeys,
136 QString& errorMessage);
140 QString& errorMessage);
145 QString& errorMessage);
176 #endif // _TESTMI_TESTMI_H_
virtual int webapiRunGet(SWGSDRangel::SWGDeviceState &response, QString &errorMessage)
virtual quint64 getSourceCenterFrequency(int index) const
Center frequency exposed by the source at index.
std::vector< FileRecord * > m_fileSinks
File sinks to record device I/Q output.
virtual void init()
initializations to be done when all collaborating objects are created and possibly connected ...
virtual int getSourceSampleRate(int index) const
Sample rate exposed by the source at index.
bool applySettings(const TestMISettings &settings, bool force)
static MsgFileRecord * create(bool startStop, int streamIndex)
int getStreamIndex() const
virtual quint64 getSinkCenterFrequency(int index) const
Center frequency exposed by the sink at index.
void networkManagerFinished(QNetworkReply *reply)
virtual int webapiRun(bool run, SWGSDRangel::SWGDeviceState &response, QString &errorMessage)
void webapiReverseSendSettings(const DeviceSettingsKeys &deviceSettingsKeys, const TestMISettings &settings, bool force)
virtual void setMessageQueueToGUI(MessageQueue *queue)
TestMISettings m_settings
#define MESSAGE_CLASS_DECLARATION
bool isRecording(unsigned int istream) const
static MsgStartStop * create(bool startStop)
virtual void setSinkCenterFrequency(qint64 centerFrequency, int index)
QString m_deviceDescription
virtual int webapiSettingsGet(SWGSDRangel::SWGDeviceSettings &response, QString &errorMessage)
virtual bool deserialize(const QByteArray &data)
QList< QString > m_commonSettingsKeys
virtual QByteArray serialize() const
bool getStartStop() const
std::vector< TestMIThread * > m_testSourceThreads
virtual int webapiSettingsPutPatch(bool force, const QStringList &deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings &response, QString &errorMessage)
virtual void setSourceSampleRate(int sampleRate, int index)
For when the source sample rate is set externally.
MsgStartStop(bool startStop)
MessageQueue * m_guiMessageQueue
Input message queue to the GUI.
virtual void setSinkSampleRate(int sampleRate, int index)
For when the sink sample rate is set externally.
virtual const QString & getDeviceDescription() const
QNetworkAccessManager * m_networkManager
void webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings &response, const TestMISettings &settings)
TestMI(DeviceAPI *deviceAPI)
MsgFileRecord(bool startStop, int streamIndex)
void webapiReverseSendStartStop(bool start)
virtual void setSourceCenterFrequency(qint64 centerFrequency, int index)
const QTimer & m_masterTimer
QList< QList< QString > > m_streamsSettingsKeys
bool getStartStop() const
QNetworkRequest m_networkRequest
virtual bool handleMessage(const Message &message)
virtual int getSinkSampleRate(int index) const
Sample rate exposed by the sink at index.