QAlphaCloud
0.0.1
Qt bindings for Alpha Cloud
|
API Connection. More...
#include <connector.h>
Inherits QObject.
Public Member Functions | |
Connector (QObject *parent=nullptr) | |
Connector (Configuration *configuration, QObject *parent=nullptr) | |
Q_REQUIRED_RESULT Configuration * | configuration () 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::Configuration * | configuration |
The configuration to use. | |
bool | valid |
Whether this connector is valid. More... | |
API Connection.
This class represents an API connection with the given configuration. It is required by all request classes.
In QML, the QNetworkAccessManager is automatically assigned from the current QQmlEngine on component completion.
void QAlphaCloud::Connector::setNetworkAccessManager | ( | QNetworkAccessManager * | networkAccessManager | ) |
Set the QNetworkAccessManager.
It will be used for all network requests. Without it, no requests can be sent.
networkAccessManager | The 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.
|
read |
Whether this connector is valid.
This means that it has a valid configuration and has a QNetworkAccessManager