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.
wfmmodplugin.cpp
Go to the documentation of this file.
1 // Copyright (C) 2016 Edouard Griffiths, F4EXB //
3 // //
4 // This program is free software; you can redistribute it and/or modify //
5 // it under the terms of the GNU General Public License as published by //
6 // the Free Software Foundation as version 3 of the License, or //
7 // (at your option) any later version. //
8 // //
9 // This program is distributed in the hope that it will be useful, //
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
12 // GNU General Public License V3 for more details. //
13 // //
14 // You should have received a copy of the GNU General Public License //
15 // along with this program. If not, see <http://www.gnu.org/licenses/>. //
17 
18 #include <QtPlugin>
19 #include "plugin/pluginapi.h"
20 
21 #ifndef SERVER_MODE
22 #include "wfmmodgui.h"
23 #endif
24 #include "wfmmod.h"
25 #include "wfmmodplugin.h"
26 
28  QString("WFM Modulator"),
29  QString("4.11.5"),
30  QString("(c) Edouard Griffiths, F4EXB"),
31  QString("https://github.com/f4exb/sdrangel"),
32  true,
33  QString("https://github.com/f4exb/sdrangel")
34 };
35 
36 WFMModPlugin::WFMModPlugin(QObject* parent) :
37  QObject(parent),
38  m_pluginAPI(0)
39 {
40 }
41 
43 {
44  return m_pluginDescriptor;
45 }
46 
48 {
49  m_pluginAPI = pluginAPI;
50 
51  // register AM modulator
53 }
54 
55 #ifdef SERVER_MODE
57  DeviceUISet *deviceUISet,
58  BasebandSampleSource *txChannel)
59 {
60  return 0;
61 }
62 #else
64 {
65  return WFMModGUI::create(m_pluginAPI, deviceUISet, txChannel);
66 }
67 #endif
68 
70 {
71  return new WFMMod(deviceAPI);
72 }
73 
75 {
76  return new WFMMod(deviceAPI);
77 }
78 
79 
void registerTxChannel(const QString &channelIdURI, const QString &channelId, PluginInterface *plugin)
Definition: pluginapi.cpp:19
static WFMModGUI * create(PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSource *channelTx)
Definition: wfmmodgui.cpp:39
void initPlugin(PluginAPI *pluginAPI)
PluginAPI * m_pluginAPI
Definition: wfmmodplugin.h:44
Definition: wfmmod.h:48
static const QString m_channelIdURI
Definition: wfmmod.h:250
static const QString m_channelId
Definition: wfmmod.h:251
static const PluginDescriptor m_pluginDescriptor
Definition: wfmmodplugin.h:42
WFMModPlugin(QObject *parent=NULL)
virtual PluginInstanceGUI * createTxChannelGUI(DeviceUISet *deviceUISet, BasebandSampleSource *txChannel)
const PluginDescriptor & getPluginDescriptor() const
virtual BasebandSampleSource * createTxChannelBS(DeviceAPI *deviceAPI)
virtual ChannelAPI * createTxChannelCS(DeviceAPI *deviceAPI)