src/network/bearer/qnetworksession.cpp
changeset 37 758a864f9613
parent 30 5dc02b23752f
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
   627     sessions which use the same network interface.
   627     sessions which use the same network interface.
   628 
   628 
   629     If the session is based on a service network configuration the number of 
   629     If the session is based on a service network configuration the number of 
   630     sent bytes across all active member configurations are returned.
   630     sent bytes across all active member configurations are returned.
   631 
   631 
   632     This function may not always be supported on all platforms and returns
   632     This function may not always be supported on all platforms and returns 0.
   633     0. The platform capability can be detected via QNetworkConfigurationManager::DataStatistics.
   633     The platform capability can be detected via QNetworkConfigurationManager::DataStatistics.
       
   634 
       
   635     \note On some platforms this function may run the main event loop.
   634 */
   636 */
   635 quint64 QNetworkSession::bytesWritten() const
   637 quint64 QNetworkSession::bytesWritten() const
   636 {
   638 {
   637     return d ? d->bytesWritten() : Q_UINT64_C(0);
   639     return d ? d->bytesWritten() : Q_UINT64_C(0);
   638 }
   640 }
   644     sessions which use the same network interface.
   646     sessions which use the same network interface.
   645 
   647 
   646     If the session is based on a service network configuration the number of 
   648     If the session is based on a service network configuration the number of 
   647     sent bytes across all active member configurations are returned.
   649     sent bytes across all active member configurations are returned.
   648 
   650 
   649     This function may not always be supported on all platforms and returns
   651     This function may not always be supported on all platforms and returns 0.
   650     0. The platform capability can be detected via QNetworkConfigurationManager::DataStatistics.
   652     The platform capability can be detected via QNetworkConfigurationManager::DataStatistics.
       
   653 
       
   654     \note On some platforms this function may run the main event loop.
   651 */
   655 */
   652 quint64 QNetworkSession::bytesReceived() const
   656 quint64 QNetworkSession::bytesReceived() const
   653 {
   657 {
   654     return d ? d->bytesReceived() : Q_UINT64_C(0);
   658     return d ? d->bytesReceived() : Q_UINT64_C(0);
   655 }
   659 }