SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
datvdemodplugin.cpp
Go to the documentation of this file.
1 // Copyright (C) 2018 F4HKW //
3 // for F4EXB / SDRAngel //
4 // using LeanSDR Framework (C) 2016 F4DAV //
5 // //
6 // This program is free software; you can redistribute it and/or modify //
7 // it under the terms of the GNU General Public License as published by //
8 // the Free Software Foundation as version 3 of the License, or //
9 // (at your option) any later version. //
10 // //
11 // This program is distributed in the hope that it will be useful, //
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
14 // GNU General Public License V3 for more details. //
15 // //
16 // You should have received a copy of the GNU General Public License //
17 // along with this program. If not, see <http://www.gnu.org/licenses/>. //
19 
20 
21 #include <QtPlugin>
22 #include <QAction>
23 #include "plugin/pluginapi.h"
24 
25 #include "datvdemodgui.h"
26 #include "datvdemodplugin.h"
27 
29 {
30  QString("DATV Demodulator"),
31  QString("4.11.4"),
32  QString("(c) F4HKW for SDRAngel using LeanSDR framework (c) F4DAV"),
33  QString("https://github.com/f4exb/sdrangel"),
34  true,
35  QString("https://github.com/f4exb/sdrangel")
36 };
37 
38 DATVDemodPlugin::DATVDemodPlugin(QObject* ptrParent) :
39  QObject(ptrParent),
40  m_ptrPluginAPI(nullptr)
41 {
42 
43 }
44 
46 {
47  return m_ptrPluginDescriptor;
48 
49 }
50 
52 {
53  m_ptrPluginAPI = ptrPluginAPI;
54 
55  // register DATV demodulator
57 }
58 
60 {
61  return DATVDemodGUI::create(m_ptrPluginAPI, deviceUISet, rxChannel);
62 }
63 
65 {
66  return new DATVDemod(deviceAPI);
67 }
68 
70 {
71  return new DATVDemod(deviceAPI);
72 }
PluginAPI * m_ptrPluginAPI
static const PluginDescriptor m_ptrPluginDescriptor
static const QString m_channelIdURI
Definition: datvdemod.h:197
static const QString m_channelId
Definition: datvdemod.h:198
void registerRxChannel(const QString &channelIdURI, const QString &channelId, PluginInterface *plugin)
Definition: pluginapi.cpp:4
DATVDemodPlugin(QObject *ptrParent=nullptr)
void initPlugin(PluginAPI *ptrPluginAPI)
virtual PluginInstanceGUI * createRxChannelGUI(DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
static DATVDemodGUI * create(PluginAPI *objPluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
virtual ChannelAPI * createRxChannelCS(DeviceAPI *deviceAPI)
virtual BasebandSampleSink * createRxChannelBS(DeviceAPI *deviceAPI)
const PluginDescriptor & getPluginDescriptor() const