qBittorrent
|
#include <statistics.h>
Public Member Functions | |
Statistics (BitTorrent::Session *session) | |
~Statistics () | |
quint64 | getAlltimeDL () const |
quint64 | getAlltimeUL () const |
Private Slots | |
void | gather () |
Private Member Functions | |
void | save () const |
void | load () |
Private Attributes | |
BitTorrent::Session * | m_session |
quint64 | m_alltimeUL |
quint64 | m_alltimeDL |
quint64 | m_sessionUL |
quint64 | m_sessionDL |
qint64 | m_lastWrite |
bool | m_dirty |
QTimer | m_timer |
Definition at line 39 of file statistics.h.
|
explicit |
Definition at line 41 of file statistics.cpp.
References gather(), load(), and m_timer.
Statistics::~Statistics | ( | ) |
Definition at line 54 of file statistics.cpp.
References m_dirty, m_lastWrite, and save().
|
privateslot |
Definition at line 71 of file statistics.cpp.
References m_dirty, m_session, m_sessionDL, m_sessionUL, save(), BitTorrent::Session::status(), BitTorrent::SessionStatus::totalDownload, and BitTorrent::SessionStatus::totalUpload.
Referenced by Statistics().
quint64 Statistics::getAlltimeDL | ( | ) | const |
Definition at line 61 of file statistics.cpp.
References m_alltimeDL, and m_sessionDL.
Referenced by BitTorrent::Session::getAlltimeDL().
quint64 Statistics::getAlltimeUL | ( | ) | const |
Definition at line 66 of file statistics.cpp.
References m_alltimeUL, and m_sessionUL.
Referenced by BitTorrent::Session::getAlltimeUL().
|
private |
Definition at line 104 of file statistics.cpp.
References Profile::applicationSettings(), Profile::instance(), m_alltimeDL, and m_alltimeUL.
Referenced by Statistics().
|
private |
Definition at line 88 of file statistics.cpp.
References Profile::applicationSettings(), Profile::instance(), m_alltimeDL, m_alltimeUL, m_dirty, m_lastWrite, m_sessionDL, m_sessionUL, and SAVE_INTERVAL.
Referenced by gather(), and ~Statistics().
|
private |
Definition at line 61 of file statistics.h.
Referenced by getAlltimeDL(), load(), and save().
|
private |
Definition at line 60 of file statistics.h.
Referenced by getAlltimeUL(), load(), and save().
|
mutableprivate |
Definition at line 65 of file statistics.h.
Referenced by gather(), save(), and ~Statistics().
|
mutableprivate |
Definition at line 64 of file statistics.h.
Referenced by save(), and ~Statistics().
|
private |
Definition at line 58 of file statistics.h.
Referenced by gather().
|
private |
Definition at line 63 of file statistics.h.
Referenced by gather(), getAlltimeDL(), and save().
|
private |
Definition at line 62 of file statistics.h.
Referenced by gather(), getAlltimeUL(), and save().
|
private |
Definition at line 67 of file statistics.h.
Referenced by Statistics().