OSDN Git Service

d5039125403006a97e90da3348b86cdef7f074e1
[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     @Override
71     public CommentGetInfo getCommentGetInfo() {
72         return commentGetInfo;
73     }
74
75     @Override
76     public boolean needsConvert() {
77         return getOutputFileSetting().isConvert();
78     }
79
80     @Override
81     public Ffmpeg getFfmpeg() {
82         return ffmpeg;
83     }
84
85     @Override
86     public GeneralSetting getGeneralSetting() {
87         return generalSetting;
88     }
89 }