summaryrefslogtreecommitdiffstats
path: root/src/plugins/bearer/icd/qnetworksession_impl.h
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2010-07-28 04:12:30 (GMT)
committerAaron McCarthy <aaron.mccarthy@nokia.com>2010-07-28 04:45:11 (GMT)
commit71ef5269c03d6230e6ebbf6f3c0b6f8836739ec3 (patch)
treefcb25ebcade8ee6daba797c9aa88e6880aeea709 /src/plugins/bearer/icd/qnetworksession_impl.h
parenta259bd2841b3ce7e34bb18990332bd497f97cdd0 (diff)
downloadQt-71ef5269c03d6230e6ebbf6f3c0b6f8836739ec3.zip
Qt-71ef5269c03d6230e6ebbf6f3c0b6f8836739ec3.tar.gz
Qt-71ef5269c03d6230e6ebbf6f3c0b6f8836739ec3.tar.bz2
Cherry pick fix for QTMOBILITY-408 from Qt Mobility.
7f9a8ebcfe86d3df428707888c3ab5fcd10226a4
Diffstat (limited to 'src/plugins/bearer/icd/qnetworksession_impl.h')
-rw-r--r--src/plugins/bearer/icd/qnetworksession_impl.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/bearer/icd/qnetworksession_impl.h b/src/plugins/bearer/icd/qnetworksession_impl.h
index c43b1f0..390e508 100644
--- a/src/plugins/bearer/icd/qnetworksession_impl.h
+++ b/src/plugins/bearer/icd/qnetworksession_impl.h
@@ -170,6 +170,12 @@ private:
QNetworkConfigurationManager manager;
QIcdEngine *engine;
+ struct Statistics {
+ quint64 txData;
+ quint64 rxData;
+ quint64 activeTime;
+ };
+
// The config set on QNetworkSession.
QNetworkConfiguration config;
@@ -186,7 +192,7 @@ private:
friend class IcdListener;
void updateState(QNetworkSession::State);
void updateIdentifier(const QString &newId);
- quint64 getStatistics(bool sent) const;
+ Statistics getStatistics() const;
void cleanupSession(void);
void updateProxyInformation();