代码拉取完成,页面将自动刷新
同步操作将从 Greedysky/TTKMusicplayer 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#ifndef MUSICGLOBAL_H
#define MUSICGLOBAL_H
/* =================================================
* This file is part of the TTK Music Player project
* Copyright (C) 2015 - 2018 Greedysky Studio
* 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 3 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, see <http://www.gnu.org/licenses/>.
================================================= */
#include <QMap>
#include <QSet>
#include <QVariant>
#include <QtCore/qglobal.h>
#ifdef Q_CC_GNU
# pragma GCC diagnostic ignored "-Wunused-function"
#endif
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
# define MUSIC_GREATER_NEW
# if QT_VERSION >= QT_VERSION_CHECK(5,2,0)
# define MUSIC_WINEXTRAS
# else
# define MUSIC_NO_WINEXTRAS
# endif
#else
# define MUSIC_NO_WINEXTRAS
#endif
#ifdef QT_DEBUG
# define MUSIC_DEBUG
#endif
//////////////////////////////////////
#ifdef __cplusplus
# define MUSIC_CAST
#endif
//////////////////////////////////////
//////////////////////////////////////
///cast
///
#ifdef MUSIC_CAST
# define MConst_cast(x,y) (const_cast< x >(y))
#else
# define MConst_cast(x,y) ((x)(y))
#endif
#ifdef MUSIC_CAST
# define MDynamic_cast(x,y) (dynamic_cast< x >(y))
#else
# define MDynamic_cast(x,y) ((x)(y))
#endif
#ifdef MUSIC_CAST
# define MReinterpret_cast(x,y) (reinterpret_cast< x >(y))
#else
# define MReinterpret_cast(x,y) ((x)(y))
#endif
#ifdef MUSIC_CAST
# define MStatic_cast(x,y) (static_cast< x >(y))
#else
# define MStatic_cast(x,y) ((x)(y))
#endif
#ifdef MUSIC_CAST
# define MObject_cast(x,y) (qobject_cast< x >(y))
#else
# define MObject_cast(x,y) (qobject_cast< x >(y))
#endif
//////////////////////////////////////
#define TTK_IN const &
#define TTK_OT &
#define TTK_RT const &
#define TTK_RD &
#define TTK_ERROR_STR "NaN"
#define TTK_STR_SPLITER "*|||*"
///////////////////////////////////////
#define DEFAULT_LEVEL_LOWER -1
#define DEFAULT_LEVEL_LOW 0
#define DEFAULT_LEVEL_NORMAL -999
#define DEFAULT_LEVEL_HIGH 999
#define DEFAULT_LEVEL_HIGHER 9999
///////////////////////////////////////
#define TTK_DECLARE_PTR(Class) \
public: \
using Class##Ptr = Class *; \
using Class##CPtr = const Class *;
#define TTK_DECLARE_GCN(Class) \
public: \
inline static QString getClassName() \
{ \
return #Class; \
}
#define TTK_DECLARE_MODULE(Class) \
public: \
TTK_DECLARE_PTR(Class) \
TTK_DECLARE_GCN(Class)
//////////////////////////////////////
#ifndef _MSC_VER
//gcc version less than 3.4.0
#if __GNUC__ <= 3 && __GNUC_MINOR__ <= 4
#define STRCAT(a, b) a##b
#else
#define STRCAT(a, b) a b
#endif
#else
#define STRCAT(a, b) a b
#endif
#define TTK_DECLARE_LISTS(Class) \
typedef QList<Class> Class##s;
#define TTK_DECLARE_FLAGS(Flags, Enum) \
typedef QFlags<Enum> Flags;
//////////////////////////////////////
#ifndef MUSIC_NAMESPACE
#define MUSIC_NAMESPACE MUSIC
#endif //MUSIC_NAMESPACE
#if QT_VERSION <= QT_VERSION_CHECK(4,6,0)
#define MUSIC_NO_NAMESPACE_SUPPORT
#endif
#ifndef MUSIC_NO_NAMESPACE_SUPPORT
#define MUSIC_BEGIN_NAMESPACE namespace MUSIC_NAMESPACE {
#define MUSIC_END_NAMESPACE }
#define MUSIC_USE_NAMESPACE using namespace ::MUSIC_NAMESPACE;
#else
#define MUSIC_BEGIN_NAMESPACE
#define MUSIC_END_NAMESPACE
#define MUSIC_USE_NAMESPACE
#endif //MUSIC_NAMESPACE_SUPPORT
//////////////////////////////////////
/*! @brief The namespace of the application object.
* @author Greedysky <greedysky@163.com>
*/
namespace MusicObject
{
typedef signed char MInt8; /* 8 bit signed */
typedef unsigned char MUint8; /* 8 bit unsigned */
typedef short MInt16; /* 16 bit signed */
typedef unsigned short MUint16; /* 16 bit unsigned */
typedef int MInt32; /* 32 bit signed */
typedef unsigned int MUint32; /* 32 bit unsigned */
typedef long long MInt64; /* 64 bit signed */
typedef unsigned long long MUint64; /* 64 bit unsigned */
///////////////////////////////////////
typedef double MDouble; /* double */
typedef float MFloat; /* float */
typedef bool MBool; /* bool */
///////////////////////////////////////
typedef QList<QVariant> MVariantList; /* variantlist */
typedef QList<QStringList> MStringLists; /* stringlists */
typedef QList<int> MIntList; /* intlist */
typedef QList<MIntList> MIntLists; /* intlists */
typedef QSet<QVariant> MVariantSet; /* variantset */
typedef QSet<int> MIntSet; /* intset */
typedef QSet<MIntSet> MIntSets; /* intsets */
typedef QMap<QVariant, QVariant> MVariantsMap; /* variantsmap */
typedef QMap<QString, QVariant> MStriantMap; /* stringVariantMap */
typedef QMap<QString, QString> MStringsMap; /* stringsMap */
typedef QMap<QString, QStringList> MStringsListMap; /* stringStrlistsMap */
typedef QMap<int, MIntList> MIntsListMap; /* intIntlistMap */
typedef QMap<qint64, QString> MIntStringMap; /* intStrMap */
typedef QMapIterator<QVariant, QVariant> MVariantsMapIterator; /* variantsmMapIterator */
typedef QMapIterator<QString, QVariant> MStriantMapIterator; /* stringVariantMapIterator */
typedef QMapIterator<QString, QString> MStringsMapIterator; /* stringsMapIterator */
typedef QMapIterator<QString, QStringList> MStringsListMapIterator; /* stringStrlistsMapIterator */
typedef QMapIterator<int, MIntList> MIntsListMapIterator; /* intIntlistMapIterator */
typedef QMapIterator<qint64, QString> MIntStringMapIterator; /* intStrMapIterator */
///////////////////////////////////////
}
#endif // MUSICGLOBAL_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。