OSDN Git Service

過去ログ取得時点をConverterコンストラクタ引数からProfileに移動
[coroid/inqubus.git] / frontend / src / saccubus / properties / InputCommentSetting.java
index 6e8db98..69b7eb4 100644 (file)
@@ -26,14 +26,19 @@ public class InputCommentSetting extends InputFileSetting<Boolean> {
     private static final String PROP_COMMENT_FILE = "CommentFile";
     private final boolean selfAdjustNumOfComment;
     private final int numOfComment;
+    private final boolean reduceComment;
+    private final String backLogPoint;
 
     public InputCommentSetting(boolean download, boolean autoNaming, File folder, File file, boolean deleteAfterConvert,
-            boolean adjust, int numOfCom) {
+            boolean adjust, int numOfCom, boolean reduceComment, String backLogPoint) {
         super(Boolean.valueOf(download), autoNaming, folder, file, deleteAfterConvert);
         this.selfAdjustNumOfComment = adjust;
         this.numOfComment = numOfCom;
+        this.reduceComment = reduceComment;
+        this.backLogPoint = backLogPoint;
     }
 
+    @Override
     public void save(Properties prop) {
         prop.setProperty(PROP_SAVE_COMMENT, getProcessKind().toString());
         prop.setProperty(PROP_DEL_COMMENT_AFTER_CONV, Boolean.toString(isDeleteAfterConvert()));
@@ -56,7 +61,7 @@ public class InputCommentSetting extends InputFileSetting<Boolean> {
 
         return new InputCommentSetting(download, autoNaming, new File(folder), new File(file), delete,
                 adjustNumOfComment,
-                Integer.parseInt(numOfComment));
+                Integer.parseInt(numOfComment), false, "");
     }
 
     public final boolean isSelfAdjustNumOfComment() {
@@ -66,4 +71,12 @@ public class InputCommentSetting extends InputFileSetting<Boolean> {
     public final int getNumOfComment() {
         return numOfComment;
     }
+
+    public boolean isReduceComment(){
+        return reduceComment;
+    }
+
+    public String getBackLogPoint() {
+        return backLogPoint;
+    }
 }