OSDN Git Service

0e164fb5c63563f44e739647a06d7a9d95b94f7d
[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     private final String backLogPoint;
18
19     /**
20      * @param file 対象ファイル.
21      * @param download ダウンロードする必要があればtrue, ローカルファイルを用いるのであればfalse.
22      * @param delete 変換後にファイルを削除するのであればtrue, 残したままにするのであればfalse.
23      */
24     public InputFileSetting(SFile file, boolean download, boolean delete, CommentGetInfo cominfo, String backLogPoint) {
25         this.file = file;
26         this.download = download;
27         this.delete = delete;
28         this.commentGetInfo = cominfo;
29         this.backLogPoint = backLogPoint;
30     }
31
32     @Override
33     public SFile getFile() {
34         return file;
35     }
36
37     @Override
38     public boolean isDownload() {
39         return download;
40     }
41
42     public boolean isDelete() {
43         return delete;
44     }
45
46     @Override
47     public boolean isSelfAdjustCommentNum() {
48         return commentGetInfo.isSelfAdjustCommentNum();
49     }
50
51     @Override
52     public int getBackComment() {
53         return commentGetInfo.getBackComment();
54     }
55
56     @Override
57     public boolean isReduceComment() {
58         return commentGetInfo.isReduceComment();
59     }
60
61     @Override
62     public String getBackLogPoint() {
63         return backLogPoint;
64     }
65 }