- Added buildconf.pri to hold the master-level build options.
[qtrapids] / src / gui / MainWindow.cpp
index d45cc96..a3262e1 100644 (file)
@@ -37,7 +37,8 @@ const QString ABOUT_TEXT
        = 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"));
 
 
@@ -161,7 +162,9 @@ void MainWindow::on_aboutQtAction_clicked()
 
 void MainWindow::on_downloadItemSelectionChanged()
 {
+#ifdef QTRAPIDS_DEBUG
        qDebug() << "MainWindow::on_seedItemSelectionChanged():" << dlView_->currentItem();
+#endif
        if (dlView_->currentItem() != NULL) {
                emit(itemSelected(true));
        } else {
@@ -171,7 +174,9 @@ void MainWindow::on_downloadItemSelectionChanged()
 
 void MainWindow::on_seedItemSelectionChanged()
 {
+#ifdef QTRAPIDS_DEBUG
        qDebug() << "MainWindow::on_seedItemSelectionChanged():" << seedView_->currentItem();
+#endif
        if (seedView_->currentItem() != NULL) {
                emit(itemSelected(true));
        } else {
@@ -190,7 +195,9 @@ void MainWindow::handleToolBarAction(QAction* action)
 
 void MainWindow::on_torrentFileSelected(const QString& file)
 {
+#ifdef QTRAPIDS_DEBUG
        qDebug() << " MainWindow::on_torrentFileSelected(): " << file;
+#endif
        // Torrent filename empty, do nothing.
        if (file == "") {
                return;
@@ -208,20 +215,26 @@ void MainWindow::on_torrentFileSelected(const QString& file)
        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));
                }