1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-29 11:18:56 -05:00

Fix cut and paste errors from PTT feature

This commit is contained in:
Jon Beniston 2021-01-15 11:00:03 +00:00
parent 7f6eee6a10
commit 2c32224977
14 changed files with 18 additions and 28 deletions

View File

@ -174,4 +174,4 @@ private slots:
void handleInputMessages();
};
#endif // INCLUDE_FEATURE_SIMPLEPTTWORKER_H_
#endif // INCLUDE_FEATURE_AFCWORKER_H_

View File

@ -31,8 +31,8 @@ int APRSWebAPIAdapter::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setSimplePttSettings(new SWGSDRangel::SWGSimplePTTSettings());
response.getSimplePttSettings()->init();
response.setAprsSettings(new SWGSDRangel::SWGAPRSSettings());
response.getAprsSettings()->init();
APRS::webapiFormatFeatureSettings(response, m_settings);
return 200;

View File

@ -31,8 +31,8 @@ int GS232ControllerWebAPIAdapter::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setSimplePttSettings(new SWGSDRangel::SWGSimplePTTSettings());
response.getSimplePttSettings()->init();
response.setGs232ControllerSettings(new SWGSDRangel::SWGGS232ControllerSettings());
response.getGs232ControllerSettings()->init();
GS232Controller::webapiFormatFeatureSettings(response, m_settings);
return 200;

View File

@ -31,8 +31,8 @@ int MapWebAPIAdapter::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setSimplePttSettings(new SWGSDRangel::SWGSimplePTTSettings());
response.getSimplePttSettings()->init();
response.setMapSettings(new SWGSDRangel::SWGMapSettings());
response.getMapSettings()->init();
Map::webapiFormatFeatureSettings(response, m_settings);
return 200;

View File

@ -24,7 +24,6 @@
#include "SWGFeatureSettings.h"
#include "SWGFeatureReport.h"
#include "SWGFeatureActions.h"
#include "SWGSimplePTTReport.h"
#include "SWGDeviceState.h"
#include "dsp/dspengine.h"
@ -39,8 +38,7 @@ const char* const RigCtlServer::m_featureIdURI = "sdrangel.feature.rigctlserver"
const char* const RigCtlServer::m_featureId = "RigCtlServer";
RigCtlServer::RigCtlServer(WebAPIAdapterInterface *webAPIAdapterInterface) :
Feature(m_featureIdURI, webAPIAdapterInterface),
m_ptt(false)
Feature(m_featureIdURI, webAPIAdapterInterface)
{
qDebug("RigCtlServer::RigCtlServer: webAPIAdapterInterface: %p", webAPIAdapterInterface);
setObjectName(m_featureId);

View File

@ -122,7 +122,6 @@ private:
QThread m_thread;
RigCtlServerWorker *m_worker;
RigCtlServerSettings m_settings;
bool m_ptt;
QNetworkAccessManager *m_networkManager;
QNetworkRequest m_networkRequest;

View File

@ -31,8 +31,8 @@ int RigCtlServerWebAPIAdapter::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setSimplePttSettings(new SWGSDRangel::SWGSimplePTTSettings());
response.getSimplePttSettings()->init();
response.setRigCtlServerSettings(new SWGSDRangel::SWGRigCtlServerSettings());
response.getRigCtlServerSettings()->init();
RigCtlServer::webapiFormatFeatureSettings(response, m_settings);
return 200;

View File

@ -24,7 +24,6 @@
#include "SWGFeatureSettings.h"
#include "SWGFeatureReport.h"
#include "SWGFeatureActions.h"
#include "SWGSimplePTTReport.h"
#include "SWGDeviceState.h"
#include "dsp/dspengine.h"
@ -39,8 +38,7 @@ const char* const StarTracker::m_featureIdURI = "sdrangel.feature.startracker";
const char* const StarTracker::m_featureId = "StarTracker";
StarTracker::StarTracker(WebAPIAdapterInterface *webAPIAdapterInterface) :
Feature(m_featureIdURI, webAPIAdapterInterface),
m_ptt(false)
Feature(m_featureIdURI, webAPIAdapterInterface)
{
qDebug("StarTracker::StarTracker: webAPIAdapterInterface: %p", webAPIAdapterInterface);
setObjectName(m_featureId);

View File

@ -122,7 +122,6 @@ private:
QThread m_thread;
StarTrackerWorker *m_worker;
StarTrackerSettings m_settings;
bool m_ptt;
QNetworkAccessManager *m_networkManager;
QNetworkRequest m_networkRequest;

View File

@ -31,8 +31,8 @@ int StarTrackerWebAPIAdapter::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setSimplePttSettings(new SWGSDRangel::SWGSimplePTTSettings());
response.getSimplePttSettings()->init();
response.setStarTrackerSettings(new SWGSDRangel::SWGStarTrackerSettings());
response.getStarTrackerSettings()->init();
StarTracker::webapiFormatFeatureSettings(response, m_settings);
return 200;

View File

@ -90,8 +90,6 @@ private:
void applySettings(const StarTrackerSettings& settings, bool force = false);
void restartServer(bool enabled, uint32_t port);
MessageQueue *getMessageQueueToGUI() { return m_msgQueueToGUI; }
void setAzimuth(int azimuth);
void setAzimuthElevation(int azimuth, int elevation);
void updateRaDec(RADec rd, QDateTime dt);
void writeStellariumTarget(double ra, double dec);
void removeFromMap(QString id);

View File

@ -23,7 +23,6 @@
#include "SWGFeatureSettings.h"
#include "SWGFeatureReport.h"
#include "SWGFeatureActions.h"
#include "SWGSimplePTTReport.h"
#include "SWGDeviceState.h"
#include "SWGChannelReport.h"
@ -415,8 +414,8 @@ int VORLocalizer::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setSimplePttSettings(new SWGSDRangel::SWGSimplePTTSettings());
response.getSimplePttSettings()->init();
response.setVorLocalizerSettings(new SWGSDRangel::SWGVORLocalizerSettings());
response.getVorLocalizerSettings()->init();
webapiFormatFeatureSettings(response, m_settings);
return 200;
}

View File

@ -51,7 +51,6 @@ void VORLocalizerPlugin::initPlugin(PluginAPI* pluginAPI)
{
m_pluginAPI = pluginAPI;
// register Simple PTT feature
m_pluginAPI->registerFeature(VORLocalizer::m_featureIdURI, VORLocalizer::m_featureId, this);
}

View File

@ -15,8 +15,8 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
///////////////////////////////////////////////////////////////////////////////////
#ifndef INCLUDE_FEATURE_SIMPLEPTTPLUGIN_H
#define INCLUDE_FEATURE_SIMPLEPTTPLUGIN_H
#ifndef INCLUDE_FEATURE_VORLOCALIZERPLUGIN_H
#define INCLUDE_FEATURE_VORLOCALIZERPLUGIN_H
#include <QObject>
#include "plugin/plugininterface.h"
@ -45,4 +45,4 @@ private:
PluginAPI* m_pluginAPI;
};
#endif // INCLUDE_FEATURE_SIMPLEPTTPLUGIN_H
#endif // INCLUDE_FEATURE_VORLOCALIZERPLUGIN_H