void MaemoPublishingResultPageFremantleFree::handleFinished() { handleProgress(m_publisher->resultString(), MPFF::StatusOutput); m_isComplete = true; cancelButton()->setEnabled(false); emit completeChanged(); }
void MaemoPublishingResultPageFremantleFree::initializePage() { cancelButton()->disconnect(); connect(cancelButton(), SIGNAL(clicked()), SLOT(handleCancelRequest())); connect(m_publisher, SIGNAL(finished()), SLOT(handleFinished())); connect(m_publisher, SIGNAL(progressReport(QString,MaemoPublisherFremantleFree::OutputType)), SLOT(handleProgress(QString,MaemoPublisherFremantleFree::OutputType))); m_publisher->publish(); }
DownloadDialog::DownloadDialog(QString url, QWidget *parent) : QDialog(parent), ui(new Ui::DownloadDialog) { ui->setupUi(this); ui->bBox_Close->setEnabled(false); qna = new QNetworkAccessManager(this); qnreq = new QNetworkRequest(QUrl(url)); qnreply = qna->get(*qnreq); connect(qna, SIGNAL(finished(QNetworkReply*)), this, SLOT(handleFinished(QNetworkReply*))); connect(qnreply, SIGNAL(error(QNetworkReply::NetworkError)), this, SLOT(handleError(QNetworkReply::NetworkError))); connect(qnreply, SIGNAL(downloadProgress(qint64,qint64)), this, SLOT(handleProgress(qint64,qint64))); }