2010-11-06 23:04:47 +01:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// LameXP - Audio Encoder Front-End
|
2015-01-01 18:06:21 +01:00
|
|
|
// Copyright (C) 2004-2015 LoRd_MuldeR <MuldeR2@GMX.de>
|
2010-11-06 23:04:47 +01:00
|
|
|
//
|
|
|
|
// 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
|
2013-10-23 20:56:57 +02:00
|
|
|
// (at your option) any later version, but always including the *additional*
|
|
|
|
// restrictions defined in the "License.txt" file.
|
2010-11-06 23:04:47 +01:00
|
|
|
//
|
|
|
|
// 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.,
|
|
|
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
//
|
|
|
|
// http://www.gnu.org/licenses/gpl-2.0.txt
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2014-12-19 23:49:11 +01:00
|
|
|
#ifdef _MSC_VER
|
2012-10-13 12:36:41 +02:00
|
|
|
#define _CRT_RAND_S
|
2014-12-19 23:49:11 +01:00
|
|
|
#endif
|
|
|
|
|
2013-11-03 23:43:21 +01:00
|
|
|
#include <cstdlib>
|
2014-12-19 23:49:11 +01:00
|
|
|
#include <QtGlobal>
|
2014-12-20 23:44:43 +01:00
|
|
|
#include <QString>
|
2012-04-06 22:24:05 +02:00
|
|
|
|
2013-11-03 23:43:21 +01:00
|
|
|
//Forward declarations
|
2010-11-06 23:04:47 +01:00
|
|
|
class QDate;
|
2014-12-19 23:49:11 +01:00
|
|
|
class QStringList;
|
2011-12-26 21:02:55 +01:00
|
|
|
class QIcon;
|
2010-12-28 21:26:16 +01:00
|
|
|
class LockedFile;
|
2010-11-06 23:04:47 +01:00
|
|
|
|
2013-11-03 23:43:21 +01:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// GLOBAL FUNCTIONS
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
2010-11-06 23:04:47 +01:00
|
|
|
|
2014-12-19 23:49:11 +01:00
|
|
|
/*
|
|
|
|
* Tools Support
|
|
|
|
*/
|
2014-12-20 23:44:43 +01:00
|
|
|
void lamexp_tools_register(const QString &toolName, LockedFile *const file, const quint32 &version, const QString &tag = QString());
|
|
|
|
bool lamexp_tools_check (const QString &toolName);
|
|
|
|
const QString& lamexp_tools_lookup (const QString &toolName);
|
|
|
|
const quint32& lamexp_tools_version (const QString &toolName, QString *const tagOut = NULL);
|
2014-12-19 23:49:11 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Version getters
|
|
|
|
*/
|
|
|
|
unsigned int lamexp_version_major (void);
|
|
|
|
unsigned int lamexp_version_minor (void);
|
|
|
|
unsigned int lamexp_version_build (void);
|
|
|
|
unsigned int lamexp_version_confg (void);
|
|
|
|
const char* lamexp_version_release (void);
|
|
|
|
bool lamexp_version_portable (void);
|
|
|
|
bool lamexp_version_demo (void);
|
2014-12-20 23:44:43 +01:00
|
|
|
const QDate& lamexp_version_expires (void);
|
2014-12-19 23:49:11 +01:00
|
|
|
unsigned int lamexp_toolver_neroaac (void);
|
|
|
|
unsigned int lamexp_toolver_fhgaacenc(void);
|
2015-04-24 20:36:05 +02:00
|
|
|
unsigned int lamexp_toolver_fdkaacenc(void);
|
2014-12-19 23:49:11 +01:00
|
|
|
unsigned int lamexp_toolver_qaacenc (void);
|
|
|
|
unsigned int lamexp_toolver_coreaudio(void);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* URL getters
|
|
|
|
*/
|
2013-11-03 23:43:21 +01:00
|
|
|
const char *lamexp_website_url(void);
|
2014-12-19 23:49:11 +01:00
|
|
|
const char *lamexp_mulders_url(void);
|
|
|
|
const char *lamexp_support_url(void);
|
|
|
|
const char *lamexp_tracker_url(void);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Misc Functions
|
|
|
|
*/
|
|
|
|
const QIcon& lamexp_app_icon(void);
|
2014-12-20 23:44:43 +01:00
|
|
|
const QString lamexp_version2string(const QString &pattern, unsigned int version, const QString &defaultText, const QString &tag = QString());
|
2013-10-29 02:05:43 +01:00
|
|
|
|
2013-11-03 23:43:21 +01:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// HELPER MACROS
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
2010-11-07 16:32:54 +01:00
|
|
|
|
2012-04-18 22:53:07 +02:00
|
|
|
#define NOBR(STR) (QString("<nobr>%1</nobr>").arg((STR)).replace("-", "−"))
|