equal
deleted
inserted
replaced
79 class QNetworkSessionPrivate : public QObject |
79 class QNetworkSessionPrivate : public QObject |
80 { |
80 { |
81 Q_OBJECT |
81 Q_OBJECT |
82 public: |
82 public: |
83 QNetworkSessionPrivate() : |
83 QNetworkSessionPrivate() : |
84 tx_data(0), rx_data(0), m_activeTime(0), isOpen(false), |
84 isOpen(false), |
85 connectFlags(ICD_CONNECTION_FLAG_USER_EVENT), |
85 connectFlags(ICD_CONNECTION_FLAG_USER_EVENT), |
86 currentState(QNetworkSession::Invalid), |
86 currentState(QNetworkSession::Invalid), |
87 m_asynchCallActive(false) |
87 m_asynchCallActive(false) |
88 { |
88 { |
89 m_stopTimer.setSingleShot(true); |
89 m_stopTimer.setSingleShot(true); |
159 void connectTimeout(); |
159 void connectTimeout(); |
160 |
160 |
161 private: |
161 private: |
162 QNetworkConfigurationManager manager; |
162 QNetworkConfigurationManager manager; |
163 |
163 |
164 quint64 tx_data; |
164 struct Statistics { |
165 quint64 rx_data; |
165 quint64 txData; |
166 quint64 m_activeTime; |
166 quint64 rxData; |
|
167 quint64 activeTime; |
|
168 }; |
167 |
169 |
168 // The config set on QNetworkSession. |
170 // The config set on QNetworkSession. |
169 QNetworkConfiguration publicConfig; |
171 QNetworkConfiguration publicConfig; |
170 QNetworkConfiguration config; |
172 QNetworkConfiguration config; |
171 |
173 |
194 QDateTime startTime; |
196 QDateTime startTime; |
195 QString currentNetworkInterface; |
197 QString currentNetworkInterface; |
196 friend class IcdListener; |
198 friend class IcdListener; |
197 void updateState(QNetworkSession::State); |
199 void updateState(QNetworkSession::State); |
198 void updateIdentifier(const QString &newId); |
200 void updateIdentifier(const QString &newId); |
199 quint64 getStatistics(bool sent) const; |
201 Statistics getStatistics() const; |
200 void cleanupSession(void); |
202 void cleanupSession(void); |
201 |
203 |
202 void updateProxyInformation(); |
204 void updateProxyInformation(); |
203 void clearProxyInformation(); |
205 void clearProxyInformation(); |
204 QNetworkSession::State currentState; |
206 QNetworkSession::State currentState; |