| 31 | } |
| 32 | |
| 33 | UIDownloadWindow::~UIDownloadWindow() { |
| 34 | if ( mStatus == Status::Running && Http::Pool::getGlobal().exists( mURI, mProxyURI ) ) { |
| 35 | auto http = Http::Pool::getGlobal().get( mURI, mProxyURI ); |
| 36 | http->setCancelRequest( mReqId ); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | UIDownloadWindow* UIDownloadWindow::startDownload( const std::string& url ) { |
| 41 | findByClass( "download_url" )->asType<UITextView>()->setText( url ); |
nothing calls this directly
no test coverage detected