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.
atvdemodplugin.cpp
Go to the documentation of this file.
1 // Copyright (C) 2017 F4HKW //
3 // for F4EXB / SDRAngel //
4 // //
5 // This program is free software; you can redistribute it and/or modify //
6 // it under the terms of the GNU General Public License as published by //
7 // the Free Software Foundation as version 3 of the License, or //
8 // (at your option) any later version. //
9 // //
10 // This program is distributed in the hope that it will be useful, //
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
13 // GNU General Public License V3 for more details. //
14 // //
15 // You should have received a copy of the GNU General Public License //
16 // along with this program. If not, see <http://www.gnu.org/licenses/>. //
18 
19 
20 #include <QtPlugin>
21 #include <QAction>
22 #include "plugin/pluginapi.h"
23 
24 #include "atvdemodgui.h"
25 #include "atvdemod.h"
26 #include "atvdemodplugin.h"
27 
29 {
30  QString("ATV Demodulator"),
31  QString("4.3.0"),
32  QString("(c) F4HKW for F4EXB / SDRAngel"),
33  QString("https://github.com/f4exb/sdrangel"),
34  true,
35  QString("https://github.com/f4exb/sdrangel")
36 };
37 
38 ATVDemodPlugin::ATVDemodPlugin(QObject* ptrParent) :
39  QObject(ptrParent),
40  m_ptrPluginAPI(NULL)
41 {
42 
43 }
44 
46 {
47  return m_ptrPluginDescriptor;
48 }
49 
51 {
52  m_ptrPluginAPI = ptrPluginAPI;
53 
54  // register ATV demodulator
56 }
57 
59 {
60  return ATVDemodGUI::create(m_ptrPluginAPI, deviceUISet, rxChannel);
61 }
62 
64 {
65  return new ATVDemod(deviceAPI);
66 }
67 
69 {
70  return new ATVDemod(deviceAPI);
71 }
72 
PluginAPI * m_ptrPluginAPI
static const PluginDescriptor m_ptrPluginDescriptor
static const QString m_channelIdURI
Definition: atvdemod.h:252
virtual ChannelAPI * createRxChannelCS(DeviceAPI *deviceAPI)
void registerRxChannel(const QString &channelIdURI, const QString &channelId, PluginInterface *plugin)
Definition: pluginapi.cpp:4
virtual PluginInstanceGUI * createRxChannelGUI(DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
static ATVDemodGUI * create(PluginAPI *objPluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
Definition: atvdemodgui.cpp:38
virtual BasebandSampleSink * createRxChannelBS(DeviceAPI *deviceAPI)
static const QString m_channelId
Definition: atvdemod.h:253
ATVDemodPlugin(QObject *ptrParent=NULL)
const PluginDescriptor & getPluginDescriptor() const
void initPlugin(PluginAPI *ptrPluginAPI)