// Path: src/main/java/de/idrinth/waraddonclient/Main.java
// public final class Main {
// 
//     private Main() {
//         //not to be used
//     }
// 
//     public static void main(String[] args) {
//         get(args).run();
//     }
// 
//     private static BaseMain get(String[] args) {
//         return args.length > 0 ? new CliMain(args) : new GuiMain();
//     }
// }


import de.idrinth.waraddonclient.Main;
import java.awt.Dimension;
import java.awt.Point;
import java.io.File;
import java.io.IOException;
import java.net.URISyntaxException;
import java.nio.charset.StandardCharsets;
import java.util.Objects;
import java.util.prefs.BackingStoreException;
import java.util.prefs.Preferences;
import org.apache.commons.io.IOUtils;

package de.idrinth.waraddonclient.service;


public class Config {

    private static final String KEY_WAR_PATH = "war-path";

    private static final String KEY_THEME = "theme";

    private static final String KEY_LANGUAGE = "language";

    private static final String KEY_WINDOW_LOCATION_X = "window-x";

    private static final String KEY_WINDOW_LOCATION_Y = "window-y";

    private static final String KEY_WINDOW_WIDTH = "window-width";

    private static final String KEY_WINDOW_HEIGHT = "window-height";

    private static final String KEY_PROGRESS_LOCATION_X = "progress-x";

    private static final String KEY_PROGRESS_LOCATION_Y = "progress-y";

    private static final String KEY_PROGRESS_WIDTH = "progress-width";

    private static final String KEY_PROGRESS_HEIGHT = "progress-height";

    private static final String KEY_AUTO_CLOSE = "auto-close";

    private static final String KEY_PREFIX_ADDON_UPLOAD = "addon-upload-";

    private static final String LOG_FILE = "waraddonclient.log";

    private static final String LINUX_LOG_FILE = "/var/log/waraddonclient.log";

    private static final String ADDON_FOLDER = "/Interface/AddOns/";

    private static final String LOGS = "/logs/";

    private static final String BASE_URL = "https://tools.idrinth.de/";

    private static final String VERSION_FILE = "/self.idrinth";
    
    private static final String AUTO_BACKUP_ON_UPDATE_ALL = "auto-update.on.update-all";


// Path: src/main/java/de/idrinth/waraddonclient/Main.java
// public final class Main {
// 
//     private Main() {
//         //not to be used
//     }
// 
//     public static void main(String[] args) {
//         get(args).run();
//     }
// 
//     private static BaseMain get(String[] args) {
//         return args.length > 0 ? new CliMain(args) : new GuiMain();
//     }
// }


// Path: src/main/java/de/idrinth/waraddonclient/service/Config.java
import de.idrinth.waraddonclient.Main;
import java.awt.Dimension;
import java.awt.Point;
import java.io.File;
import java.io.IOException;
import java.net.URISyntaxException;
import java.nio.charset.StandardCharsets;
import java.util.Objects;
import java.util.prefs.BackingStoreException;
import java.util.prefs.Preferences;
import org.apache.commons.io.IOUtils;

package de.idrinth.waraddonclient.service;


public class Config {

    private static final String KEY_WAR_PATH = "war-path";

    private static final String KEY_THEME = "theme";

    private static final String KEY_LANGUAGE = "language";

    private static final String KEY_WINDOW_LOCATION_X = "window-x";

    private static final String KEY_WINDOW_LOCATION_Y = "window-y";

    private static final String KEY_WINDOW_WIDTH = "window-width";

    private static final String KEY_WINDOW_HEIGHT = "window-height";

    private static final String KEY_PROGRESS_LOCATION_X = "progress-x";

    private static final String KEY_PROGRESS_LOCATION_Y = "progress-y";

    private static final String KEY_PROGRESS_WIDTH = "progress-width";

    private static final String KEY_PROGRESS_HEIGHT = "progress-height";

    private static final String KEY_AUTO_CLOSE = "auto-close";

    private static final String KEY_PREFIX_ADDON_UPLOAD = "addon-upload-";

    private static final String LOG_FILE = "waraddonclient.log";

    private static final String LINUX_LOG_FILE = "/var/log/waraddonclient.log";

    private static final String ADDON_FOLDER = "/Interface/AddOns/";

    private static final String LOGS = "/logs/";

    private static final String BASE_URL = "https://tools.idrinth.de/";

    private static final String VERSION_FILE = "/self.idrinth";
    
    private static final String AUTO_BACKUP_ON_UPDATE_ALL = "auto-update.on.update-all";


    private final Preferences prefs =  Preferences.userNodeForPackage(Main.class);
