example/AuthApp/src/baseDialog.cpp
changeset 26 83d6a149c755
parent 17 106a4bfcb866
equal deleted inserted replaced
25:a180113055cb 26:83d6a149c755
   173   emit dialogDidFailWithError( aError );
   173   emit dialogDidFailWithError( aError );
   174   dismiss(aAnimated);
   174   dismiss(aAnimated);
   175 }
   175 }
   176 void FBDialog::slotAuthenticationRequired( QNetworkReply* reply, QAuthenticator* authenticator )
   176 void FBDialog::slotAuthenticationRequired( QNetworkReply* reply, QAuthenticator* authenticator )
   177 	{
   177 	{
       
   178 		Q_UNUSED(reply)
       
   179 		Q_UNUSED(authenticator)
   178 		QMessageBox msgbox;
   180 		QMessageBox msgbox;
   179 		QString msg ("Error!Authentication Required");
   181 		QString msg ("Error!Authentication Required");
   180 		msgbox.setText(msg);
   182 		msgbox.setText(msg);
   181 	}
   183 	}
   182 void FBDialog::slotsslErrors( QNetworkReply* reply, const QList<QSslError>& errors  )
   184 void FBDialog::slotsslErrors( QNetworkReply* reply, const QList<QSslError>& errors  )
   183 	{
   185 	{
       
   186 		Q_UNUSED(errors)
       
   187 		Q_UNUSED(reply)
   184 		QMessageBox msgbox;
   188 		QMessageBox msgbox;
   185 		QString msg ("Error!SSL Error");
   189 		QString msg ("Error!SSL Error");
   186 		msgbox.setText(msg);
   190 		msgbox.setText(msg);
   187 	}
   191 	}
   188 void FBDialog::slotproxyAuthenticationRequired( const QNetworkProxy& proxy, QAuthenticator* authenticator  )
   192 void FBDialog::slotproxyAuthenticationRequired( const QNetworkProxy& proxy, QAuthenticator* authenticator  )
   189 	{
   193 	{
       
   194 		Q_UNUSED(proxy)
       
   195 		Q_UNUSED(authenticator)
   190 		QMessageBox msgbox;
   196 		QMessageBox msgbox;
   191 		QString msg ("Error!Proxy Authenticatio Required");
   197 		QString msg ("Error!Proxy Authenticatio Required");
   192 		msgbox.setText(msg);
   198 		msgbox.setText(msg);
   193 	}
   199 	}
   194 void FBDialog::cancel()
   200 void FBDialog::cancel()
   311 {
   317 {
   312 	progressbar->setValue(progress);
   318 	progressbar->setValue(progress);
   313 }
   319 }
   314 void FBDialog::GetSessionKey(const QUrl& aUrl)
   320 void FBDialog::GetSessionKey(const QUrl& aUrl)
   315 {
   321 {
   316 
   322 	Q_UNUSED(aUrl)
   317 }
   323 }
   318 void FBDialog::FetchKeyFromUrl(const QUrl& aUrl)
   324 void FBDialog::FetchKeyFromUrl(const QUrl& aUrl)
   319 {
   325 {
   320 
   326 	Q_UNUSED(aUrl)
   321 }
   327 }
   322 void FBDialog::loadFinished ( bool ok )
   328 void FBDialog::loadFinished ( bool ok )
   323 {
   329 {
   324     qDebug() << "Load " << (ok ? "" : "un") << "successfull for: " << iWebView->url();
   330     qDebug() << "Load " << (ok ? "" : "un") << "successfull for: " << iWebView->url();
   325     progressbar->setVisible(false);
   331     progressbar->setVisible(false);