2017-09-03 13:55:00 -04:00
|
|
|
#ifndef INCLUDE_PLUGININSTANCEUI_H
|
|
|
|
#define INCLUDE_PLUGININSTANCEUI_H
|
|
|
|
|
|
|
|
#include <QtGlobal>
|
|
|
|
#include <QString>
|
|
|
|
#include <QByteArray>
|
2014-05-18 11:52:39 -04:00
|
|
|
|
|
|
|
#include "util/export.h"
|
|
|
|
|
|
|
|
class Message;
|
2017-09-16 16:23:31 -04:00
|
|
|
class MessageQueue;
|
2014-05-18 11:52:39 -04:00
|
|
|
|
2017-09-25 18:22:08 -04:00
|
|
|
class SDRANGEL_API PluginInstanceGUI {
|
2014-05-18 11:52:39 -04:00
|
|
|
public:
|
2017-09-25 18:22:08 -04:00
|
|
|
PluginInstanceGUI() { };
|
|
|
|
virtual ~PluginInstanceGUI() { };
|
2015-08-17 02:29:34 -04:00
|
|
|
|
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;
|
|
|
|
|
2015-09-28 21:35:14 -04:00
|
|
|
virtual qint64 getCenterFrequency() const = 0;
|
|
|
|
virtual void setCenterFrequency(qint64 centerFrequency) = 0;
|
2014-05-18 11:52:39 -04:00
|
|
|
|
|
|
|
virtual QByteArray serialize() const = 0;
|
|
|
|
virtual bool deserialize(const QByteArray& data) = 0;
|
|
|
|
|
2017-09-16 16:23:31 -04:00
|
|
|
virtual MessageQueue* getInputMessageQueue() = 0;
|
|
|
|
|
2015-08-17 02:29:34 -04:00
|
|
|
virtual bool handleMessage(const Message& message) = 0;
|
2014-05-18 11:52:39 -04:00
|
|
|
};
|
|
|
|
|
2017-09-03 13:55:00 -04:00
|
|
|
#endif // INCLUDE_PLUGININSTANCEUI_H
|