Commit | Line | Data |
---|---|---|
e119a1c1 NR |
1 | package be.nikiroo.jvcard.resources.enums; |
2 | ||
3 | import java.io.IOException; | |
4 | import java.io.Writer; | |
5 | ||
6 | import be.nikiroo.jvcard.resources.Meta; | |
7 | import be.nikiroo.jvcard.resources.Bundles.Bundle; | |
8 | ||
9 | public enum RemotingOption { | |
10 | @Meta(what = "", where = "Server", format = "directory", info = "when starting as a jVCard remote server, where to look for data") | |
11 | SERVER_DATA_PATH, // | |
12 | ||
13 | @Meta(what = "", where = "Client", format = "directory", info = "when loading \"jvcard://\" links, where to save cache files") | |
14 | CLIENT_CACHE_DIR, // | |
15 | @Meta(what = "", where = "Client", format = "TRUE or FALSE", info = "Automatically synchronise remote cards") | |
16 | CLIENT_AUTO_SYNC, // | |
17 | ||
18 | ; | |
19 | ||
20 | /** | |
21 | * Write the header found in the configuration <tt>.properties</tt> file of | |
22 | * this {@link Bundle}. | |
23 | * | |
24 | * @param writer | |
25 | * the {@link Writer} to write the header in | |
26 | * | |
27 | * @throws IOException | |
28 | * in case of IO error | |
29 | */ | |
30 | static public void writeHeader(Writer writer) throws IOException { | |
31 | writer.write("# Remote configuration (client and server)\n"); | |
32 | writer.write("#\n"); | |
33 | } | |
34 | } |