mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 18:15:45 -05:00
Deep redesign: removed inheritance depedency between bladeRF serializer and sample source serializer
This commit is contained in:
parent
77fed9a1c7
commit
beadd4d861
@ -39,6 +39,7 @@ public:
|
||||
static const QByteArray& writeSerializedData(const Data& data);
|
||||
static bool readSerializedData(const QByteArray& serializedData, Data& data);
|
||||
static void setDefaults(Data& data);
|
||||
static uint getSerializerVersion() { return m_version; }
|
||||
|
||||
protected:
|
||||
static const uint m_version;
|
||||
|
@ -45,7 +45,7 @@ bool BladeRFSerializer::readSerializedData(const QByteArray& serializedData, Bla
|
||||
return false;
|
||||
}
|
||||
|
||||
if (d.getVersion() == m_version)
|
||||
if (d.getVersion() == SampleSourceSerializer::getSerializerVersion())
|
||||
{
|
||||
int intval;
|
||||
|
||||
|
@ -19,12 +19,12 @@
|
||||
|
||||
#include "util/samplesourceserializer.h"
|
||||
|
||||
class BladeRFSerializer : public SampleSourceSerializer
|
||||
class BladeRFSerializer
|
||||
{
|
||||
public:
|
||||
struct BladeRFData
|
||||
{
|
||||
Data m_data;
|
||||
SampleSourceSerializer::Data m_data;
|
||||
bool m_xb200;
|
||||
quint32 m_xb200Path;
|
||||
quint32 m_xb200Filter;
|
||||
|
Loading…
Reference in New Issue
Block a user