mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-08 08:32:31 -06:00
- Added ratio column
This commit is contained in:
@@ -61,6 +61,7 @@ class bittorrent : public QObject{
|
||||
QStringList torrentsUnchecked;
|
||||
QHash<QString, QList<long> > ETAstats;
|
||||
QHash<QString, long> ETAs;
|
||||
QHash<QString, QPair<size_type,size_type> > ratioData;
|
||||
QTimer ETARefresher;
|
||||
QList<QString> fullAllocationModeList;
|
||||
|
||||
@@ -87,6 +88,7 @@ class bittorrent : public QObject{
|
||||
long getETA(QString hash) const;
|
||||
size_type torrentEffectiveSize(QString hash) const;
|
||||
bool inFullAllocationMode(const QString& hash) const;
|
||||
float getRealRatio(QString hash) const;
|
||||
session* getSession() const;
|
||||
|
||||
public slots:
|
||||
@@ -113,6 +115,8 @@ class bittorrent : public QObject{
|
||||
void updateETAs();
|
||||
void saveTorrentSpeedLimits(QString hash);
|
||||
void loadTorrentSpeedLimits(QString hash);
|
||||
void saveDownloadUploadForTorrent(QString hash);
|
||||
void loadDownloadUploadForTorrent(QString hash);
|
||||
// Session configuration - Setters
|
||||
void setListeningPortsRange(std::pair<unsigned short, unsigned short> ports);
|
||||
void setMaxConnections(int maxConnec);
|
||||
|
||||
Reference in New Issue
Block a user