void SearchPlugin::on_loadFinished(bool ok)
{
+#ifdef QTRAPIDS_DEBUG
if (ok) {
- qDebug() << "on_loadFinished()";
+ qDebug() << "on_loadFinished(): success";
}
+#endif
}
void SearchPlugin::on_searchResult(QWidget* resultWidget)
{
+#ifdef QTRAPIDS_DEBUG
qDebug() << "on_searchResult()";
+#endif
if (host_) {
host_->addPluginWidget(resultWidget, qtrapids::PluginHostInterface::TAB_PAGE);
}
/// @todo We should also check MIME-type, instead of relying on file suffix.
/// @todo Also, after downloading, the torrent bencoding validity should be checked at plugin host..
if (fInfo.suffix() == "torrent") {
+#ifdef QTRAPIDS_DEBUG
qDebug() << "IS TORRENT";
+#endif
QString filename = fInfo.fileName();
// Destroy ongoing download, if any.
void SearchPlugin::on_downloadFinished(QString filepath)
{
+#ifdef QTRAPIDS_DEBUG
qDebug() << "TORRENT DOWNLOADED: " << filepath;
+#endif
delete dlManager_;
dlManager_ = NULL;
host_->eventRequest(QVariant(filepath), qtrapids::PluginHostInterface::OPEN_FILE);