OSDN Git Service

7870bb85dbd65a7b3b99eee6a840a0bf3eaacf92
[coroid/inqubus.git] / frontend / src / saccubus / converter / classic / profile / InputFileSetting.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  *
9  * @author yuki
10  */
11 public class InputFileSetting implements yukihane.saccubus.converter.profile.InputFileSetting, VideoProfile, CommentProfile {
12
13     private final SFile file;
14     private final boolean download;
15     private final boolean delete;
16     private final CommentGetInfo commentGetInfo;
17
18     /**
19      * @param file 対象ファイル.
20      * @param download ダウンロードする必要があればtrue, ローカルファイルを用いるのであればfalse.
21      * @param delete 変換後にファイルを削除するのであればtrue, 残したままにするのであればfalse.
22      */
23     public InputFileSetting(SFile file, boolean download, boolean delete, CommentGetInfo cominfo) {
24         this.file = file;
25         this.download = download;
26         this.delete = delete;
27         this.commentGetInfo = cominfo;
28     }
29
30     @Override
31     public SFile getFile() {
32         return file;
33     }
34
35     @Override
36     public boolean isDownload() {
37         return download;
38     }
39
40     public boolean isDelete() {
41         return delete;
42     }
43
44     @Override
45     public boolean isSelfAdjustCommentNum() {
46         return commentGetInfo.isSelfAdjustCommentNum();
47     }
48
49     @Override
50     public int getBackComment() {
51         return commentGetInfo.getBackComment();
52     }
53
54     @Override
55     public boolean isReduceComment() {
56         return commentGetInfo.isReduceComment();
57     }
58 }