void SM_UploadFileManager::slotUploadFinished() { progressBarDialog.hide(); state = EReady; if (!operationCanceled) { emit signalUpdateFileList(); } }
void FilesTransferUI::upload(void) { if(SDriveEngine::inst()->uploadFileMngr) { if(SDriveEngine::inst()->uploadFileMngr->getState() == NetworkManager::EBusy) return; } QString fileName = QFileDialog::getOpenFileName(SDriveEngine::inst()->parent, tr("Uploading file"), QDir::homePath(), tr("All files(*)")); if(!fileName.isEmpty()) { QString uploadLink(dynamic_cast<WebContentManager*> (SDriveEngine::inst()->getContentMngr())->getParentFolderInfo().uploadLink + QString("/?convert=false")); FilePanel *filePanel = SDriveEngine::inst()->getFilePanel(SettingsManager().currentPanel()); SDriveEngine::inst()->uploadFileMngr.reset(new UploadFileManager(SDriveEngine::inst()->parent)); connect(SDriveEngine::inst()->uploadFileMngr.data(), SIGNAL(signalUpdateFileList()), filePanel, SLOT(slotUpdate())); SDriveEngine::inst()->uploadFileMngr->startUpload(uploadLink, fileName); } }