20 #ifndef SDRBASE_CHANNEL_CHANNELAPI_H_ 21 #define SDRBASE_CHANNEL_CHANNELAPI_H_ 33 class SWGChannelSettings;
34 class SWGChannelReport;
48 virtual void destroy() = 0;
50 virtual void getIdentifier(QString&
id) = 0;
51 virtual void getTitle(QString& title) = 0;
52 virtual void setName(
const QString& name) { m_name = name; }
53 virtual const QString&
getName()
const {
return m_name; }
54 virtual qint64 getCenterFrequency()
const = 0;
56 virtual QByteArray serialize()
const = 0;
57 virtual bool deserialize(
const QByteArray& data) = 0;
61 QString& errorMessage)
64 errorMessage =
"Not implemented";
return 501;
69 const QStringList& channelSettingsKeys,
71 QString& errorMessage)
74 (void) channelSettingsKeys;
76 errorMessage =
"Not implemented";
return 501;
81 QString& errorMessage)
84 errorMessage =
"Not implemented";
return 501;
97 virtual int getNbSinkStreams()
const = 0;
98 virtual int getNbSourceStreams()
const = 0;
99 virtual qint64 getStreamCenterFrequency(
int streamIndex,
bool sinkElseSource)
const = 0;
116 #endif // SDRBASE_CHANNEL_CHANNELAPI_H_ virtual int webapiSettingsGet(SWGSDRangel::SWGChannelSettings &response, QString &errorMessage)
virtual const QString & getName() const
int getDeviceSetIndex() const
Exposes a single source stream (output, Tx)
virtual int webapiReportGet(SWGSDRangel::SWGChannelReport &response, QString &errorMessage)
void setIndexInDeviceSet(int indexInDeviceSet)
void setDeviceAPI(DeviceAPI *deviceAPI)
StreamType
< This is the same enum as in PluginInterface
virtual int webapiSettingsPutPatch(bool force, const QStringList &channelSettingsKeys, SWGSDRangel::SWGChannelSettings &response, QString &errorMessage)
virtual void setName(const QString &name)
StreamType getStreamType() const
Exposes a single sink stream (input, Rx)
DeviceAPI * getDeviceAPI()
int getIndexInDeviceSet() const
void setDeviceSetIndex(int deviceSetIndex)
unsigned __int64 uint64_t