OSDN Git Service

プロファイルクラス名を変更し保持する情報を再考
[coroid/inqubus.git] / frontend / src / saccubus / worker / classic / profile / Profile.java
1 /* $Id$ */
2 package saccubus.worker.classic.profile;
3
4 import saccubus.worker.profile.CommentProfile;
5 import saccubus.worker.profile.VideoProfile;
6
7 /**
8  * Converterに処理させるための設定.
9  * @author yuki
10  */
11 public class Profile implements saccubus.worker.profile.DownloadProfile {
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     public OutputFileSetting getOutputFileSetting() {
66         return outputFileSetting;
67     }
68
69     public CommentGetInfo getCommentGetInfo() {
70         return commentGetInfo;
71     }
72
73     public boolean needsConvert() {
74         return getOutputFileSetting().isConvert();
75     }
76
77     @Override
78     public GeneralSetting getGeneralSetting() {
79         return generalSetting;
80     }
81 }