*/
QSslConfiguration QNetworkReply::sslConfiguration() const
{
- QSslConfiguration config;
-
- // determine if we support this extension
- int id = metaObject()->indexOfMethod("sslConfigurationImplementation()");
- if (id != -1) {
- void *arr[] = { &config, 0 };
- const_cast<QNetworkReply *>(this)->qt_metacall(QMetaObject::InvokeMetaMethod, id, arr);
- }
- return config;
+ return QSslConfiguration();
}
/*!
*/
void QNetworkReply::setSslConfiguration(const QSslConfiguration &config)
{
- if (config.isNull())
- return;
-
- int id = metaObject()->indexOfMethod("setSslConfigurationImplementation(QSslConfiguration)");
- if (id != -1) {
- QSslConfiguration copy(config);
- void *arr[] = { 0, © };
- qt_metacall(QMetaObject::InvokeMetaMethod, id, arr);
- }
+ Q_UNUSED(config);
}
/*!
*/
void QNetworkReply::ignoreSslErrors(const QList<QSslError> &errors)
{
- // do this cryptic trick, because we could not add a virtual method to this class later on
- // since that breaks binary compatibility
- int id = metaObject()->indexOfMethod("ignoreSslErrorsImplementation(QList<QSslError>)");
- if (id != -1) {
- QList<QSslError> copy(errors);
- void *arr[] = { 0, © };
- qt_metacall(QMetaObject::InvokeMetaMethod, id, arr);
- }
+ Q_UNUSED(errors);
}
/*!
// attributes
QVariant attribute(QNetworkRequest::Attribute code) const;
- QSslConfiguration sslConfiguration() const;
- void setSslConfiguration(const QSslConfiguration &configuration);
- void ignoreSslErrors(const QList<QSslError> &errors);
+ virtual QSslConfiguration sslConfiguration() const;
+ virtual void setSslConfiguration(const QSslConfiguration &configuration);
+ virtual void ignoreSslErrors(const QList<QSslError> &errors);
public Q_SLOTS:
virtual void ignoreSslErrors();
}
}
-QSslConfiguration QNetworkReplyImpl::sslConfigurationImplementation() const
+QSslConfiguration QNetworkReplyImpl::sslConfiguration() const
{
Q_D(const QNetworkReplyImpl);
QSslConfiguration config;
return config;
}
-void QNetworkReplyImpl::setSslConfigurationImplementation(const QSslConfiguration &config)
+void QNetworkReplyImpl::setSslConfiguration(const QSslConfiguration &config)
{
Q_D(QNetworkReplyImpl);
if (d->backend && !config.isNull())
d->backend->ignoreSslErrors();
}
-void QNetworkReplyImpl::ignoreSslErrorsImplementation(const QList<QSslError> &errors)
+void QNetworkReplyImpl::ignoreSslErrors(const QList<QSslError> &errors)
{
Q_D(QNetworkReplyImpl);
if (d->backend)
virtual qint64 readData(char *data, qint64 maxlen);
virtual bool event(QEvent *);
- Q_INVOKABLE QSslConfiguration sslConfigurationImplementation() const;
- Q_INVOKABLE void setSslConfigurationImplementation(const QSslConfiguration &configuration);
+ virtual QSslConfiguration sslConfiguration() const;
+ virtual void setSslConfiguration(const QSslConfiguration &configuration);
virtual void ignoreSslErrors();
- Q_INVOKABLE virtual void ignoreSslErrorsImplementation(const QList<QSslError> &errors);
+ virtual void ignoreSslErrors(const QList<QSslError> &errors);
Q_DECLARE_PRIVATE(QNetworkReplyImpl)
Q_PRIVATE_SLOT(d_func(), void _q_startOperation())