/*
 *  Copyright (C) 2006-2019  Ronald Blankendaal
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */
package org.dbgl.constants;

import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import java.util.Properties;
import org.dbgl.util.searchengine.MobyGamesSearchEngine;
import org.dbgl.util.searchengine.PouetSearchEngine;
import org.dbgl.util.searchengine.WebSearchEngine;


public class Constants {

	public static final String PROGRAM_NAME_SHORT = "DBGL";

	public static final String PROGRAM_NAME_FULL = "DOSBox Game Launcher";

	public static final String PROGRAM_VERSION;

	static {
		Properties prop = new Properties();
		try {
			prop.load(Constants.class.getClassLoader().getResourceAsStream("version.properties"));
		} catch (IOException ex) {
			// ignore
		} finally {
			PROGRAM_VERSION = prop.getProperty("majorversion", "?") + '.' + prop.getProperty("minorversion", "?");
		}
	}

	public static final int RO_COLUMN_NAMES = 10;
	public static final int EDIT_COLUMN_NAMES_1 = 10;
	public static final int EDIT_COLUMN_NAMES_2 = 4;
	public static final int EDIT_COLUMN_NAMES = EDIT_COLUMN_NAMES_1 + EDIT_COLUMN_NAMES_2;
	public static final int STATS_COLUMN_NAMES = 8;

	public static final List<String> SUPPORTED_LANGUAGES = Arrays.asList("ar", "da", "de", "el", "en", "es", "es__Capitalizado", "fi", "fr", "it", "ko", "nl", "pl", "pt_BR", "ru", "sl", "sv", "zh",
		"zh_TW");

	public static final List<WebSearchEngine> WEBSEARCH_ENGINES = Arrays.asList(MobyGamesSearchEngine.getInstance(), PouetSearchEngine.getInstance());

	public static final String DBCONFWS = "DBConfWS";

}
