/* */ #ifndef D_TRANSFER_STAT_H #define D_TRANSFER_STAT_H #include "common.h" namespace aria2 { struct TransferStat { TransferStat() : downloadSpeed(0), uploadSpeed(0), sessionDownloadLength(0), sessionUploadLength(0), allTimeUploadLength(0) { } TransferStat& operator+=(const TransferStat& stat); TransferStat& operator-=(const TransferStat& stat); int downloadSpeed; int uploadSpeed; /** * Returns the number of bytes downloaded since the program started. * This is not the total number of bytes downloaded. */ int64_t sessionDownloadLength; /** * Returns the number of bytes uploaded since the program started. * This is not the total number of bytes uploaded. */ int64_t sessionUploadLength; int64_t allTimeUploadLength; }; TransferStat operator+(const TransferStat& a, const TransferStat& b); TransferStat operator-(const TransferStat& a, const TransferStat& b); } // namespace aria2 #endif // D_TRANSFER_STAT_H