summaryrefslogtreecommitdiffstats
path: root/src/plugins/bearer/qnetworksession_impl.h
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2010-03-05 02:10:19 (GMT)
committerAaron McCarthy <aaron.mccarthy@nokia.com>2010-03-05 03:34:33 (GMT)
commit92c624b6e26cf950ca651cee59be8ab53ada9a7d (patch)
treeb79048d0af50b5b7304a8c66d0a439164ac2e2c9 /src/plugins/bearer/qnetworksession_impl.h
parent445ae84fbd7d5ef04a426f8c32a79a369fed70eb (diff)
downloadQt-92c624b6e26cf950ca651cee59be8ab53ada9a7d.zip
Qt-92c624b6e26cf950ca651cee59be8ab53ada9a7d.tar.gz
Qt-92c624b6e26cf950ca651cee59be8ab53ada9a7d.tar.bz2
Don't keep polling network sessions open indefinitely.
Diffstat (limited to 'src/plugins/bearer/qnetworksession_impl.h')
-rw-r--r--src/plugins/bearer/qnetworksession_impl.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/bearer/qnetworksession_impl.h b/src/plugins/bearer/qnetworksession_impl.h
index 7349e77..c644174 100644
--- a/src/plugins/bearer/qnetworksession_impl.h
+++ b/src/plugins/bearer/qnetworksession_impl.h
@@ -69,7 +69,7 @@ class QNetworkSessionPrivateImpl : public QNetworkSessionPrivate
Q_OBJECT
public:
QNetworkSessionPrivateImpl()
- : startTime(0)
+ : startTime(0), sessionTimeout(-1)
{
}
@@ -108,13 +108,12 @@ private:
private Q_SLOTS:
void networkConfigurationsChanged();
- void configurationChanged(const QNetworkConfiguration &config);
+ void configurationChanged(QNetworkConfigurationPrivatePointer config);
void forcedSessionClose(const QNetworkConfiguration &config);
void connectionError(const QString &id, QBearerEngineImpl::ConnectionError error);
+ void decrementTimeout();
private:
- QNetworkConfigurationManager manager;
-
bool opened;
QBearerEngineImpl *engine;
@@ -122,6 +121,8 @@ private:
QNetworkSession::SessionError lastError;
quint64 startTime;
+
+ int sessionTimeout;
};
QT_END_NAMESPACE