- FEATURE: Allow to buy downloads using ShareMonkey

This commit is contained in:
Christophe Dumez 2007-12-07 22:33:19 +00:00
parent a84c686090
commit b2950afd5c
7 changed files with 38 additions and 0 deletions

View file

@ -411,6 +411,26 @@ void GUI::openDestinationFolder() const {
}
}
void GUI::goBuyPage() const {
QStringList hashes;
switch(tabs->currentIndex()){
case 0:
hashes = downloadingTorrentTab->getSelectedTorrents(true);
break;
case 1:
hashes = finishedTorrentTab->getSelectedTorrents(true);
break;
default:
return;
}
QString hash;
QStringList pathsList;
foreach(hash, hashes) {
QTorrentHandle h = BTSession->getTorrentHandle(hash);
QDesktopServices::openUrl("http://match.sharemonkey.com/?info_hash="+hash+"&fileName="+h.name());
}
}
// Necessary if we want to close the window
// in one time if "close to systray" is enabled
void GUI::on_actionExit_triggered() {