OSDN Git Service

インタフェース変更: 入力コメント設定
[coroid/inqubus.git] / frontend / src / saccubus / converter / classic / profile / Profile.java
1 /* $Id$ */
2 package saccubus.converter.classic.profile;
3
4 import yukihane.saccubus.converter.profile.CommentProfile;
5 import yukihane.saccubus.converter.profile.VideoProfile;
6
7 /**
8  * Converterに処理させるための設定.
9  * @author yuki
10  */
11 public class Profile implements yukihane.saccubus.converter.profile.Profile {
12
13     private final GeneralSetting generalSetting;
14     private final LoginInfo loginInfo;
15     private final VideoProfile videoSetting;
16     private final CommentProfile commentSetting;
17     private final CommentGetInfo commentGetInfo;
18     private final InputFileSetting tcommentSetting;
19     private final OutputFileSetting outputFileSetting;
20     private final Ffmpeg ffmpeg;
21
22     public Profile(
23             GeneralSetting generalSetting,
24             LoginInfo loginInfo,
25             VideoProfile videoSetting,
26             CommentProfile commentSetting,
27             CommentGetInfo commentGetInfo,
28             InputFileSetting tcommentSetting,
29             OutputFileSetting outputFileSetting,
30             Ffmpeg ffmpeg) {
31         this.generalSetting = generalSetting;
32         this.loginInfo = loginInfo;
33         this.videoSetting = videoSetting;
34         this.commentSetting = commentSetting;
35         this.commentGetInfo = commentGetInfo;
36         this.tcommentSetting = tcommentSetting;
37         this.outputFileSetting = outputFileSetting;
38         this.ffmpeg = ffmpeg;
39     }
40
41     @Override
42     public LoginInfo getLoginInfo() {
43         return loginInfo;
44     }
45
46     @Override
47     public Proxy getProxySetting(){
48         return loginInfo.getProxy();
49     }
50
51     @Override
52     public VideoProfile getVideoSetting() {
53         return videoSetting;
54     }
55
56     @Override
57     public CommentProfile getCommentSetting() {
58         return commentSetting;
59     }
60
61     @Override
62     public InputFileSetting getTcommentSetting() {
63         return tcommentSetting;
64     }
65
66     @Override
67     public OutputFileSetting getOutputFileSetting() {
68         return outputFileSetting;
69     }
70
71     @Override
72     public CommentGetInfo getCommentGetInfo() {
73         return commentGetInfo;
74     }
75
76     @Override
77     public boolean needsConvert() {
78         return getOutputFileSetting().isConvert();
79     }
80
81     @Override
82     public Ffmpeg getFfmpeg() {
83         return ffmpeg;
84     }
85
86     @Override
87     public GeneralSetting getGeneralSetting() {
88         return generalSetting;
89     }
90 }