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