Speedup persistent data

Conflicts:
	src/mainwindow.cpp
	src/mainwindow.h
This commit is contained in:
Ivan Sorokin
2014-11-01 20:41:30 +03:00
parent f2c6981711
commit 70a114eb13
4 changed files with 48 additions and 64 deletions

View File

@@ -121,6 +121,9 @@ public:
};
public:
static void load();
static void save();
static bool isKnownTorrent(QString hash);
static QStringList knownTorrents();
static void setRatioLimit(const QString &hash, const qreal &ratio);
@@ -151,6 +154,10 @@ public:
static bool isSeed(const QString &hash);
static bool isMagnet(const QString &hash);
static QString getMagnetUri(const QString &hash);
private:
static QHash<QString, QVariant> all_data;
static bool dirty;
};
#endif // TORRENTPERSISTENTDATA_H