OSDN Git Service

確実に不要になるクラスを削除
[coroid/inqubus.git] / frontend / src / saccubus / prompt / Prompt.java
index ab08d42..043863b 100644 (file)
@@ -24,8 +24,6 @@ import saccubus.converter.classic.profile.GeneralSetting;
 import saccubus.converter.classic.profile.InputFileSetting;
 import saccubus.converter.classic.profile.OutputFileSetting;
 import saccubus.converter.classic.profile.Profile;
-import saccubus.converter.classic.profile.SFile;
-import saccubus.properties.SProperties;
 import saccubus.net.TextProgressListener;
 
 /**
@@ -118,40 +116,43 @@ public class Prompt {
     }
 
     private Profile createExecuteOption(CommandLine cmd) throws IOException {
-        final String mail = "dmy";
-        final String pass = "dmy";
-        final String video = cmd.getOptionValue("file_video");
-        final String comm = cmd.getOptionValue("file_comment");
-        final String tcomm = cmd.getOptionValue("file_tcomment");
-        final String output = cmd.getOptionValue("file_output");
-        final String ff = cmd.getOptionValue("ffmpeg");
-
-        SProperties setting = SProperties.loadSetting(mail, pass);
-        Profile p = setting.toProfile();
-        GeneralSetting general = p.getGeneralSetting();
-        LoginInfo loginInfo = p.getLoginInfo();
-//        InputFileSetting videoSetting = p.getVideoSetting();
-//        InputFileSetting commentSetting = p.getCommentSetting();
-        CommentGetInfo commentGetInfo = p.getCommentGetInfo();
-//        InputFileSetting tcommentSetting = p.getTcommentSetting();
-//        OutputFileSetting outputFileSetting = p.getOutputFileSetting();
-        Ffmpeg ffmpeg = p.getFfmpeg();
-
-        FfmpegOption newFfmpegOption = new FfmpegOption(ffmpeg.getFfmpegOption().getExtOption(), "", "", ff, "", false,
-                "", "", false);
-        InputFileSetting newVideoSetting = new InputFileSetting(new SFile(true, new File(video)), false, false, commentGetInfo, -1);
-        InputFileSetting newCommentSetting = new InputFileSetting(new SFile(true, new File(comm)), false, false, commentGetInfo, -1);
-        InputFileSetting newTcommentSetting = new InputFileSetting(new SFile(true, new File(tcomm)), false, false, commentGetInfo, -1);
-        OutputFileSetting newOutputFileSetting = new OutputFileSetting(new SFile(true, new File(output)), true, false,
-                true, true);
-        Ffmpeg newFfmpeg = new Ffmpeg(ffmpeg.getFfmpeg(), ffmpeg.getVhook(), newFfmpegOption, ffmpeg.isVhookDisabled(), ffmpeg.
-                getMaxNumOfComment(), ffmpeg.getFont(), ffmpeg.getFontIndex(), ffmpeg.getShadowIndex(), ffmpeg.
-                isShowConverting(), ffmpeg.isSelfAdjustFontSize(), ffmpeg.isCommentOpaque(), ffmpeg.getNgSetting());
-
-        p = new Profile(general, loginInfo, newVideoSetting, newCommentSetting, commentGetInfo, newTcommentSetting,
-                newOutputFileSetting, newFfmpeg);
-
-        return p;
+//        final String mail = "dmy";
+//        final String pass = "dmy";
+//        final String video = cmd.getOptionValue("file_video");
+//        final String comm = cmd.getOptionValue("file_comment");
+//        final String tcomm = cmd.getOptionValue("file_tcomment");
+//        final String output = cmd.getOptionValue("file_output");
+//        final String ff = cmd.getOptionValue("ffmpeg");
+//
+//        // TODO 後で実装
+////        SProperties setting = SProperties.loadSetting(mail, pass);
+////        Profile p = setting.toProfile();
+//        Profile p = null;
+//        GeneralSetting general = p.getGeneralSetting();
+//        LoginInfo loginInfo = p.getLoginInfo();
+////        InputFileSetting videoSetting = p.getVideoSetting();
+////        InputFileSetting commentSetting = p.getCommentSetting();
+//        CommentGetInfo commentGetInfo = p.getCommentGetInfo();
+////        InputFileSetting tcommentSetting = p.getTcommentSetting();
+////        OutputFileSetting outputFileSetting = p.getOutputFileSetting();
+//        Ffmpeg ffmpeg = p.getFfmpeg();
+//
+//        FfmpegOption newFfmpegOption = new FfmpegOption(ffmpeg.getFfmpegOption().getExtOption(), "", "", ff, "", false,
+//                "", "", false);
+//        InputFileSetting newVideoSetting = new InputFileSetting(new SFile(true, new File(video)), false, false, commentGetInfo, -1);
+//        InputFileSetting newCommentSetting = new InputFileSetting(new SFile(true, new File(comm)), false, false, commentGetInfo, -1);
+//        InputFileSetting newTcommentSetting = new InputFileSetting(new SFile(true, new File(tcomm)), false, false, commentGetInfo, -1);
+//        OutputFileSetting newOutputFileSetting = new OutputFileSetting(new SFile(true, new File(output)), true, false,
+//                true, true);
+//        Ffmpeg newFfmpeg = new Ffmpeg(ffmpeg.getFfmpeg(), ffmpeg.getVhook(), newFfmpegOption, ffmpeg.isVhookDisabled(), ffmpeg.
+//                getMaxNumOfComment(), ffmpeg.getFont(), ffmpeg.getFontIndex(), ffmpeg.getShadowIndex(), ffmpeg.
+//                isShowConverting(), ffmpeg.isSelfAdjustFontSize(), ffmpeg.isCommentOpaque(), ffmpeg.getNgSetting());
+//
+//        p = new Profile(general, loginInfo, newVideoSetting, newCommentSetting, commentGetInfo, newTcommentSetting,
+//                newOutputFileSetting, newFfmpeg);
+//
+//        return p;
+        return null;
     }
 
     /**
@@ -162,8 +163,11 @@ public class Prompt {
         String pass = args[1];
         String tag = args[2];
         String time = args.length < 4 ? "" : args[3];
-        SProperties setting = SProperties.loadSetting(mail, pass);
-        Converter conv = new Converter(tag, setting.toProfile(), TextProgressListener.EMPTY_LISTENER, new ConvertStopFlag(
+        // TODO
+//        SProperties setting = SProperties.loadSetting(mail, pass);
+//        Converter conv = new Converter(tag, setting.toProfile(), TextProgressListener.EMPTY_LISTENER, new ConvertStopFlag(
+//                ConvertStopFlag.StateChangeListener.EMPTY_LISTENER));
+        Converter conv = new Converter(tag, null/*この部分*/, TextProgressListener.EMPTY_LISTENER, new ConvertStopFlag(
                 ConvertStopFlag.StateChangeListener.EMPTY_LISTENER));
         System.out.println("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-");
         System.out.println("Saccubus on CUI");