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     public InputFileSetting getTcommentSetting() {
62         return tcommentSetting;
63     }
64
65     @Override
66     public OutputFileSetting getOutputFileSetting() {
67         return outputFileSetting;
68     }
69
70     public CommentGetInfo getCommentGetInfo() {
71         return commentGetInfo;
72     }
73
74     public boolean needsConvert() {
75         return getOutputFileSetting().isConvert();
76     }
77
78     @Override
79     public Ffmpeg getFfmpeg() {
80         return ffmpeg;
81     }
82
83     @Override
84     public GeneralSetting getGeneralSetting() {
85         return generalSetting;
86     }
87 }