1 ///////////////////////////////////////////////////////////////////////////////
2 // LameXP - Audio Encoder Front-End
3 // Copyright (C) 2004-2014 LoRd_MuldeR <MuldeR2@GMX.de>
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version, but always including the *additional*
9 // restrictions defined in the "License.txt" file.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License along
17 // with this program; if not, write to the Free Software Foundation, Inc.,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 // http://www.gnu.org/licenses/gpl-2.0.txt
21 ///////////////////////////////////////////////////////////////////////////////
28 //Forward declarations
41 extern const char* LAMEXP_DEFAULT_LANGID;
42 extern const char* LAMEXP_DEFAULT_TRANSLATION;
44 ///////////////////////////////////////////////////////////////////////////////
46 ///////////////////////////////////////////////////////////////////////////////
48 const QIcon &lamexp_app_icon(void);
49 QStringList lamexp_available_codepages(bool noAliases = true);
50 bool lamexp_check_tool(const QString &toolName);
51 void lamexp_finalization(void);
52 int lamexp_init_ipc(void);
53 bool lamexp_install_translator(const QString &language);
54 bool lamexp_install_translator_from_file(const QString &qmFile);
55 void lamexp_ipc_read(unsigned int *command, char* message, size_t buffSize);
56 void lamexp_ipc_send(unsigned int command, const char* message);
57 const QString lamexp_lookup_tool(const QString &toolName);
58 const char *lamexp_mulders_url(void);
59 bool lamexp_portable_mode(void);
60 QStringList lamexp_query_translations(void);
61 void lamexp_register_tool(const QString &toolName, LockedFile *file, unsigned int version = 0, const QString *tag = NULL);
62 const char *lamexp_support_url(void);
63 unsigned int lamexp_tool_version(const QString &toolName, QString *tag = NULL);
64 unsigned int lamexp_toolver_coreaudio(void);
65 unsigned int lamexp_toolver_fhgaacenc(void);
66 unsigned int lamexp_toolver_neroaac(void);
67 unsigned int lamexp_toolver_qaacenc(void);
68 const char *lamexp_tracker_url(void);
69 unsigned int lamexp_translation_country(const QString &langId);
70 bool lamexp_translation_init(void);
71 QString lamexp_translation_name(const QString &language);
72 bool lamexp_translation_register(const QString &langId, const QString &qmFile, const QString &langName, unsigned int &systemId, unsigned int &country);
73 unsigned int lamexp_translation_sysid(const QString &langId);
74 const QString lamexp_version2string(const QString &pattern, unsigned int version, const QString &defaultText, const QString *tag = NULL);
75 unsigned int lamexp_version_build(void);
76 unsigned int lamexp_version_confg(void);
77 bool lamexp_version_demo(void);
78 QDate lamexp_version_expires(void);
79 unsigned int lamexp_version_major(void);
80 unsigned int lamexp_version_minor(void);
81 const char *lamexp_version_release(void);
82 const char *lamexp_website_url(void);
84 ///////////////////////////////////////////////////////////////////////////////
86 ///////////////////////////////////////////////////////////////////////////////
88 #define NOBR(STR) (QString("<nobr>%1</nobr>").arg((STR)).replace("-", "−"))