1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 10:05:46 -05:00

GLscopeGUIs: implement Serializable interface

This commit is contained in:
f4exb 2017-10-03 23:28:04 +02:00
parent 601b429a96
commit eccea4a4fc
2 changed files with 8 additions and 6 deletions

View File

@ -6,6 +6,7 @@
#include "util/export.h"
#include "util/message.h"
#include "dsp/scopevis.h"
#include "settings/serializable.h"
namespace Ui {
class GLScopeGUI;
@ -14,7 +15,7 @@ namespace Ui {
class MessageQueue;
class GLScope;
class SDRANGEL_API GLScopeGUI : public QWidget {
class SDRANGEL_API GLScopeGUI : public QWidget, public Serializable {
Q_OBJECT
public:
@ -25,8 +26,8 @@ public:
void setSampleRate(int sampleRate);
void resetToDefaults();
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual QByteArray serialize() const;
virtual bool deserialize(const QByteArray& data);
bool handleMessage(Message* message);

View File

@ -25,6 +25,7 @@
#include "util/export.h"
#include "util/message.h"
#include "dsp/scopevisng.h"
#include "settings/serializable.h"
namespace Ui {
class GLScopeNGGUI;
@ -33,7 +34,7 @@ namespace Ui {
class MessageQueue;
class GLScopeNG;
class SDRANGEL_API GLScopeNGGUI : public QWidget {
class SDRANGEL_API GLScopeNGGUI : public QWidget, public Serializable {
Q_OBJECT
public:
@ -52,8 +53,8 @@ public:
void setSampleRate(int sampleRate);
void resetToDefaults();
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual QByteArray serialize() const;
virtual bool deserialize(const QByteArray& data);
bool handleMessage(Message* message);