mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-14 12:22:00 -05:00
RxTx semantic move: rename AM demod plugin
This commit is contained in:
parent
239d67b2aa
commit
181b7434fd
@ -3,13 +3,13 @@ project(am)
|
|||||||
set(am_SOURCES
|
set(am_SOURCES
|
||||||
amdemod.cpp
|
amdemod.cpp
|
||||||
amdemodgui.cpp
|
amdemodgui.cpp
|
||||||
amplugin.cpp
|
amdemodplugin.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set(am_HEADERS
|
set(am_HEADERS
|
||||||
amdemod.h
|
amdemod.h
|
||||||
amdemodgui.h
|
amdemodgui.h
|
||||||
amplugin.h
|
amdemodplugin.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set(am_FORMS
|
set(am_FORMS
|
||||||
|
@ -1,31 +1,30 @@
|
|||||||
#include "../../channelrx/demodam/amplugin.h"
|
|
||||||
|
|
||||||
#include <QtPlugin>
|
#include <QtPlugin>
|
||||||
#include <QAction>
|
#include <QAction>
|
||||||
#include "plugin/pluginapi.h"
|
#include "plugin/pluginapi.h"
|
||||||
|
|
||||||
#include "../../channelrx/demodam/amdemodgui.h"
|
#include "../../channelrx/demodam/amdemodgui.h"
|
||||||
|
#include "amdemodplugin.h"
|
||||||
|
|
||||||
const PluginDescriptor AMPlugin::m_pluginDescriptor = {
|
const PluginDescriptor AMDemodPlugin::m_pluginDescriptor = {
|
||||||
QString("AM Demodulator"),
|
QString("AM Demodulator"),
|
||||||
QString("2.0.0"),
|
QString("2.2.0"),
|
||||||
QString("(c) Edouard Griffiths, F4EXB"),
|
QString("(c) Edouard Griffiths, F4EXB"),
|
||||||
QString("https://github.com/f4exb/sdrangel"),
|
QString("https://github.com/f4exb/sdrangel"),
|
||||||
true,
|
true,
|
||||||
QString("https://github.com/f4exb/sdrangel")
|
QString("https://github.com/f4exb/sdrangel")
|
||||||
};
|
};
|
||||||
|
|
||||||
AMPlugin::AMPlugin(QObject* parent) :
|
AMDemodPlugin::AMDemodPlugin(QObject* parent) :
|
||||||
QObject(parent)
|
QObject(parent)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
const PluginDescriptor& AMPlugin::getPluginDescriptor() const
|
const PluginDescriptor& AMDemodPlugin::getPluginDescriptor() const
|
||||||
{
|
{
|
||||||
return m_pluginDescriptor;
|
return m_pluginDescriptor;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AMPlugin::initPlugin(PluginAPI* pluginAPI)
|
void AMDemodPlugin::initPlugin(PluginAPI* pluginAPI)
|
||||||
{
|
{
|
||||||
m_pluginAPI = pluginAPI;
|
m_pluginAPI = pluginAPI;
|
||||||
|
|
||||||
@ -33,7 +32,7 @@ void AMPlugin::initPlugin(PluginAPI* pluginAPI)
|
|||||||
m_pluginAPI->registerRxChannel(AMDemodGUI::m_channelID, this);
|
m_pluginAPI->registerRxChannel(AMDemodGUI::m_channelID, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
PluginGUI* AMPlugin::createRxChannel(const QString& channelName, DeviceSourceAPI *deviceAPI)
|
PluginGUI* AMDemodPlugin::createRxChannel(const QString& channelName, DeviceSourceAPI *deviceAPI)
|
||||||
{
|
{
|
||||||
if(channelName == AMDemodGUI::m_channelID)
|
if(channelName == AMDemodGUI::m_channelID)
|
||||||
{
|
{
|
||||||
@ -44,7 +43,7 @@ PluginGUI* AMPlugin::createRxChannel(const QString& channelName, DeviceSourceAPI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AMPlugin::createInstanceAM(DeviceSourceAPI *deviceAPI)
|
void AMDemodPlugin::createInstanceDemodAM(DeviceSourceAPI *deviceAPI)
|
||||||
{
|
{
|
||||||
AMDemodGUI* gui = AMDemodGUI::create(m_pluginAPI, deviceAPI);
|
AMDemodGUI* gui = AMDemodGUI::create(m_pluginAPI, deviceAPI);
|
||||||
}
|
}
|
47
plugins/channelrx/demodam/amdemodplugin.h
Normal file
47
plugins/channelrx/demodam/amdemodplugin.h
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Copyright (C) 2016 Edouard Griffiths, F4EXB //
|
||||||
|
// //
|
||||||
|
// This program is free software; you can redistribute it and/or modify //
|
||||||
|
// it under the terms of the GNU General Public License as published by //
|
||||||
|
// the Free Software Foundation as version 3 of the License, or //
|
||||||
|
// //
|
||||||
|
// This program is distributed in the hope that it will be useful, //
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
||||||
|
// GNU General Public License V3 for more details. //
|
||||||
|
// //
|
||||||
|
// You should have received a copy of the GNU General Public License //
|
||||||
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef INCLUDE_AMPLUGIN_H
|
||||||
|
#define INCLUDE_AMPLUGIN_H
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
#include "plugin/plugininterface.h"
|
||||||
|
|
||||||
|
class DeviceSourceAPI;
|
||||||
|
|
||||||
|
class AMDemodPlugin : public QObject, PluginInterface {
|
||||||
|
Q_OBJECT
|
||||||
|
Q_INTERFACES(PluginInterface)
|
||||||
|
Q_PLUGIN_METADATA(IID "de.maintech.sdrangelove.channel.am")
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit AMDemodPlugin(QObject* parent = NULL);
|
||||||
|
|
||||||
|
const PluginDescriptor& getPluginDescriptor() const;
|
||||||
|
void initPlugin(PluginAPI* pluginAPI);
|
||||||
|
|
||||||
|
PluginGUI* createRxChannel(const QString& channelName, DeviceSourceAPI *deviceAPI);
|
||||||
|
|
||||||
|
private:
|
||||||
|
static const PluginDescriptor m_pluginDescriptor;
|
||||||
|
|
||||||
|
PluginAPI* m_pluginAPI;
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void createInstanceDemodAM(DeviceSourceAPI *deviceAPI);
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // INCLUDE_AMPLUGIN_H
|
@ -1,31 +0,0 @@
|
|||||||
#ifndef INCLUDE_AMPLUGIN_H
|
|
||||||
#define INCLUDE_AMPLUGIN_H
|
|
||||||
|
|
||||||
#include <QObject>
|
|
||||||
#include "plugin/plugininterface.h"
|
|
||||||
|
|
||||||
class DeviceSourceAPI;
|
|
||||||
|
|
||||||
class AMPlugin : public QObject, PluginInterface {
|
|
||||||
Q_OBJECT
|
|
||||||
Q_INTERFACES(PluginInterface)
|
|
||||||
Q_PLUGIN_METADATA(IID "de.maintech.sdrangelove.channel.am")
|
|
||||||
|
|
||||||
public:
|
|
||||||
explicit AMPlugin(QObject* parent = NULL);
|
|
||||||
|
|
||||||
const PluginDescriptor& getPluginDescriptor() const;
|
|
||||||
void initPlugin(PluginAPI* pluginAPI);
|
|
||||||
|
|
||||||
PluginGUI* createRxChannel(const QString& channelName, DeviceSourceAPI *deviceAPI);
|
|
||||||
|
|
||||||
private:
|
|
||||||
static const PluginDescriptor m_pluginDescriptor;
|
|
||||||
|
|
||||||
PluginAPI* m_pluginAPI;
|
|
||||||
|
|
||||||
private slots:
|
|
||||||
void createInstanceAM(DeviceSourceAPI *deviceAPI);
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // INCLUDE_AMPLUGIN_H
|
|
@ -18,11 +18,11 @@ CONFIG(Debug):build_subdir = debug
|
|||||||
|
|
||||||
SOURCES += amdemod.cpp\
|
SOURCES += amdemod.cpp\
|
||||||
amdemodgui.cpp\
|
amdemodgui.cpp\
|
||||||
amplugin.cpp
|
amdemodplugin.cpp
|
||||||
|
|
||||||
HEADERS += amdemod.h\
|
HEADERS += amdemod.h\
|
||||||
amdemodgui.h\
|
amdemodgui.h\
|
||||||
amplugin.h
|
amdemodplugin.h
|
||||||
|
|
||||||
FORMS += amdemodgui.ui
|
FORMS += amdemodgui.ui
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user