Ejemplo n.º 1
0
        /// <summary>
        /// Tries to find the newest version number of SeaMonkey.
        /// </summary>
        /// <returns>Returns a string containing the newest version number on success.
        /// Returns null, if an error occurred.</returns>
        public string determineNewestVersion()
        {
            var langs      = SeaMonkey.validLanguageCodes();
            var enumerator = langs.GetEnumerator();

            if (!enumerator.MoveNext())
            {
                return(null);
            }
            string    languageCode = enumerator.Current;
            SeaMonkey sm           = new SeaMonkey(languageCode, false);

            return(sm.determineNewestVersion());
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Logs a message about dropped language support for SeaMonkey.
        /// </summary>
        private void logLangSupportedDropped()
        {
            string message = "Language support for " + languageCode + " has been "
                             + "dropped in SeaMonkey 2.48, because the language is no longer"
                             + " updated for SeaMonkey. To recieve further updates switch "
                             + "to another, still supported language.";
            var langs      = SeaMonkey.validLanguageCodes();
            var enumerator = langs.GetEnumerator();

            if (enumerator.MoveNext())
            {
                var firstLangCode = enumerator.Current;
                var sm            = new SeaMonkey(firstLangCode, false);
                message += Environment.NewLine + "Supported languages of "
                           + "version " + sm.knownInfo().newestVersion + " of "
                           + "SeaMonkey are:";
                foreach (var lang in langs)
                {
                    message += Environment.NewLine + "    " + lang;
                } // foreach
            }     // if enumerator move was successfull
            logger.Warn(message);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Gets a list that contains one instance of each class that implements
        /// the ISoftware interface.
        /// </summary>
        /// <param name="opts">parsed command line options</param>
        /// <returns>Returns a list of all supported softwares.</returns>
        private static List <ISoftware> getUnfiltered(Options opts)
        {
            bool autoGetNewer = opts.autoGetNewer;
            var  result       = new List <ISoftware>()
            {
                new Audacity(autoGetNewer),
                new Calibre(autoGetNewer),
                new CCleaner(autoGetNewer),
                new CDBurnerXP(autoGetNewer),
                new CMake(autoGetNewer)
            };

            // Firefox (release channel)
            var languages = Firefox.validLanguageCodes();

            foreach (var lang in languages)
            {
                result.Add(new Firefox(lang, autoGetNewer));
            }

            // Firefox ESR
            languages = FirefoxESR.validLanguageCodes();
            foreach (var lang in languages)
            {
                result.Add(new FirefoxESR(lang, autoGetNewer));
            }

            // Firefox Developer Edition
            languages = FirefoxAurora.validLanguageCodes();
            foreach (var lang in languages)
            {
                result.Add(new FirefoxAurora(lang, autoGetNewer));
            }

            result.Add(new FileZilla(autoGetNewer));
            result.Add(new GIMP(autoGetNewer));
            result.Add(new Git(autoGetNewer));
            result.Add(new Inkscape(autoGetNewer));
            result.Add(new KeePass(autoGetNewer));
            result.Add(new LibreOffice(autoGetNewer));
            result.Add(new LibreOfficeHelpPackGerman(autoGetNewer));
            result.Add(new Mumble(autoGetNewer));
            result.Add(new NodeJS(autoGetNewer));
            result.Add(new NotepadPlusPlus(autoGetNewer));
            result.Add(new Opera(autoGetNewer));
            result.Add(new Pdf24Creator(autoGetNewer, opts.pdf24autoUpdate, opts.pdf24desktopIcons, opts.pdf24faxPrinter));
            result.Add(new Pidgin(autoGetNewer));
            result.Add(new Putty(autoGetNewer));

            // SeaMonkey
            languages = SeaMonkey.validLanguageCodes();
            foreach (var lang in languages)
            {
                result.Add(new SeaMonkey(lang, autoGetNewer));
            }

            // old SeaMonkey languages (available until SeaMonkey 2.46 and
            // dropped in SeaMonkey 2.48)
            languages = SeaMonkey246.validLanguageCodes();
            foreach (var lang in languages)
            {
                result.Add(new SeaMonkey246(lang, autoGetNewer));
            }

            result.Add(new SevenZip(autoGetNewer));

            // Thunderbird
            languages = Thunderbird.validLanguageCodes();
            foreach (var lang in languages)
            {
                result.Add(new Thunderbird(lang, autoGetNewer));
            }

            result.Add(new Transmission(autoGetNewer));
            result.Add(new VLC(autoGetNewer));
            result.Add(new WinSCP(autoGetNewer));
            return(result);
        }