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.
Public Member Functions | Public Attributes | List of all members
SWGSDRangel::SWGHttpRequestInput Class Reference

#include <SWGHttpRequest.h>

Public Member Functions

 SWGHttpRequestInput ()
 
 SWGHttpRequestInput (QString v_url_str, QString v_http_method)
 
void initialize ()
 
void add_var (QString key, QString value)
 
void add_file (QString variable_name, QString local_filename, QString request_filename, QString mime_type)
 

Public Attributes

QString url_str
 
QString http_method
 
SWGHttpRequestVarLayout var_layout
 
QMap< QString, QString > vars
 
QMap< QString, QString > headers
 
QList< SWGHttpRequestInputFileElementfiles
 
QByteArray request_body
 

Detailed Description

Definition at line 45 of file SWGHttpRequest.h.

Constructor & Destructor Documentation

◆ SWGHttpRequestInput() [1/2]

SWGSDRangel::SWGHttpRequestInput::SWGHttpRequestInput ( )

Definition at line 23 of file SWGHttpRequest.cpp.

References initialize().

23  {
24  initialize();
25 }
+ Here is the call graph for this function:

◆ SWGHttpRequestInput() [2/2]

SWGSDRangel::SWGHttpRequestInput::SWGHttpRequestInput ( QString  v_url_str,
QString  v_http_method 
)

Definition at line 27 of file SWGHttpRequest.cpp.

References http_method, initialize(), and url_str.

27  {
28  initialize();
29  url_str = v_url_str;
30  http_method = v_http_method;
31 }
+ Here is the call graph for this function:

Member Function Documentation

◆ add_file()

void SWGSDRangel::SWGHttpRequestInput::add_file ( QString  variable_name,
QString  local_filename,
QString  request_filename,
QString  mime_type 
)

Definition at line 43 of file SWGHttpRequest.cpp.

References files, SWGSDRangel::SWGHttpRequestInputFileElement::local_filename, SWGSDRangel::SWGHttpRequestInputFileElement::mime_type, SWGSDRangel::SWGHttpRequestInputFileElement::request_filename, and SWGSDRangel::SWGHttpRequestInputFileElement::variable_name.

43  {
44  SWGHttpRequestInputFileElement file;
45  file.variable_name = variable_name;
46  file.local_filename = local_filename;
47  file.request_filename = request_filename;
48  file.mime_type = mime_type;
49  files.append(file);
50 }
QList< SWGHttpRequestInputFileElement > files

◆ add_var()

void SWGSDRangel::SWGHttpRequestInput::add_var ( QString  key,
QString  value 
)

Definition at line 39 of file SWGHttpRequest.cpp.

References vars.

39  {
40  vars[key] = value;
41 }
QMap< QString, QString > vars

◆ initialize()

void SWGSDRangel::SWGHttpRequestInput::initialize ( )

Definition at line 33 of file SWGHttpRequest.cpp.

References http_method, SWGSDRangel::NOT_SET, url_str, and var_layout.

Referenced by SWGHttpRequestInput().

+ Here is the caller graph for this function:

Member Data Documentation

◆ files

QList<SWGHttpRequestInputFileElement> SWGSDRangel::SWGHttpRequestInput::files

Definition at line 53 of file SWGHttpRequest.h.

Referenced by add_file(), and SWGSDRangel::SWGHttpRequestWorker::execute().

◆ headers

QMap<QString, QString> SWGSDRangel::SWGHttpRequestInput::headers

Definition at line 52 of file SWGHttpRequest.h.

