EnginioClientPrivate::EnginioClientPrivate(EnginioClient *client) : q_ptr(client), _identity(), _serviceUrl(EnginioString::apiEnginIo), _networkManager(), _uploadChunkSize(512 * 1024), _authenticationState(EnginioClient::NotAuthenticated) { assignNetworkManager(); _request.setHeader(QNetworkRequest::ContentTypeHeader, QStringLiteral("application/json")); }
EnginioClientConnectionPrivate::EnginioClientConnectionPrivate() : _identity(), _serviceUrl(EnginioString::apiEnginIo), _networkManager(), _uploadChunkSize(512 * 1024), _authenticationState(Enginio::NotAuthenticated) { assignNetworkManager(); #if defined(ENGINIO_VALGRIND_DEBUG) QSslConfiguration conf = QSslConfiguration::defaultConfiguration(); conf.setCiphers(QList<QSslCipher>() << QSslCipher(QStringLiteral("ECDHE-RSA-DES-CBC3-SHA"), QSsl::SslV3)); _request.setSslConfiguration(conf); #endif _request.setHeader(QNetworkRequest::ContentTypeHeader, QStringLiteral("application/json")); }