* 動画を(コメント付きに)変換するワーカクラス.
* @author yuki
*/
-public class Convert extends SwingWorker<ConvertResult, ConvertProgress> {
+public class Convert extends SaccubusCallable<ConvertResult, ConvertProgress> {
private static final Logger logger = Logger.getLogger(Convert.class.getName());
private final ConvertProfile profile;
* @throws IOException 変換失敗.
*/
public Convert(ConvertProfile profile, File video, File comment) {
+ // TODO listener登録
+ super(null);
this.profile = profile;
this.videoFile = video;
this.commentFile = comment;
}
@Override
- protected ConvertResult doInBackground() throws Exception {
+ public ConvertResult call() throws Exception {
if (!profile.isConvert()) {
return new ConvertResult(true, "");
}