2017-09-03 17:55:00 +00:00
|
|
|
#ifndef INCLUDE_PLUGININSTANCEUI_H
|
|
|
|
#define INCLUDE_PLUGININSTANCEUI_H
|
|
|
|
|
|
|
|
#include <QtGlobal>
|
|
|
|
#include <QString>
|
|
|
|
#include <QByteArray>
|
2014-05-18 15:52:39 +00:00
|
|
|
|
2018-03-20 12:49:21 +00:00
|
|
|
#include "export.h"
|
2014-05-18 15:52:39 +00:00
|
|
|
|
|
|
|
class Message;
|
2017-09-16 20:23:31 +00:00
|
|
|
class MessageQueue;
|
2014-05-18 15:52:39 +00:00
|
|
|
|
2018-03-03 19:23:38 +00:00
|
|
|
class SDRBASE_API PluginInstanceGUI {
|
2014-05-18 15:52:39 +00:00
|
|
|
public:
|
2017-09-25 22:22:08 +00:00
|
|
|
PluginInstanceGUI() { };
|
|
|
|
virtual ~PluginInstanceGUI() { };
|
2015-08-17 06:29:34 +00:00
|
|
|
|
2014-05-18 15:52:39 +00:00
|
|
|
virtual void destroy() = 0;
|
|
|
|
|
|
|
|
virtual void setName(const QString& name) = 0;
|
2015-06-07 01:30:28 +00:00
|
|
|
virtual QString getName() const = 0;
|
2014-05-18 15:52:39 +00:00
|
|
|
|
|
|
|
virtual void resetToDefaults() = 0;
|
|
|
|
|
2015-09-29 01:35:14 +00:00
|
|
|
virtual qint64 getCenterFrequency() const = 0;
|
|
|
|
virtual void setCenterFrequency(qint64 centerFrequency) = 0;
|
2014-05-18 15:52:39 +00:00
|
|
|
|
|
|
|
virtual QByteArray serialize() const = 0;
|
|
|
|
virtual bool deserialize(const QByteArray& data) = 0;
|
|
|
|
|
2017-09-16 20:23:31 +00:00
|
|
|
virtual MessageQueue* getInputMessageQueue() = 0;
|
|
|
|
|
2015-08-17 06:29:34 +00:00
|
|
|
virtual bool handleMessage(const Message& message) = 0;
|
2014-05-18 15:52:39 +00:00
|
|
|
};
|
|
|
|
|
2017-09-03 17:55:00 +00:00
|
|
|
#endif // INCLUDE_PLUGININSTANCEUI_H
|