1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-07-31 05:02:24 -04:00

Web API: use MSVC export prefix in swagger library

This commit is contained in:
f4exb 2018-03-20 20:14:04 +01:00
parent 72e29fd3f8
commit e6eecf3e28
45 changed files with 97 additions and 43 deletions

View File

@ -102,4 +102,16 @@
# define QRTPLIB_API # define QRTPLIB_API
#endif #endif
/* the 'SWG_API' controls the import/export of 'swagger' symbols
*/
#if !defined(sdrangel_STATIC)
# ifdef swagger_EXPORTS
# define SWG_API __SDR_EXPORT
# else
# define SWG_API __SDR_IMPORT
# endif
#else
# define SWG_API
#endif
#endif /* __SDRANGEL_EXPORT_H */ #endif /* __SDRANGEL_EXPORT_H */

View File

@ -17955,7 +17955,7 @@ except ApiException as e:
</div> </div>
<div id="generator"> <div id="generator">
<div class="content"> <div class="content">
Generated 2018-03-19T00:19:38.769+01:00 Generated 2018-03-20T20:09:28.335+01:00
</div> </div>
</div> </div>
</div> </div>

View File

@ -21,6 +21,7 @@ add_library(swagger SHARED
include_directories( include_directories(
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
. .
${CMAKE_SOURCE_DIR}/exports
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client ${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
) )

View File

@ -17955,7 +17955,7 @@ except ApiException as e:
</div> </div>
<div id="generator"> <div id="generator">
<div class="content"> <div class="content">
Generated 2018-03-19T00:19:38.769+01:00 Generated 2018-03-20T20:09:28.335+01:00
</div> </div>
</div> </div>
</div> </div>

View File

@ -25,10 +25,11 @@
#include <QString> #include <QString>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGAudioDevice: public SWGObject { class SWG_API SWGAudioDevice: public SWGObject {
public: public:
SWGAudioDevice(); SWGAudioDevice();
SWGAudioDevice(QString* json); SWGAudioDevice(QString* json);

View File

@ -26,10 +26,11 @@
#include <QList> #include <QList>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGAudioDevices: public SWGObject { class SWG_API SWGAudioDevices: public SWGObject {
public: public:
SWGAudioDevices(); SWGAudioDevices();
SWGAudioDevices(QString* json); SWGAudioDevices(QString* json);

View File

@ -24,10 +24,11 @@
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGAudioDevicesSelect: public SWGObject { class SWG_API SWGAudioDevicesSelect: public SWGObject {
public: public:
SWGAudioDevicesSelect(); SWGAudioDevicesSelect();
SWGAudioDevicesSelect(QString* json); SWGAudioDevicesSelect(QString* json);

View File

@ -25,10 +25,11 @@
#include <QString> #include <QString>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGCWKeyerSettings: public SWGObject { class SWG_API SWGCWKeyerSettings: public SWGObject {
public: public:
SWGCWKeyerSettings(); SWGCWKeyerSettings();
SWGCWKeyerSettings(QString* json); SWGCWKeyerSettings(QString* json);

View File

@ -26,10 +26,11 @@
#include <QString> #include <QString>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGChannel: public SWGObject { class SWG_API SWGChannel: public SWGObject {
public: public:
SWGChannel(); SWGChannel();
SWGChannel(QString* json); SWGChannel(QString* json);

View File

@ -25,10 +25,11 @@
#include <QString> #include <QString>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGChannelListItem: public SWGObject { class SWG_API SWGChannelListItem: public SWGObject {
public: public:
SWGChannelListItem(); SWGChannelListItem();
SWGChannelListItem(QString* json); SWGChannelListItem(QString* json);

View File

@ -27,10 +27,11 @@
#include <QString> #include <QString>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGChannelReport: public SWGObject { class SWG_API SWGChannelReport: public SWGObject {
public: public:
SWGChannelReport(); SWGChannelReport();
SWGChannelReport(QString* json); SWGChannelReport(QString* json);

View File

@ -27,10 +27,11 @@
#include <QString> #include <QString>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGChannelSettings: public SWGObject { class SWG_API SWGChannelSettings: public SWGObject {
public: public:
SWGChannelSettings(); SWGChannelSettings();
SWGChannelSettings(QString* json); SWGChannelSettings(QString* json);

View File

@ -26,10 +26,11 @@
#include <QList> #include <QList>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGChannelsDetail: public SWGObject { class SWG_API SWGChannelsDetail: public SWGObject {
public: public:
SWGChannelsDetail(); SWGChannelsDetail();
SWGChannelsDetail(QString* json); SWGChannelsDetail(QString* json);

View File

@ -26,10 +26,11 @@
#include <QList> #include <QList>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGDVSeralDevices: public SWGObject { class SWG_API SWGDVSeralDevices: public SWGObject {
public: public:
SWGDVSeralDevices(); SWGDVSeralDevices();
SWGDVSeralDevices(QString* json); SWGDVSeralDevices(QString* json);

View File

@ -25,10 +25,11 @@
#include <QString> #include <QString>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGDVSerialDevice: public SWGObject { class SWG_API SWGDVSerialDevice: public SWGObject {
public: public:
SWGDVSerialDevice(); SWGDVSerialDevice();
SWGDVSerialDevice(QString* json); SWGDVSerialDevice(QString* json);

View File

@ -25,10 +25,11 @@
#include <QString> #include <QString>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGDeviceListItem: public SWGObject { class SWG_API SWGDeviceListItem: public SWGObject {
public: public:
SWGDeviceListItem(); SWGDeviceListItem();
SWGDeviceListItem(QString* json); SWGDeviceListItem(QString* json);

View File

@ -27,10 +27,11 @@
#include <QList> #include <QList>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGDeviceSet: public SWGObject { class SWG_API SWGDeviceSet: public SWGObject {
public: public:
SWGDeviceSet(); SWGDeviceSet();
SWGDeviceSet(QString* json); SWGDeviceSet(QString* json);

View File

@ -26,10 +26,11 @@
#include <QList> #include <QList>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGDeviceSetList: public SWGObject { class SWG_API SWGDeviceSetList: public SWGObject {
public: public:
SWGDeviceSetList(); SWGDeviceSetList();
SWGDeviceSetList(QString* json); SWGDeviceSetList(QString* json);

View File

@ -31,10 +31,11 @@
#include <QString> #include <QString>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGDeviceSettings: public SWGObject { class SWG_API SWGDeviceSettings: public SWGObject {
public: public:
SWGDeviceSettings(); SWGDeviceSettings();
SWGDeviceSettings(QString* json); SWGDeviceSettings(QString* json);

View File

@ -25,10 +25,11 @@
#include <QString> #include <QString>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGDeviceState: public SWGObject { class SWG_API SWGDeviceState: public SWGObject {
public: public:
SWGDeviceState(); SWGDeviceState();
SWGDeviceState(QString* json); SWGDeviceState(QString* json);

View File

@ -25,10 +25,11 @@
#include <QString> #include <QString>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGErrorResponse: public SWGObject { class SWG_API SWGErrorResponse: public SWGObject {
public: public:
SWGErrorResponse(); SWGErrorResponse();
SWGErrorResponse(QString* json); SWGErrorResponse(QString* json);

View File

@ -25,10 +25,11 @@
#include <QString> #include <QString>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGFileSourceSettings: public SWGObject { class SWG_API SWGFileSourceSettings: public SWGObject {
public: public:
SWGFileSourceSettings(); SWGFileSourceSettings();
SWGFileSourceSettings(QString* json); SWGFileSourceSettings(QString* json);

View File

@ -24,10 +24,11 @@
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGHackRFInputSettings: public SWGObject { class SWG_API SWGHackRFInputSettings: public SWGObject {
public: public:
SWGHackRFInputSettings(); SWGHackRFInputSettings();
SWGHackRFInputSettings(QString* json); SWGHackRFInputSettings(QString* json);

View File

@ -24,10 +24,11 @@
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGHackRFOutputSettings: public SWGObject { class SWG_API SWGHackRFOutputSettings: public SWGObject {
public: public:
SWGHackRFOutputSettings(); SWGHackRFOutputSettings();
SWGHackRFOutputSettings(QString* json); SWGHackRFOutputSettings(QString* json);

View File

@ -26,10 +26,11 @@
#include <QList> #include <QList>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGInstanceChannelsResponse: public SWGObject { class SWG_API SWGInstanceChannelsResponse: public SWGObject {
public: public:
SWGInstanceChannelsResponse(); SWGInstanceChannelsResponse();
SWGInstanceChannelsResponse(QString* json); SWGInstanceChannelsResponse(QString* json);

View File

@ -26,10 +26,11 @@
#include <QList> #include <QList>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGInstanceDevicesResponse: public SWGObject { class SWG_API SWGInstanceDevicesResponse: public SWGObject {
public: public:
SWGInstanceDevicesResponse(); SWGInstanceDevicesResponse();
SWGInstanceDevicesResponse(QString* json); SWGInstanceDevicesResponse(QString* json);

View File

@ -27,10 +27,11 @@
#include <QString> #include <QString>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGInstanceSummaryResponse: public SWGObject { class SWG_API SWGInstanceSummaryResponse: public SWGObject {
public: public:
SWGInstanceSummaryResponse(); SWGInstanceSummaryResponse();
SWGInstanceSummaryResponse(QString* json); SWGInstanceSummaryResponse(QString* json);

View File

@ -24,10 +24,11 @@
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGLimeSdrInputSettings: public SWGObject { class SWG_API SWGLimeSdrInputSettings: public SWGObject {
public: public:
SWGLimeSdrInputSettings(); SWGLimeSdrInputSettings();
SWGLimeSdrInputSettings(QString* json); SWGLimeSdrInputSettings(QString* json);

View File

@ -24,10 +24,11 @@
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGLimeSdrOutputSettings: public SWGObject { class SWG_API SWGLimeSdrOutputSettings: public SWGObject {
public: public:
SWGLimeSdrOutputSettings(); SWGLimeSdrOutputSettings();
SWGLimeSdrOutputSettings(QString* json); SWGLimeSdrOutputSettings(QString* json);

View File

@ -24,10 +24,11 @@
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGLocationInformation: public SWGObject { class SWG_API SWGLocationInformation: public SWGObject {
public: public:
SWGLocationInformation(); SWGLocationInformation();
SWGLocationInformation(QString* json); SWGLocationInformation(QString* json);

View File

@ -25,10 +25,11 @@
#include <QString> #include <QString>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGLoggingInfo: public SWGObject { class SWG_API SWGLoggingInfo: public SWGObject {
public: public:
SWGLoggingInfo(); SWGLoggingInfo();
SWGLoggingInfo(QString* json); SWGLoggingInfo(QString* json);

View File

@ -24,10 +24,11 @@
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGNFMDemodReport: public SWGObject { class SWG_API SWGNFMDemodReport: public SWGObject {
public: public:
SWGNFMDemodReport(); SWGNFMDemodReport();
SWGNFMDemodReport(QString* json); SWGNFMDemodReport(QString* json);

View File

@ -25,10 +25,11 @@
#include <QString> #include <QString>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGNFMDemodSettings: public SWGObject { class SWG_API SWGNFMDemodSettings: public SWGObject {
public: public:
SWGNFMDemodSettings(); SWGNFMDemodSettings();
SWGNFMDemodSettings(QString* json); SWGNFMDemodSettings(QString* json);

View File

@ -24,10 +24,11 @@
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGNFMModReport: public SWGObject { class SWG_API SWGNFMModReport: public SWGObject {
public: public:
SWGNFMModReport(); SWGNFMModReport();
SWGNFMModReport(QString* json); SWGNFMModReport(QString* json);

View File

@ -26,10 +26,11 @@
#include <QString> #include <QString>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGNFMModSettings: public SWGObject { class SWG_API SWGNFMModSettings: public SWGObject {
public: public:
SWGNFMModSettings(); SWGNFMModSettings();
SWGNFMModSettings(QString* json); SWGNFMModSettings(QString* json);

View File

@ -26,10 +26,11 @@
#include <QString> #include <QString>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGPresetExport: public SWGObject { class SWG_API SWGPresetExport: public SWGObject {
public: public:
SWGPresetExport(); SWGPresetExport();
SWGPresetExport(QString* json); SWGPresetExport(QString* json);

View File

@ -27,10 +27,11 @@
#include <QString> #include <QString>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGPresetGroup: public SWGObject { class SWG_API SWGPresetGroup: public SWGObject {
public: public:
SWGPresetGroup(); SWGPresetGroup();
SWGPresetGroup(QString* json); SWGPresetGroup(QString* json);

View File

@ -25,10 +25,11 @@
#include <QString> #include <QString>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGPresetIdentifier: public SWGObject { class SWG_API SWGPresetIdentifier: public SWGObject {
public: public:
SWGPresetIdentifier(); SWGPresetIdentifier();
SWGPresetIdentifier(QString* json); SWGPresetIdentifier(QString* json);

View File

@ -25,10 +25,11 @@
#include <QString> #include <QString>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGPresetImport: public SWGObject { class SWG_API SWGPresetImport: public SWGObject {
public: public:
SWGPresetImport(); SWGPresetImport();
SWGPresetImport(QString* json); SWGPresetImport(QString* json);

View File

@ -25,10 +25,11 @@
#include <QString> #include <QString>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGPresetItem: public SWGObject { class SWG_API SWGPresetItem: public SWGObject {
public: public:
SWGPresetItem(); SWGPresetItem();
SWGPresetItem(QString* json); SWGPresetItem(QString* json);

View File

@ -25,10 +25,11 @@
#include "SWGPresetIdentifier.h" #include "SWGPresetIdentifier.h"
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGPresetTransfer: public SWGObject { class SWG_API SWGPresetTransfer: public SWGObject {
public: public:
SWGPresetTransfer(); SWGPresetTransfer();
SWGPresetTransfer(QString* json); SWGPresetTransfer(QString* json);

View File

@ -26,10 +26,11 @@
#include <QList> #include <QList>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGPresets: public SWGObject { class SWG_API SWGPresets: public SWGObject {
public: public:
SWGPresets(); SWGPresets();
SWGPresets(QString* json); SWGPresets(QString* json);

View File

@ -24,10 +24,11 @@
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGRtlSdrSettings: public SWGObject { class SWG_API SWGRtlSdrSettings: public SWGObject {
public: public:
SWGRtlSdrSettings(); SWGRtlSdrSettings();
SWGRtlSdrSettings(QString* json); SWGRtlSdrSettings(QString* json);

View File

@ -25,10 +25,11 @@
#include <QString> #include <QString>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGSamplingDevice: public SWGObject { class SWG_API SWGSamplingDevice: public SWGObject {
public: public:
SWGSamplingDevice(); SWGSamplingDevice();
SWGSamplingDevice(QString* json); SWGSamplingDevice(QString* json);

View File

@ -25,10 +25,11 @@
#include <QString> #include <QString>
#include "SWGObject.h" #include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel { namespace SWGSDRangel {
class SWGSuccessResponse: public SWGObject { class SWG_API SWGSuccessResponse: public SWGObject {
public: public:
SWGSuccessResponse(); SWGSuccessResponse();
SWGSuccessResponse(QString* json); SWGSuccessResponse(QString* json);