void AsemanWebPageGrabber::setDestination(const QString &dest) { if(p->destination == dest) return; p->destination = dest; emit destinationChanged(); }
void AsemanFileDownloaderQueue::setDestination(const QString &dest) { if(p->destination == dest) return; p->destination = dest; QDir().mkpath(p->destination); emit destinationChanged(); }
void TelegramImageElement::destinationChangeEvent() { QString dest = p->handler->destination(); if(dest.isEmpty() || !p->mdb.mimeTypeForFile(dest).name().contains("image", Qt::CaseInsensitive)) { QString thumb = p->handler->thumbnail(); setImage(thumb); Q_EMIT thumbnailChanged(); Q_EMIT thumbnailDownloadedChanged(); } else setImage(dest); Q_EMIT destinationChanged(); Q_EMIT downloadedChanged(); Q_EMIT downloadedChanged(); }
void KodiDownload::setDestination(const QString &destination) { QString dest(destination); m_destination = dest.replace(':', ' '); emit destinationChanged(); }
void TelegramFileLocation::setDestination(const QString &destination) { p->destination = destination; Q_EMIT destinationChanged(); }