2014-05-18 11:52:39 -04:00
|
|
|
#ifndef INCLUDE_PLUGINGUI_H
|
|
|
|
#define INCLUDE_PLUGINGUI_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include "util/export.h"
|
|
|
|
|
|
|
|
class Message;
|
|
|
|
|
2015-08-29 19:26:51 -04:00
|
|
|
class SDRANGEL_API PluginGUI {
|
2014-05-18 11:52:39 -04:00
|
|
|
public:
|
|
|
|
PluginGUI() { };
|
2015-08-17 02:29:34 -04:00
|
|
|
virtual ~PluginGUI() { };
|
|
|
|
|
2014-05-18 11:52:39 -04:00
|
|
|
virtual void destroy() = 0;
|
|
|
|
|
|
|
|
virtual void setName(const QString& name) = 0;
|
2015-06-06 21:30:28 -04:00
|
|
|
virtual QString getName() const = 0;
|
2014-05-18 11:52:39 -04:00
|
|
|
|
|
|
|
virtual void resetToDefaults() = 0;
|
|
|
|
|
|
|
|
virtual QByteArray serializeGeneral() const;
|
|
|
|
virtual bool deserializeGeneral(const QByteArray& data);
|
2015-07-18 20:07:40 -04:00
|
|
|
virtual qint64 getCenterFrequency() const;
|
2014-05-18 11:52:39 -04:00
|
|
|
|
|
|
|
virtual QByteArray serialize() const = 0;
|
|
|
|
virtual bool deserialize(const QByteArray& data) = 0;
|
|
|
|
|
2015-08-17 02:29:34 -04:00
|
|
|
virtual bool handleMessage(const Message& message) = 0;
|
2014-05-18 11:52:39 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // INCLUDE_PLUGINGUI_H
|