1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 14:04:46 -04:00

FCDPro+ input: moved FileRecord out of the GUI

This commit is contained in:
f4exb
2017-09-04 23:41:58 +02:00
parent 622ac93250
commit fc303cc218
4 changed files with 49 additions and 18 deletions
@@ -31,6 +31,7 @@ struct fcd_buffer {
class DeviceSourceAPI;
class FCDProPlusThread;
class FileRecord;
class FCDProPlusInput : public DeviceSampleSource {
public:
@@ -54,6 +55,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)
{ }
};
FCDProPlusInput(DeviceSourceAPI *deviceAPI);
virtual ~FCDProPlusInput();
@@ -87,6 +107,7 @@ private:
FCDProPlusThread* m_FCDThread;
QString m_deviceDescription;
bool m_running;
FileRecord *m_fileSink; //!< File sink to record device I/Q output
};
#endif // INCLUDE_FCD_H