File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,14 @@ void Downloader::wait()
3333 }
3434}
3535
36+ bool Downloader::isCancelled () const
37+ {
38+ if (!m_asyncResponse)
39+ return false ;
40+
41+ return m_asyncResponse->IsCancelled ();
42+ }
43+
3644const std::string &Downloader::text () const
3745{
3846 return m_response.text ;
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ class Downloader : public IDownloader
1919 void cancel () override ;
2020 void wait () override ;
2121
22+ bool isCancelled () const override ;
2223 const std::string &text () const override ;
2324
2425 private:
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ class IDownloader
1616 virtual void cancel () = 0;
1717 virtual void wait () = 0;
1818
19+ virtual bool isCancelled () const = 0;
1920 virtual const std::string &text () const = 0;
2021};
2122
You can’t perform that action at this time.
0 commit comments