= QString(QObject::trUtf8("QtRapids, a simple BitTorrent client based on"
"\nQt and Libtorrent."
"\n\nURL: http://qtrapids.garage.maemo.org/"
- "\n\nAuthor(s):\nLassi Väätämöinen, lassi.vaatamoinen@ixonos.com"
+ "\n\nAuthors:\nLassi Väätämöinen, lassi.vaatamoinen@ixonos.com"
+ "\nDenis Zalievsky, denis.zalewsky@ixonos.com"
"\n\nIxonos Plc, Finland\n"));
void MainWindow::on_downloadItemSelectionChanged()
{
+#ifdef QTRAPIDS_DEBUG
qDebug() << "MainWindow::on_seedItemSelectionChanged():" << dlView_->currentItem();
+#endif
if (dlView_->currentItem() != NULL) {
emit(itemSelected(true));
} else {
void MainWindow::on_seedItemSelectionChanged()
{
+#ifdef QTRAPIDS_DEBUG
qDebug() << "MainWindow::on_seedItemSelectionChanged():" << seedView_->currentItem();
+#endif
if (seedView_->currentItem() != NULL) {
emit(itemSelected(true));
} else {
void MainWindow::on_torrentFileSelected(const QString& file)
{
+#ifdef QTRAPIDS_DEBUG
qDebug() << " MainWindow::on_torrentFileSelected(): " << file;
+#endif
// Torrent filename empty, do nothing.
if (file == "") {
return;
QTorrentHandle handle = btSession_.addTorrent(addParams);
dlView_->newItem(handle);
// torrentHandles_.push_back(handlePtr);
+#ifdef QTRAPIDS_DEBUG
qDebug() << "Is valid: " << handle.isValid();
+#endif
}
void MainWindow::on_alert(std::auto_ptr<Alert> al)
{
+
+
if (al.get() != NULL) {
- qDebug()
- << "MainWindow::on_torrentAlert(): "
- << QString::fromStdString(al->message());
-
+// qDebug()
+// << "MainWindow::on_torrentAlert(): "
+// << QString::fromStdString(al->message());
+
TorrentAlert *torrentAlert
= dynamic_cast<TorrentAlert*> (al.get());
+
if (torrentAlert) {
+ QTorrentHandle torrentHandle = QTorrentHandle(torrentAlert->handle);
dlView_->updateItem(QTorrentHandle(torrentAlert->handle));
}