OSDN Git Service

動画ダウンロード中のキャンセル処理を実装
authoryukihane <yukihane.feather@gmail.com>
Thu, 11 Aug 2011 05:06:24 +0000 (14:06 +0900)
committeryukihane <yukihane.feather@gmail.com>
Thu, 11 Aug 2011 07:19:19 +0000 (16:19 +0900)
(cherry picked from commit 8ca6efee3be7ed50abedc052de0b27e656cb3eff)

frontend/src/yukihane/inqubus/saccubus_adapter/NicoBrowserAdapter.java

index adc581c..93e6b2f 100644 (file)
@@ -100,6 +100,11 @@ public class NicoBrowserAdapter implements NicoClient {
                     final String msg = "動画ダウンロード:" + p + "パーセント完了";
                     listener.setText(msg);
                 }
+
+                @Override
+                public boolean getCancel() {
+                    return stopFlag.needStop();
+                }
             });
 
             return res.getFile();