/* This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the Do What The Fuck You Want * To Public License, Version 2, as published by Sam Hocevar. See * http://www.wtfpl.net/ for more details. */ #ifndef GLOBALCONSTANTS_H_INCLUDED #define GLOBALCONSTANTS_H_INCLUDED #include #include namespace GlobalConstants { struct optionsStruct {const unsigned int id; const std::string code; const std::string str;}; const std::string PROTOCOL_PREFIX = "gogdownloader://"; // Language constants const unsigned int LANGUAGE_EN = 1 << 0; const unsigned int LANGUAGE_DE = 1 << 1; const unsigned int LANGUAGE_FR = 1 << 2; const unsigned int LANGUAGE_PL = 1 << 3; const unsigned int LANGUAGE_RU = 1 << 4; const unsigned int LANGUAGE_CN = 1 << 5; const unsigned int LANGUAGE_CZ = 1 << 6; const unsigned int LANGUAGE_ES = 1 << 7; const unsigned int LANGUAGE_HU = 1 << 8; const unsigned int LANGUAGE_IT = 1 << 9; const unsigned int LANGUAGE_JP = 1 << 10; const unsigned int LANGUAGE_TR = 1 << 11; const unsigned int LANGUAGE_PT = 1 << 12; const unsigned int LANGUAGE_KO = 1 << 13; const unsigned int LANGUAGE_NL = 1 << 14; const unsigned int LANGUAGE_SV = 1 << 15; const unsigned int LANGUAGE_NO = 1 << 16; const unsigned int LANGUAGE_DA = 1 << 17; const unsigned int LANGUAGE_FI = 1 << 18; const unsigned int LANGUAGE_PT_BR = 1 << 19; const std::vector LANGUAGES = { { LANGUAGE_EN, "en", "English" }, { LANGUAGE_DE, "de", "German" }, { LANGUAGE_FR, "fr", "French" }, { LANGUAGE_PL, "pl", "Polish" }, { LANGUAGE_RU, "ru", "Russian" }, { LANGUAGE_CN, "cn", "Chinese" }, { LANGUAGE_CZ, "cz", "Czech" }, { LANGUAGE_ES, "es", "Spanish" }, { LANGUAGE_HU, "hu", "Hungarian" }, { LANGUAGE_IT, "it", "Italian" }, { LANGUAGE_JP, "jp", "Japanese" }, { LANGUAGE_TR, "tr", "Turkish" }, { LANGUAGE_PT, "pt", "Portuguese"}, { LANGUAGE_KO, "ko", "Korean" }, { LANGUAGE_NL, "nl", "Dutch" }, { LANGUAGE_SV, "sv", "Swedish" }, { LANGUAGE_NO, "no", "Norwegian" }, { LANGUAGE_DA, "da", "Danish" }, { LANGUAGE_FI, "fi", "Finnish" }, { LANGUAGE_PT_BR, "br", "Brazilian Portuguese" } }; // Platform constants const unsigned int PLATFORM_WINDOWS = 1 << 0; const unsigned int PLATFORM_MAC = 1 << 1; const unsigned int PLATFORM_LINUX = 1 << 2; const std::vector PLATFORMS = { { PLATFORM_WINDOWS, "win", "Windows" }, { PLATFORM_MAC, "mac", "Mac" }, { PLATFORM_LINUX, "linux", "Linux" } }; }; #endif // GLOBALCONSTANTS_H_INCLUDED