QAlphaCloud  0.0.1
Qt bindings for Alpha Cloud
Public Member Functions | Properties | List of all members
QAlphaCloud::Connector Class Reference

API Connection. More...

#include <connector.h>

Inherits QObject.

Public Member Functions

 Connector (QObject *parent=nullptr)
 
 Connector (Configuration *configuration, QObject *parent=nullptr)
 
Q_REQUIRED_RESULT Configurationconfiguration () const
 
void setConfiguration (Configuration *configuration)
 
Q_SIGNAL void configurationChanged (QAlphaCloud::Configuration *configuration)
 
Q_REQUIRED_RESULT bool valid () const
 
Q_SIGNAL void validChanged (bool valid)
 
Q_REQUIRED_RESULT QNetworkAccessManager * networkAccessManager () const
 
void setNetworkAccessManager (QNetworkAccessManager *networkAccessManager)
 Set the QNetworkAccessManager. More...
 

Properties

QAlphaCloud::Configurationconfiguration
 The configuration to use.
 
bool valid
 Whether this connector is valid. More...
 

Detailed Description

API Connection.

This class represents an API connection with the given configuration. It is required by all request classes.

Note
You need to set a QNetworkAccessManager on this object in order to send requests.

In QML, the QNetworkAccessManager is automatically assigned from the current QQmlEngine on component completion.

Member Function Documentation

◆ setNetworkAccessManager()

void QAlphaCloud::Connector::setNetworkAccessManager ( QNetworkAccessManager *  networkAccessManager)

Set the QNetworkAccessManager.

It will be used for all network requests. Without it, no requests can be sent.

Parameters
networkAccessManagerThe QNetworkAccessManager to use.

In QML, the QNetworkAccessManager is automatically assigned from the current QQmlEngine on component completion, unless one has already been assigned manually before.

Property Documentation

◆ valid

bool QAlphaCloud::Connector::valid
read

Whether this connector is valid.

This means that it has a valid configuration and has a QNetworkAccessManager


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