1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-07-25 03:24:18 -04:00

LimeSDR input: moved FileRecord out of the GUI

This commit is contained in:
f4exb
2017-09-05 00:00:33 +02:00
parent 9da26ad8b3
commit 175fd69014
4 changed files with 49 additions and 20 deletions
@@ -27,6 +27,7 @@
class DeviceSourceAPI;
class LimeSDRInputThread;
struct DeviceLimeSDRParams;
class FileRecord;
class LimeSDRInput : public DeviceSampleSource
{
@@ -208,6 +209,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)
{ }
};
LimeSDRInput(DeviceSourceAPI *deviceAPI);
virtual ~LimeSDRInput();
@@ -235,8 +255,8 @@ private:
bool m_running;
DeviceLimeSDRShared m_deviceShared;
bool m_firstConfig;
lms_stream_t m_streamId;
FileRecord *m_fileSink; //!< File sink to record device I/Q output
bool openDevice();
void closeDevice();