OSDN Git Service

検索対象ディレクトリコンフィグ追加
authoryukihane <yukihane.feather@gmail.com>
Fri, 2 Sep 2011 00:18:06 +0000 (09:18 +0900)
committeryukihane <yukihane.feather@gmail.com>
Fri, 9 Sep 2011 11:38:47 +0000 (20:38 +0900)
frontend/src/yukihane/inqubus/Config.java

index 4940c2e..fa84945 100644 (file)
@@ -433,6 +433,31 @@ public enum Config {
     }
 
     /*
+     * 検索
+     */
+    private static final String SEARCH_VIDEO = "search.video";
+
+    @SuppressWarnings("unchecked")
+    public List<String> getSearchVideoDirs() {
+        return config.getList(SEARCH_VIDEO, new ArrayList<String>(0));
+    }
+
+    public void setSearchVideoDirs(List<String> s) {
+        config.setProperty(SEARCH_VIDEO, s);
+    }
+
+    private static final String SEARCH_COMMENT = "search.comment";
+
+    @SuppressWarnings("unchecked")
+    public List<String> getSearchCommentDirs() {
+        return config.getList(SEARCH_COMMENT, new ArrayList<String>(0));
+    }
+
+    public void setSearchCommentDirs(List<String> s) {
+        config.setProperty(SEARCH_COMMENT, s);
+    }
+
+    /*
      * システム
      */
     private static final String SYSTEM_DOWNLOAD_THREAD = "system.download.thread";