Version 2.0.0: update sources
[jvcard.git] / src / be / nikiroo / jvcard / resources / RemotingOption.java
CommitLineData
f06c8100 1package be.nikiroo.jvcard.resources;
e119a1c1
NR
2
3import java.io.IOException;
4import java.io.Writer;
5
f06c8100
NR
6import be.nikiroo.utils.resources.Meta;
7import be.nikiroo.utils.resources.Meta.Format;
e119a1c1
NR
8
9public enum RemotingOption {
f06c8100 10 @Meta(format = Format.DIRECTORY, description = "when starting as a jVCard remote server, where to look for data")
e119a1c1
NR
11 SERVER_DATA_PATH, //
12
f06c8100 13 @Meta(format = Format.DIRECTORY, description = "when loading \"jvcard://\" links, where to save cache files")
e119a1c1 14 CLIENT_CACHE_DIR, //
f06c8100 15 @Meta(format = Format.BOOLEAN, description = "Automatically synchronise remote cards")
e119a1c1
NR
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}