FEATURE: Added a torrent import assistant to seed or keep downloading outside torrents

This commit is contained in:
Christophe Dumez
2010-10-23 16:21:56 +00:00
parent 31e4b8dc31
commit 90dd337069
16 changed files with 560 additions and 43 deletions

View File

@@ -98,6 +98,14 @@ public:
return x;
}
static inline QString file_extension(const QString &filename) {
QString extension;
if(filename.contains(".")) {
extension = filename.mid(filename.lastIndexOf(".")+1);
}
return extension;
}
static void shutdownComputer();
static bool safeRemove(QString file_path) {