OSDN Git Service

インタフェース変更: 入力コメント設定
authoryukihane <yukihane.feather@gmail.com>
Fri, 19 Aug 2011 21:57:46 +0000 (06:57 +0900)
committeryukihane <yukihane.feather@gmail.com>
Fri, 19 Aug 2011 21:57:46 +0000 (06:57 +0900)
frontend/src/saccubus/converter/classic/profile/InputFileSetting.java
frontend/src/saccubus/converter/classic/profile/Profile.java
frontend/src/yukihane/saccubus/converter/profile/CommentProfile.java [new file with mode: 0644]
frontend/src/yukihane/saccubus/converter/profile/Profile.java

index d98df20..a7e7d2f 100644 (file)
@@ -1,11 +1,14 @@
 /* $Id$ */
 package saccubus.converter.classic.profile;
 
 /* $Id$ */
 package saccubus.converter.classic.profile;
 
+import yukihane.saccubus.converter.profile.CommentProfile;
+import yukihane.saccubus.converter.profile.VideoProfile;
+
 /**
  *
  * @author yuki
  */
 /**
  *
  * @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 SFile file;
     private final boolean download;
@@ -34,4 +37,3 @@ public class InputFileSetting implements yukihane.saccubus.converter.profile.Inp
         return delete;
     }
 }
         return delete;
     }
 }
-
index 82061b2..3143ddf 100644 (file)
@@ -1,6 +1,9 @@
 /* $Id$ */
 package saccubus.converter.classic.profile;
 
 /* $Id$ */
 package saccubus.converter.classic.profile;
 
+import yukihane.saccubus.converter.profile.CommentProfile;
+import yukihane.saccubus.converter.profile.VideoProfile;
+
 /**
  * Converterに処理させるための設定.
  * @author yuki
 /**
  * Converterに処理させるための設定.
  * @author yuki
@@ -9,8 +12,8 @@ public class Profile implements yukihane.saccubus.converter.profile.Profile {
 
     private final GeneralSetting generalSetting;
     private final LoginInfo loginInfo;
 
     private final GeneralSetting generalSetting;
     private final LoginInfo loginInfo;
-    private final InputFileSetting videoSetting;
-    private final InputFileSetting commentSetting;
+    private final VideoProfile videoSetting;
+    private final CommentProfile commentSetting;
     private final CommentGetInfo commentGetInfo;
     private final InputFileSetting tcommentSetting;
     private final OutputFileSetting outputFileSetting;
     private final CommentGetInfo commentGetInfo;
     private final InputFileSetting tcommentSetting;
     private final OutputFileSetting outputFileSetting;
@@ -19,8 +22,8 @@ public class Profile implements yukihane.saccubus.converter.profile.Profile {
     public Profile(
             GeneralSetting generalSetting,
             LoginInfo loginInfo,
     public Profile(
             GeneralSetting generalSetting,
             LoginInfo loginInfo,
-            InputFileSetting videoSetting,
-            InputFileSetting commentSetting,
+            VideoProfile videoSetting,
+            CommentProfile commentSetting,
             CommentGetInfo commentGetInfo,
             InputFileSetting tcommentSetting,
             OutputFileSetting outputFileSetting,
             CommentGetInfo commentGetInfo,
             InputFileSetting tcommentSetting,
             OutputFileSetting outputFileSetting,
@@ -46,12 +49,12 @@ public class Profile implements yukihane.saccubus.converter.profile.Profile {
     }
 
     @Override
     }
 
     @Override
-    public InputFileSetting getVideoSetting() {
+    public VideoProfile getVideoSetting() {
         return videoSetting;
     }
 
     @Override
         return videoSetting;
     }
 
     @Override
-    public InputFileSetting getCommentSetting() {
+    public CommentProfile getCommentSetting() {
         return commentSetting;
     }
 
         return commentSetting;
     }
 
diff --git a/frontend/src/yukihane/saccubus/converter/profile/CommentProfile.java b/frontend/src/yukihane/saccubus/converter/profile/CommentProfile.java
new file mode 100644 (file)
index 0000000..b21d876
--- /dev/null
@@ -0,0 +1,8 @@
+package yukihane.saccubus.converter.profile;
+
+/**
+ *
+ * @author yuki
+ */
+public interface CommentProfile extends InputFileSetting {
+}
index c9027e6..3442f8b 100644 (file)
@@ -10,9 +10,9 @@ public interface Profile {
 
     ProxyProfile getProxySetting();
 
 
     ProxyProfile getProxySetting();
 
-    InputFileSetting getVideoSetting();
+    VideoProfile getVideoSetting();
 
 
-    InputFileSetting getCommentSetting();
+    CommentProfile getCommentSetting();
 
     InputFileSetting getTcommentSetting();
 
 
     InputFileSetting getTcommentSetting();