1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-08-14 15:33:34 -04:00

BladeRF input: moved FileRecord out of the GUI

This commit is contained in:
f4exb
2017-09-04 22:45:07 +02:00
parent f6058d2b12
commit 8e9305c262
5 changed files with 51 additions and 19 deletions
@@ -28,6 +28,7 @@
class DeviceSourceAPI;
class BladerfInputThread;
class FileRecord;
class BladerfInput : public DeviceSampleSource {
public:
@@ -51,6 +52,25 @@ public:
{ }
};
class MsgFileRecord : public Message {
MESSAGE_CLASS_DECLARATION
public:
bool getStartStop() const { return m_startStop; }
static MsgFileRecord* create(bool startStop) {
return new MsgFileRecord(startStop);
}
protected:
bool m_startStop;
MsgFileRecord(bool startStop) :
Message(),
m_startStop(startStop)
{ }
};
BladerfInput(DeviceSourceAPI *deviceAPI);
virtual ~BladerfInput();
@@ -78,6 +98,7 @@ private:
QString m_deviceDescription;
DeviceBladeRFParams m_sharedParams;
bool m_running;
FileRecord *m_fileSink; //!< File sink to record device I/Q output
};
#endif // INCLUDE_BLADERFINPUT_H