Referenced by SWGSDRangel::SWGDeviceSetApi::devicesetChannelDelete(), SWGSDRangel::SWGDeviceSetApi::devicesetChannelPost(), SWGSDRangel::SWGDeviceSetApi::devicesetChannelReportGet(), SWGSDRangel::SWGDeviceSetApi::devicesetChannelSettingsGet(), SWGSDRangel::SWGDeviceSetApi::devicesetChannelSettingsPatch(), SWGSDRangel::SWGDeviceSetApi::devicesetChannelSettingsPut(), SWGSDRangel::SWGDeviceSetApi::devicesetChannelsReportGet(), SWGSDRangel::SWGDeviceSetApi::devicesetDevicePut(), SWGSDRangel::SWGDeviceSetApi::devicesetDeviceReportGet(), SWGSDRangel::SWGDeviceSetApi::devicesetDeviceRunDelete(), SWGSDRangel::SWGDeviceSetApi::devicesetDeviceRunGet(), SWGSDRangel::SWGDeviceSetApi::devicesetDeviceRunPost(), SWGSDRangel::SWGDeviceSetApi::devicesetDeviceSettingsGet(), SWGSDRangel::SWGDeviceSetApi::devicesetDeviceSettingsPatch(), SWGSDRangel::SWGDeviceSetApi::devicesetDeviceSettingsPut(), SWGSDRangel::SWGDeviceSetApi::devicesetFocusPatch(), SWGSDRangel::SWGDeviceSetApi::devicesetGet(), SWGSDRangel::SWGHttpRequestWorker::execute(), SWGSDRangel::SWGInstanceApi::instanceAMBEDevicesDelete(), SWGSDRangel::SWGInstanceApi::instanceAMBEDevicesGet(), SWGSDRangel::SWGInstanceApi::instanceAMBEDevicesPatch(), SWGSDRangel::SWGInstanceApi::instanceAMBEDevicesPut(), SWGSDRangel::SWGInstanceApi::instanceAMBESerialGet(), SWGSDRangel::SWGInstanceApi::instanceAudioGet(), SWGSDRangel::SWGInstanceApi::instanceAudioInputCleanupPatch(), SWGSDRangel::SWGInstanceApi::instanceAudioInputDelete(), SWGSDRangel::SWGInstanceApi::instanceAudioInputPatch(), SWGSDRangel::SWGInstanceApi::instanceAudioOutputCleanupPatch(), SWGSDRangel::SWGInstanceApi::instanceAudioOutputDelete(), SWGSDRangel::SWGInstanceApi::instanceAudioOutputPatch(), SWGSDRangel::SWGInstanceApi::instanceChannels(), SWGSDRangel::SWGInstanceApi::instanceConfig(), SWGSDRangel::SWGInstanceApi::instanceDelete(), SWGSDRangel::SWGInstanceApi::instanceDevices(), SWGSDRangel::SWGDeviceSetApi::instanceDeviceSetDelete(), SWGSDRangel::SWGDeviceSetApi::instanceDeviceSetPost(), SWGSDRangel::SWGInstanceApi::instanceDeviceSetsGet(), SWGSDRangel::SWGInstanceApi::instanceLocationGet(), SWGSDRangel::SWGInstanceApi::instanceLocationPut(), SWGSDRangel::SWGInstanceApi::instanceLoggingGet(), SWGSDRangel::SWGInstanceApi::instanceLoggingPut(), SWGSDRangel::SWGInstanceApi::instancePresetDelete(), SWGSDRangel::SWGInstanceApi::instancePresetFilePost(), SWGSDRangel::SWGInstanceApi::instancePresetFilePut(), SWGSDRangel::SWGInstanceApi::instancePresetGet(), SWGSDRangel::SWGInstanceApi::instancePresetPatch(), SWGSDRangel::SWGInstanceApi::instancePresetPost(), SWGSDRangel::SWGInstanceApi::instancePresetPut(), and SWGSDRangel::SWGInstanceApi::instanceSummary().

◆ http_method

QString SWGSDRangel::SWGHttpRequestInput::http_method

◆ request_body

QByteArray SWGSDRangel::SWGHttpRequestInput::request_body

◆ url_str

QString SWGSDRangel::SWGHttpRequestInput::url_str

◆ var_layout

SWGHttpRequestVarLayout SWGSDRangel::SWGHttpRequestInput::var_layout

Definition at line 50 of file SWGHttpRequest.h.

Referenced by SWGSDRangel::SWGHttpRequestWorker::execute(), and initialize().

◆ vars

QMap<QString, QString> SWGSDRangel::SWGHttpRequestInput::vars

Definition at line 51 of file SWGHttpRequest.h.

Referenced by add_var(), and SWGSDRangel::SWGHttpRequestWorker::execute().


The documentation for this class was generated from the following files: