本文整理汇总了C++中QNetworkReply::setSslConfiguration方法的典型用法代码示例。如果您正苦于以下问题:C++ QNetworkReply::setSslConfiguration方法的具体用法?C++ QNetworkReply::setSslConfiguration怎么用?C++ QNetworkReply::setSslConfiguration使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QNetworkReply
的用法示例。
在下文中一共展示了QNetworkReply::setSslConfiguration方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: accessToken
void OAuthPrivate::accessToken(const QString & url, const QString & verifier){
QNetworkRequest request = buildRequest("POST", url, buildAuthHeader("POST", url, Params(), verifier)).first;
request.setAttribute(QNetworkRequest::User, AccessToken);
QNetworkReply * reply = nam->post(request, QByteArray());
reply->setSslConfiguration(* config);
connect(reply, SIGNAL(finished()), SLOT(reply()));
}
示例2: postRequest
QNetworkReply* ZnsHelper::postRequest(const qint32& reqType, const QByteArray& data)
{
m_reqHandler->setRawHeader("Content-Type", ngrt4n::toByteArray(ContentTypes[reqType]));
QNetworkReply* response = QNetworkAccessManager::post(*m_reqHandler, data);
response->setSslConfiguration(m_sslConfig);
connect(response, SIGNAL(finished()), m_evlHandler, SLOT(quit()));
connect(response, SIGNAL(error(QNetworkReply::NetworkError)), this, SLOT(processError(QNetworkReply::NetworkError)));
m_evlHandler->exec();
return response;
}
示例3: setSslConfiguration
void QNetworkReplyProto::setSslConfiguration(const QSslConfiguration &config)
{
QNetworkReply *item = qscriptvalue_cast<QNetworkReply*>(thisObject());
if (item)
item->setSslConfiguration(config);
}