demos/browser/networkaccessmanager.cpp
changeset 7 f7bc934e204c
parent 3 41300fa6a67c
equal deleted inserted replaced
3:41300fa6a67c 7:f7bc934e204c
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the demonstration applications of the Qt Toolkit.
     7 ** This file is part of the demonstration applications of the Qt Toolkit.
     8 **
     8 **
   110         return;
   110         return;
   111 
   111 
   112     double pctCached = (double(requestFinishedFromCacheCount) * 100.0/ double(requestFinishedCount));
   112     double pctCached = (double(requestFinishedFromCacheCount) * 100.0/ double(requestFinishedCount));
   113     double pctPipelined = (double(requestFinishedPipelinedCount) * 100.0/ double(requestFinishedCount));
   113     double pctPipelined = (double(requestFinishedPipelinedCount) * 100.0/ double(requestFinishedCount));
   114     double pctSecure = (double(requestFinishedSecureCount) * 100.0/ double(requestFinishedCount));
   114     double pctSecure = (double(requestFinishedSecureCount) * 100.0/ double(requestFinishedCount));
       
   115 #ifdef QT_DEBUG
   115     qDebug("STATS [%lli requests total] [%3.2f%% from cache] [%3.2f%% pipelined] [%3.2f%% SSL/TLS]", requestFinishedCount, pctCached, pctPipelined, pctSecure);
   116     qDebug("STATS [%lli requests total] [%3.2f%% from cache] [%3.2f%% pipelined] [%3.2f%% SSL/TLS]", requestFinishedCount, pctCached, pctPipelined, pctSecure);
   116 
   117 #endif
   117 }
   118 }
   118 
   119 
   119 void NetworkAccessManager::loadSettings()
   120 void NetworkAccessManager::loadSettings()
   120 {
   121 {
   121     QSettings settings;
   122     QSettings settings;