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.
|
#include <webapiserver.h>
Public Member Functions | |
WebAPIServer (const QString &host, uint16_t port, WebAPIRequestMapper *requestMapper) | |
~WebAPIServer () | |
void | start () |
void | stop () |
void | setHostAndPort (const QString &host, uint16_t port) |
const QString & | getHost () const |
int | getPort () const |
Private Attributes | |
WebAPIRequestMapper * | m_requestMapper |
qtwebapp::HttpListener * | m_listener |
qtwebapp::HttpListenerSettings | m_settings |
Definition at line 33 of file webapiserver.h.
WebAPIServer::WebAPIServer | ( | const QString & | host, |
uint16_t | port, | ||
WebAPIRequestMapper * | requestMapper | ||
) |
Definition at line 26 of file webapiserver.cpp.
References qtwebapp::HttpListenerSettings::host, m_settings, and qtwebapp::HttpListenerSettings::port.
WebAPIServer::~WebAPIServer | ( | ) |
|
inline |
Definition at line 43 of file webapiserver.h.
Referenced by MainWindow::commandKeyPressed(), and MainWindow::on_commandRun_clicked().
|
inline |
Definition at line 44 of file webapiserver.h.
Referenced by MainWindow::commandKeyPressed(), and MainWindow::on_commandRun_clicked().
void WebAPIServer::setHostAndPort | ( | const QString & | host, |
uint16_t | port | ||
) |
Definition at line 58 of file webapiserver.cpp.
References qtwebapp::HttpListenerSettings::host, m_listener, m_requestMapper, m_settings, qtwebapp::HttpListenerSettings::port, and stop().
void WebAPIServer::start | ( | ) |
Definition at line 39 of file webapiserver.cpp.
References qtwebapp::HttpListenerSettings::host, m_listener, m_requestMapper, m_settings, and qtwebapp::HttpListenerSettings::port.
Referenced by MainCore::MainCore(), and MainWindow::MainWindow().
void WebAPIServer::stop | ( | ) |
Definition at line 48 of file webapiserver.cpp.
References qtwebapp::HttpListenerSettings::host, m_listener, m_settings, and qtwebapp::HttpListenerSettings::port.
Referenced by setHostAndPort(), MainCore::~MainCore(), and MainWindow::~MainWindow().
|
private |
Definition at line 48 of file webapiserver.h.
Referenced by setHostAndPort(), start(), stop(), and ~WebAPIServer().
|
private |
Definition at line 47 of file webapiserver.h.
Referenced by setHostAndPort(), and start().
|
private |
Definition at line 49 of file webapiserver.h.
Referenced by setHostAndPort(), start(), stop(), and WebAPIServer().