OSDN Git Service

過去ログ取得時点をConverterコンストラクタ引数からProfileに移動
[coroid/inqubus.git] / frontend / src / saccubus / converter / classic / profile / InputFileSetting.java
index d98df20..0e164fb 100644 (file)
@@ -1,31 +1,40 @@
 /* $Id$ */
 package saccubus.converter.classic.profile;
 
+import yukihane.saccubus.converter.profile.CommentProfile;
+import yukihane.saccubus.converter.profile.VideoProfile;
+
 /**
  *
  * @author yuki
  */
-public class InputFileSetting implements yukihane.saccubus.converter.profile.InputFileSetting {
+public class InputFileSetting implements yukihane.saccubus.converter.profile.InputFileSetting, VideoProfile, CommentProfile {
 
     private final SFile file;
     private final boolean download;
     private final boolean delete;
+    private final CommentGetInfo commentGetInfo;
+    private final String backLogPoint;
 
     /**
      * @param file 対象ファイル.
      * @param download ダウンロードする必要があればtrue, ローカルファイルを用いるのであればfalse.
      * @param delete 変換後にファイルを削除するのであればtrue, 残したままにするのであればfalse.
      */
-    public InputFileSetting(SFile file, boolean download, boolean delete) {
+    public InputFileSetting(SFile file, boolean download, boolean delete, CommentGetInfo cominfo, String backLogPoint) {
         this.file = file;
         this.download = download;
         this.delete = delete;
+        this.commentGetInfo = cominfo;
+        this.backLogPoint = backLogPoint;
     }
 
+    @Override
     public SFile getFile() {
         return file;
     }
 
+    @Override
     public boolean isDownload() {
         return download;
     }
@@ -33,5 +42,24 @@ public class InputFileSetting implements yukihane.saccubus.converter.profile.Inp
     public boolean isDelete() {
         return delete;
     }
-}
 
+    @Override
+    public boolean isSelfAdjustCommentNum() {
+        return commentGetInfo.isSelfAdjustCommentNum();
+    }
+
+    @Override
+    public int getBackComment() {
+        return commentGetInfo.getBackComment();
+    }
+
+    @Override
+    public boolean isReduceComment() {
+        return commentGetInfo.isReduceComment();
+    }
+
+    @Override
+    public String getBackLogPoint() {
+        return backLogPoint;
+    }
+}