You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
697 B
31 lines
697 B
#ifndef INCLUDE_PLUGINGUI_H |
|
#define INCLUDE_PLUGINGUI_H |
|
|
|
#include <QWidget> |
|
#include "util/export.h" |
|
|
|
class Message; |
|
|
|
class SDRANGEL_API PluginGUI { |
|
public: |
|
PluginGUI() { }; |
|
virtual ~PluginGUI() { }; |
|
|
|
virtual void destroy() = 0; |
|
|
|
virtual void setName(const QString& name) = 0; |
|
virtual QString getName() const = 0; |
|
|
|
virtual void resetToDefaults() = 0; |
|
|
|
virtual QByteArray serializeGeneral() const; |
|
virtual bool deserializeGeneral(const QByteArray& data); |
|
virtual qint64 getCenterFrequency() const; |
|
|
|
virtual QByteArray serialize() const = 0; |
|
virtual bool deserialize(const QByteArray& data) = 0; |
|
|
|
virtual bool handleMessage(const Message& message) = 0; |
|
}; |
|
|
|
#endif // INCLUDE_PLUGINGUI_H
|
|
|