nx_server_plugin_sdk 1.0 Server Plugin SDK

Public Member Functions | List of all members
SyncHttpClientDelegate Class Reference

Helper class, used by SyncHttpClient. More...

`#include <sync_http_client_delegate.h>`

Inheritance diagram for SyncHttpClientDelegate:

## Public Member Functions
| SyncHttpClientDelegate (QNetworkAccessManager *networkAccessManager)
void | get (const QNetworkRequest &request)
| Blocks until current request has completed (valid response has been received or error occurred)
QByteArray | readWholeMessageBody ()
| Blocks till all message body read. More...
QNetworkReply::NetworkError | resultCode () const
int | statusCode () const

## Detailed Description

Helper class, used by SyncHttpClient.

This class instance works in QNetworkAccessManager thread. This is needed to allow SyncHttpClient to belong to any thread

## Member Function Documentation

## ◆ readWholeMessageBody()

QByteArray SyncHttpClientDelegate::readWholeMessageBody | ( |  | ) |

Blocks till all message body read.

Note
  Can be called from any thread

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

- samples/device/axis_camera_plugin/src/sync_http_client_delegate.h
- samples/device/axis_camera_plugin/src/sync_http_client_delegate.cpp