TTKMusicPlayer
4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The namespace of the process utils. More...
Namespaces | |
Algorithm | |
Codec | |
Core | |
File | |
Image | |
Number | |
String | |
TTKQmmp | |
UI | |
Url | |
Widget | |
Classes | |
struct | IndexProperty |
The class of the index property. More... | |
struct | MusicArtistProperty |
The class of the music artist property. More... | |
struct | MusicSongInformation |
The class of the music song information. More... | |
struct | MusicSongProperty |
The class of the music song property. More... | |
Typedefs | |
template<typename T > | |
using | remove_cvr = typename std::remove_cv< typename std::remove_reference< T >::type >::type |
Functions | |
template<typename _Tp > | |
constexpr const _Tp & | min (const _Tp &a, const _Tp &b) |
template<typename _Tp > | |
constexpr const _Tp & | max (const _Tp &a, const _Tp &b) |
TTK_MODULE_EXPORT void | killProcessByName (const QString &process) |
TTK_MODULE_EXPORT void | killProcessByName (const QStringList &processes) |
TTK_MODULE_EXPORT void | makeUserAgentHeader (QNetworkRequest *request, const QByteArray &data={}) |
TTK_MODULE_EXPORT void | makeContentTypeHeader (QNetworkRequest *request, const QByteArray &data={}) |
TTK_MODULE_EXPORT qint64 | fetchFileSizeByUrl (const QString &url) |
TTK_MODULE_EXPORT void | setSslConfiguration (QNetworkRequest *request, QSslSocket::PeerVerifyMode mode=QSslSocket::VerifyNone) |
TTK_MODULE_EXPORT QByteArray | syncNetworkQueryForGet (QNetworkRequest *request) |
TTK_MODULE_EXPORT QByteArray | syncNetworkQueryForPost (QNetworkRequest *request, const QByteArray &data) |
TTK_MODULE_EXPORT QByteArray | syncNetworkQueryForPut (QNetworkRequest *request, const QByteArray &data) |
TTK_MODULE_EXPORT QByteArray | syncNetworkQueryForPatch (QNetworkRequest *request, const QByteArray &data) |
template<typename T , typename... Args> | |
TTKAny | make_any (Args &&...args) |
template<typename T , typename _TYPE = remove_cvr<T>> | |
_TYPE | any_cast (const TTKAny &other) |
template<typename T , typename _TYPE = remove_cvr<T>> | |
_TYPE | any_cast (TTKAny &other) |
template<typename T , typename _TYPE = remove_cvr<T>> | |
_TYPE | any_cast (TTKAny &&other) |
template<typename T , typename _TYPE = remove_cvr<T>> | |
_TYPE | any_cast (const TTKAny *const other) noexcept |
template<typename T , typename _TYPE = remove_cvr<T>> | |
_TYPE | any_cast (TTKAny *const other) noexcept |
static bool | isBase64 (unsigned char c) |
static TTKString | base64Encode (const unsigned char *bytes, unsigned int length) |
static TTKString | base64Decode (const TTKString &bytes) |
TTK_MODULE_EXPORT void | setApplicationFont () |
TTK_MODULE_EXPORT void | setBorderShadow (QWidget *widget, QPainter *painter) |
TTK_MODULE_EXPORT void | installLogHandler () |
TTK_MODULE_EXPORT void | removeLogHandler () |
template<typename T , typename... Args> | |
TTKSharedPtr< T > | make_shared (Args &&...args) |
template<typename T , typename U > | |
TTKSharedPtr< T > | static_pointer_cast (const TTKSharedPtr< U > &p) noexcept |
template<typename T , typename U > | |
TTKSharedPtr< T > | const_pointer_cast (const TTKSharedPtr< U > &p) noexcept |
template<typename T , typename U > | |
TTKSharedPtr< T > | dynamic_pointer_cast (const TTKSharedPtr< U > &p) noexcept |
template<typename T , typename U > | |
TTKSharedPtr< T > | reinterpret_pointer_cast (const TTKSharedPtr< U > &p) noexcept |
template<typename T > | |
std::shared_ptr< T > | makeCopy (const T *&source) |
template<typename T > | |
std::shared_ptr< T > | makeCopy (const std::shared_ptr< T > &source) |
TTK_MODULE_EXPORT void | initRandom () |
TTK_MODULE_EXPORT int | random (int value=RAND_MAX) |
static QString | applicationPath () |
static bool | endWith (const TTKString &value, const TTKString &tail) |
TTK_DECLARE_LIST (IndexProperty) | |
TTK_DECLARE_LIST (MusicSongProperty) | |
TTK_DECLARE_LIST (MusicArtistProperty) | |
TTK_DECLARE_LIST (MusicSongInformation) | |
static QString | configPath () |
static quint64 | directorySize (const QString &dirName) |
static void | checkCacheSize () |
static QString | languageCore (int index) |
static QString | languageQmmp (int index) |
TTK_MODULE_EXPORT bool | playlistRowValid (int index) |
TTK_MODULE_EXPORT QString | trackRelatedPath (const QString &path) |
TTK_MODULE_EXPORT QString | generateSongName (const QString &title, const QString &artist) |
TTK_MODULE_EXPORT QString | generateSongTitle (const QString &name, const QString &key=TTK_DEFAULT_STR) |
TTK_MODULE_EXPORT QString | generateSongArtist (const QString &name, const QString &key=TTK_DEFAULT_STR) |
TTK_MODULE_EXPORT MusicSongList | generateSongList (const QString &path) |
TTK_MODULE_EXPORT QString | generateNetworkSongTime (const QString &path) |
TTK_MODULE_EXPORT QString | generateNetworkSongPath (const QString &path) |
static bool | isCoverValid (const QString &url) |
TTK_MODULE_EXPORT QString | toString (Record type) |
MusicLrcColor | mapIndexToColor (MusicLrcColor::Color index) |
QList< QColor > | readColorConfig (const QString &value) |
QString | writeColorConfig (const QList< QColor > &colors) |
static QString | generateArtist (const QString &v) |
static QString | generateAlbum (const QString &v) |
static QString | generateYear (const QString &v) |
static QString | generateGenre (const QString &v) |
TTK_MODULE_EXPORT QStringList | supportAssociations () |
TTK_MODULE_EXPORT QStringList | unsupportAssociations () |
Variables | |
static const char * | base64_chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" |
The namespace of the process utils.
The namespace of the association helper.
The namespace of the application ui object.
The namespace of the lrc color helper.
The namespace of the utils widget.
The namespace of the utils url.
The namespace of the utils string.
The namespace of the utils ttk qmmp.
The namespace of the utils number.
The namespace of the utils image.
The namespace of the utils file.
The namespace of the utils core.
The namespace of the utils codec.
The namespace of the utils algorithm.
The namespace of the mode type data.
The namespace of the record type helper.
The namespace of the program type.
The namespace of the cover helper.
The namespace of the playlist helper.
The namespace of the application object.
The namespace of the random helper.
The namespace of the log output.
The namespace of the global defines.
The namespace of the global wrapper.
The namespace of the defer helper.
The namespace of the any helper.
The namespace of the network helper.
The namespace of the network data.
using TTK::remove_cvr = typedef typename std::remove_cv<typename std::remove_reference<T>::type>::type |
|
strong |
Enumerator | |
---|---|
No | |
Left | |
Top | |
Right | |
Bottom | |
LeftTop | |
LeftBottom | |
RightTop | |
RightBottom |
Definition at line 27 of file ttklibrary.h.
|
strong |
Enumerator | |
---|---|
Music |
type of dwonlaod music |
Lrc |
type of dwonlaod lrc |
Cover |
type of dwonlaod cover |
Background |
type of dwonlaod background |
Video |
type of dwonlaod video |
Other |
type of dwonlaod other user mod |
Definition at line 27 of file musicnetworkdefines.h.
|
strong |
Definition at line 182 of file musicobject.h.
|
strong |
Enumerator | |
---|---|
Check |
Song Check Mode |
Apply |
Song Apply Mode |
Definition at line 29 of file musicsongchecktoolsunit.h.
|
strong |
Enumerator | |
---|---|
Query |
Network state query |
Success |
Network state success |
Error |
Network state error |
UnKnow |
Network state unknow |
Definition at line 33 of file ttkabstractnetwork.h.
|
strong |
Enumerator | |
---|---|
Order |
play order mode |
Random |
play random mode |
ListLoop |
play list loop mode |
OneLoop |
play single loop mode |
Once |
play just once mode |
Definition at line 173 of file musicobject.h.
|
strong |
Enumerator | |
---|---|
Stopped |
stop state |
Playing |
play state |
Paused |
pause state |
Definition at line 166 of file musicobject.h.
|
strong |
Enumerator | |
---|---|
Recommed | |
Rank |
Definition at line 29 of file musicdjradioprogramrequest.h.
|
strong |
Enumerator | |
---|---|
None |
none quality |
Standard |
sd quality |
High |
hq quality |
Super |
sq quality |
Lossless |
cd quality |
Definition at line 193 of file musicobject.h.
|
strong |
|
strong |
Definition at line 71 of file ttkdefer.h.
|
inline |
Make any cast helper.
Definition at line 170 of file ttkany.h.
References TTKAny::cast(), and TTKAny::isSame().
|
inline |
Make any cast helper.
Definition at line 178 of file ttkany.h.
References TTKAny::cast(), and TTKAny::isSame().
|
inline |
|
inlinestatic |
Get application work dir.
Definition at line 44 of file ttkqtobject.h.
References TTK_SEPARATOR.
Referenced by MusicApplicationModule::applyParameter(), TTK::TTKQmmp::pluginPath(), and MusicRunTimeManager::run().
Bse64 decode.
Definition at line 79 of file ttkcryptographichash.cpp.
References base64_chars, and isBase64().
Referenced by TTKCryptographicHash::decrypt(), and TTKCryptographicHash::xxteaDecrypt().
Bse64 encode.
Definition at line 29 of file ttkcryptographichash.cpp.
References base64_chars.
Referenced by TTKCryptographicHash::encrypt(), and TTKCryptographicHash::xxteaEncrypt().
|
static |
Check download cachce size.
Definition at line 56 of file musicruntimemanager.cpp.
References directorySize(), MusicSettingManager::DownloadCacheEnable, MusicSettingManager::DownloadCacheSize, MusicSettingManager::DownloadMusicDirPath, G_SETTING_PTR, qAsConst, and TTK_SN_MB2B.
Referenced by MusicRunTimeManager::run().
|
inlinestatic |
Get application config dir.
Definition at line 305 of file musicobject.h.
References MAIN_DIR_FULL, and TTK_SEPARATOR.
|
inlinenoexcept |
Definition at line 168 of file ttksmartptr.h.
References T.
|
static |
Generate input directory size.
Definition at line 34 of file musicruntimemanager.cpp.
References qAsConst.
Referenced by checkCacheSize().
|
inlinenoexcept |
Definition at line 175 of file ttksmartptr.h.
References T.
Definition at line 13 of file ttkrunobject.cpp.
Referenced by TTKRunObject::run().
qint64 TTK::fetchFileSizeByUrl | ( | const QString & | url | ) |
Fetch download file size by url.
Definition at line 84 of file ttkabstractnetwork.cpp.
References TTKSemaphoreLoop::exec(), makeContentTypeHeader(), QtNetworkErrorVoidConnect, setSslConfiguration(), TTK_INFO_STREAM, and TTK_SLOT.
Referenced by MusicAbstractQueryRequest::fetchUrlPathSize().
|
inlinestatic |
Generate song album.
Definition at line 30 of file musiclocalmanagerwidget.cpp.
Referenced by MusicLocalManagerWidget::refreshItems().
|
inlinestatic |
Generate song artist.
Definition at line 23 of file musiclocalmanagerwidget.cpp.
Referenced by MusicLocalManagerWidget::refreshItems().
|
inlinestatic |
Generate song genre.
Definition at line 44 of file musiclocalmanagerwidget.cpp.
Referenced by MusicLocalManagerWidget::refreshItems().
QString TTK::generateNetworkSongPath | ( | const QString & | path | ) |
Generate network song path.
Definition at line 175 of file musicsong.cpp.
References CACHE_DIR_FULL, and TTK::String::isNetworkUrl().
Referenced by MusicPlaylist::currentMediaPath(), generateNetworkSongTime(), MusicSongsListItemInfoWidget::initialize(), MusicPlaylist::isSameMediaPath(), MusicSongsContainerWidget::removeItemAt(), and MusicApplication::removeItemAt().
QString TTK::generateNetworkSongTime | ( | const QString & | path | ) |
Generate network song play time.
Definition at line 169 of file musicsong.cpp.
References MusicSongMeta::duration(), generateNetworkSongPath(), MusicSongMeta::read(), and TTK_DEFAULT_STR.
Referenced by MusicTKPLConfigManager::writeBuffer().
QString TTK::generateSongArtist | ( | const QString & | name, |
const QString & | key = TTK_DEFAULT_STR |
||
) |
Get song artist name.
Definition at line 121 of file musicsong.cpp.
References name, and TTK::String::split().
Referenced by MusicSong::artist(), MusicDownloadStatusModule::checkArtistBackgroundValid(), MusicDownloadStatusModule::checkArtistCoverValid(), MusicSongsListPlayTableWidget::contextMenuEvent(), MusicDownloadStatusModule::currentMetaDataDownload(), MusicDownloadWidget::downLoadNormalFinished(), MusicLrcPosterItemWidget::drawTheme1(), MusicLrcPosterItemWidget::drawTheme11(), MusicLrcPosterItemWidget::drawTheme12(), MusicLrcPosterItemWidget::drawTheme13(), MusicLrcPosterItemWidget::drawTheme14(), MusicLrcPosterItemWidget::drawTheme15(), MusicLrcPosterItemWidget::drawTheme16(), MusicLrcPosterItemWidget::drawTheme17(), MusicLrcPosterItemWidget::drawTheme2(), MusicLrcPosterItemWidget::drawTheme3(), MusicLrcPosterItemWidget::drawTheme4(), MusicLrcPosterItemWidget::drawTheme5(), MusicLrcPosterItemWidget::drawTheme6(), MusicLrcPosterItemWidget::drawTheme7(), MusicLrcPosterItemWidget::drawTheme8(), MusicLrcPosterItemWidget::drawTheme9(), MusicSongsListPlayWidget::initialize(), MusicSongSharingWidget::initialize(), MusicBackgroundManager::setArtistName(), MusicLrcMakerWidget::setCurrentSongName(), MusicArtistQueryWidget::setCurrentValue(), MusicRemoteWidgetForComplexStyle::setLabelText(), and MusicSongsListPlayWidget::updateCurrentArtist().
MusicSongList TTK::generateSongList | ( | const QString & | path | ) |
Generate song playlist.
Definition at line 132 of file musicsong.cpp.
References MusicSongMeta::artist(), MusicSongMeta::duration(), MusicSongMeta::fileBasePath(), G_SETTING_PTR, generateSongName(), MusicFormats::isTrack(), LRC_FILE, TTK::String::lrcDirPrefix(), MusicSongMeta::lyrics(), name, MusicSettingManager::OtherReadFileInfo, MusicSongMeta::read(), MusicSongMeta::setSongMetaIndex(), MusicSongMeta::songMetaCount(), and MusicSongMeta::title().
Referenced by MusicSongsContainerWidget::dropEvent(), and MusicSongsContainerWidget::importSongsByPath().
Generate song name.
Definition at line 105 of file musicsong.cpp.
Referenced by MusicSongSearchTableWidget::addSearchMusicToPlaylist(), MusicIdentifySongWidget::createDetectedSuccessedWidget(), MusicItemQueryTableWidget::createResultItem(), MusicItemQueryTableWidget::downloadDataFrom(), generateSongList(), MusicVideoSearchTableWidget::itemDoubleClicked(), MusicWebFMRadioPlayWidget::lrcDownloadStateChanged(), MusicWebFMRadioPlayWidget::querySongInfoFinished(), MusicLocalManagerWidget::refreshItems(), MusicSongCheckToolsRenameThread::run(), MusicItemSearchTableWidget::searchActionClicked(), MusicSongSearchTableWidget::searchActionClicked(), and MusicVideoPlayWidget::videoResearchButtonSearched().
QString TTK::generateSongTitle | ( | const QString & | name, |
const QString & | key = TTK_DEFAULT_STR |
||
) |
Get song title name.
Definition at line 110 of file musicsong.cpp.
References name, and TTK::String::split().
Referenced by MusicSongsListPlayTableWidget::contextMenuEvent(), MusicDownloadStatusModule::currentMetaDataDownload(), MusicDownloadWidget::downLoadNormalFinished(), MusicLrcPosterItemWidget::drawTheme1(), MusicLrcPosterItemWidget::drawTheme11(), MusicLrcPosterItemWidget::drawTheme12(), MusicLrcPosterItemWidget::drawTheme13(), MusicLrcPosterItemWidget::drawTheme14(), MusicLrcPosterItemWidget::drawTheme15(), MusicLrcPosterItemWidget::drawTheme16(), MusicLrcPosterItemWidget::drawTheme17(), MusicLrcPosterItemWidget::drawTheme2(), MusicLrcPosterItemWidget::drawTheme3(), MusicLrcPosterItemWidget::drawTheme4(), MusicLrcPosterItemWidget::drawTheme5(), MusicLrcPosterItemWidget::drawTheme6(), MusicLrcPosterItemWidget::drawTheme7(), MusicLrcPosterItemWidget::drawTheme8(), MusicLrcPosterItemWidget::drawTheme9(), MusicSongsListPlayWidget::initialize(), MusicLrcMakerWidget::setCurrentSongName(), MusicRecommendQueryWidget::setCurrentValue(), MusicSimilarQueryWidget::setCurrentValue(), MusicRemoteWidgetForComplexStyle::setLabelText(), MusicSong::title(), and MusicSongsListPlayWidget::updateCurrentArtist().
|
inlinestatic |
Generate song year.
Definition at line 37 of file musiclocalmanagerwidget.cpp.
Referenced by MusicLocalManagerWidget::refreshItems().
void TTK::initRandom | ( | ) |
Init random value seed.
Definition at line 7 of file ttktime.cpp.
Referenced by MusicBarrageWidget::addBarrage(), MusicBarrageWidget::createLabel(), QAlgorithm::CubeWavePrivate::CubeWavePrivate(), MusicDesktopWallpaperThread::MusicDesktopWallpaperThread(), MusicDiscoverListRequest::MusicDiscoverListRequest(), MusicMPRISPlayerCore::MusicMPRISPlayerCore(), MusicNetworkTestThread::MusicNetworkTestThread(), MusicPlaylist::MusicPlaylist(), MusicTransitionAnimationLabel::MusicTransitionAnimationLabel(), and MusicVideoSearchTableWidget::MusicVideoSearchTableWidget().
void TTK::installLogHandler | ( | ) |
Install log output handler.
Definition at line 174 of file ttklogoutput.cpp.
References TTKSingleton< T >::instance().
Referenced by MusicApplicationModule::applyParameter().
|
inlinestatic |
Char is base64 or not.
Definition at line 13 of file ttkcryptographichash.cpp.
References isalnum.
Referenced by base64Decode().
|
inlinestatic |
Check current url is valid or not.
Definition at line 59 of file musiccoverrequest.h.
References TTK_DEFAULT_STR, and TTK_NULL_STR.
Referenced by MusicAlbumQueryWidget::createAlbumItem(), MusicArtistQueryWidget::createArtistItem(), MusicWebMVRadioInfoWidget::createMVRadioProgramItem(), MusicWebDJRadioInfoWidget::createProgramCategoryItem(), MusicWebDJRadioProgramTableWidget::createProgramItem(), MusicSongSharingWidget::initialize(), MusicArtistAlbumsItemWidget::setResultDataItem(), MusicWebDJRadioQueryItemWidget::setResultDataItem(), MusicWebDJRadioCategoryItemWidget::setResultDataItem(), MusicWebMVRadioQueryItemWidget::setResultDataItem(), MusicPlaylistQueryItemWidget::setResultDataItem(), MusicPlaylistQueryInfoWidget::setResultDataItem(), and MusicPersonalRadioQueryWidget::setResultDataItem().
TTK_MODULE_EXPORT void TTK::killProcessByName | ( | const QString & | process | ) |
Kill process by name.
Referenced by cleanupCache(), and MusicCoreMPlayer::closeModule().
TTK_MODULE_EXPORT void TTK::killProcessByName | ( | const QStringList & | processes | ) |
Kill process by name list.
|
static |
Generate core language resource.
Definition at line 82 of file musicruntimemanager.cpp.
References LANGUAGE_DIR_FULL.
Referenced by MusicRunTimeManager::translator().
|
static |
Generate qmmp language resource.
Definition at line 94 of file musicruntimemanager.cpp.
References LANGUAGE_DIR_FULL.
Referenced by MusicRunTimeManager::translator().
|
inline |
|
inline |
Definition at line 155 of file ttksmartptr.h.
void TTK::makeContentTypeHeader | ( | QNetworkRequest * | request, |
const QByteArray & | data = {} |
||
) |
Make request Content-Type header.
Definition at line 79 of file ttkabstractnetwork.cpp.
Referenced by MusicTXDownloadBackgroundRequest::downLoadUrl(), fetchFileSizeByUrl(), makeRequestRawHeader(), ReqBLInterface::makeRequestRawHeader(), ReqKWInterface::makeRequestRawHeader(), ReqKGInterface::makeRequestRawHeader(), ReqWYInterface::makeRequestRawHeader(), MusicDownloadQueueRequest::MusicDownloadQueueRequest(), MusicUnityQueryMovieRequest::startToPage(), MusicDJRadioProgramCategoryRequest::startToPage(), MusicDownLoadTextRequest::startToRequest(), MusicKWDownloadBackgroundRequest::startToRequest(), MusicCiBaRequest::startToRequest(), MusicKWDownLoadTextRequest::startToRequest(), MusicBingTranslationRequest::startToRequest(), MusicWYTranslationRequest::startToRequest(), MusicYDTranslationRequest::startToRequest(), MusicKGDownloadBackgroundRequest::startToRequest(), MusicBPDownloadBackgroundRequest::startToRequest(), MusicPVCounterRequest::startToRequest(), MusicBDTranslationRequest::startToRequest(), MusicWYDownLoadTextRequest::startToRequest(), MusicResourceRequest::startToRequest(), MusicDataSourceRequest::startToRequest(), MusicIdentifySongRequest::startToRequest(), MusicTXDownloadBackgroundRequest::startToRequest(), MusicKWDownLoadCoverRequest::startToRequest(), MusicDownloadDataRequest::startToRequest(), and MusicSongRecommendRequest::startToSearch().
|
inline |
Definition at line 201 of file ttksmartptr.h.
|
inline |
Definition at line 207 of file ttksmartptr.h.
void TTK::makeUserAgentHeader | ( | QNetworkRequest * | request, |
const QByteArray & | data = {} |
||
) |
Make request User-Agent header.
Definition at line 74 of file ttkabstractnetwork.cpp.
Referenced by ReqKWInterface::makeRequestRawHeader(), MusicBingTranslationRequest::startToRequest(), and MusicDataSourceRequest::startToRequest().
MusicLrcColor TTK::mapIndexToColor | ( | MusicLrcColor::Color | index | ) |
Map index to color.
Definition at line 20 of file musiclrcmanager.cpp.
References MusicLrcColor::DBlack, MusicLrcColor::DBlue, MusicLrcColor::DGreen, MusicLrcColor::DPurple, MusicLrcColor::DRed, MusicLrcColor::DWhite, MusicLrcColor::DYellow, MusicLrcColor::IBlue, MusicLrcColor::IGray, MusicLrcColor::IGreen, MusicLrcColor::IIndigo, MusicLrcColor::IOrange, MusicLrcColor::IPink, MusicLrcColor::IPurple, MusicLrcColor::IRed, and MusicLrcColor::IYellow.
Referenced by MusicSettingWidget::lrcColorByDefault(), MusicLrcMakerWidget::setItemStyleSheet(), and MusicLrcContainer::setLinearGradientColor().
Definition at line 33 of file ttkcompat.h.
Referenced by std::clamp(), compress2(), gz_comp(), gz_load(), inflate_table(), MusicLrcAnalysis::setLineMax(), MusicTextSliderWidget::setMaxValue(), MusicTimeSliderWidget::sliderMovedAt(), MusicSongSharingWidget::textAreaChanged(), and uncompress2().
Definition at line 27 of file ttkcompat.h.
Referenced by std::clamp(), TTKTime::formatDuration(), TTKTime::fromValue(), inflate_table(), TTKTime::setMinute(), and TTKTime::TTKTime().
bool TTK::playlistRowValid | ( | int | index | ) |
Check current song playlist row is valid or not.
Definition at line 95 of file musicsong.cpp.
References MUSIC_LOVEST_LIST, MUSIC_NETWORK_LIST, and MUSIC_RECENT_LIST.
Referenced by MusicSongsListPlayTableWidget::createUploadFileModule(), MusicSongsContainerWidget::deleteRowItems(), MusicSongsContainerWidget::dragMoveEvent(), MusicSongsContainerWidget::dropEvent(), MusicSongsToolBoxTopWidget::isItemEnabled(), MusicSongsToolBoxWidget::makeValidIndex(), MusicSongsToolBoxTopWidget::paintEvent(), MusicSongItemSelectedAreaWidget::selectedSongItems(), and MusicSongsToolBoxTopWidget::showMenu().
Get random value.
Definition at line 14 of file ttktime.cpp.
Referenced by MusicBarrageAnimation::animationFinished(), MusicScreenSaverBackgroundWidget::backgroundTimeout(), MusicAlbumQueryWidget::createLabels(), MusicArtistQueryWidget::createLabels(), MusicKGDiscoverListRequest::downLoadFinished(), MusicKWDiscoverListRequest::downLoadFinished(), MusicWYDiscoverListRequest::downLoadFinished(), MusicBarrageAnimation::initialize(), QAlgorithm::CubeWave::input(), MusicItemSearchTableWidget::randSimulation(), MusicNetworkTestThread::run(), MusicTransitionAnimationLabel::setPixmap(), MusicDesktopWallpaperThread::setRandom(), MusicPlaylistQueryInfoWidget::setResultDataItem(), MusicBarrageAnimation::setSize(), MusicDesktopWallpaperThread::timeout(), and MusicMPRISPlayerCore::updateTrackID().
QList< QColor > TTK::readColorConfig | ( | const QString & | value | ) |
Transform colors string to color list.
Definition at line 127 of file musiclrcmanager.cpp.
References qAsConst, and QtSkipEmptyParts.
Referenced by MusicLrcContainer::applyParameter(), MusicSettingWidget::initialize(), MusicLrcContainerForWallpaper::setItemStyleSheet(), MusicLrcContainerForInterior::setItemStyleSheet(), and MusicLrcMakerWidget::setItemStyleSheet().
|
inlinenoexcept |
Definition at line 182 of file ttksmartptr.h.
References T.
void TTK::removeLogHandler | ( | ) |
Remove log output handler.
Definition at line 179 of file ttklogoutput.cpp.
References TTKSingleton< T >::instance().
Referenced by MusicApplicationModule::applyParameter().
void TTK::setApplicationFont | ( | ) |
Set application font.
Definition at line 10 of file ttkglobalwrapper.cpp.
References TTK_INFO_STREAM.
Referenced by main().
void TTK::setBorderShadow | ( | QWidget * | widget, |
QPainter * | painter | ||
) |
Set widget border shadow.
Definition at line 28 of file ttkglobalwrapper.cpp.
Referenced by TTKAbstractMoveDialog::paintEvent(), TTKAbstractMoveWidget::paintEvent(), MusicProgressWidget::paintEvent(), and MusicScreenSaverHoverItem::paintEvent().
void TTK::setSslConfiguration | ( | QNetworkRequest * | request, |
QSslSocket::PeerVerifyMode | mode = QSslSocket::VerifyNone |
||
) |
Set request ssl configuration.
Definition at line 117 of file ttkabstractnetwork.cpp.
Referenced by MusicTXDownloadBackgroundRequest::downLoadUrl(), fetchFileSizeByUrl(), makeRequestRawHeader(), ReqBLInterface::makeRequestRawHeader(), ReqKWInterface::makeRequestRawHeader(), ReqKGInterface::makeRequestRawHeader(), ReqWYInterface::makeRequestRawHeader(), MusicDownloadQueueRequest::MusicDownloadQueueRequest(), parseSongPropertyA(), parseSongPropertyB(), MusicUnityQueryMovieRequest::startToPage(), MusicDJRadioProgramCategoryRequest::startToPage(), MusicPVCounterRequest::startToRequest(), MusicCiBaRequest::startToRequest(), MusicKWDownloadBackgroundRequest::startToRequest(), MusicDownLoadTextRequest::startToRequest(), MusicKWDownLoadTextRequest::startToRequest(), MusicWYTranslationRequest::startToRequest(), MusicYDTranslationRequest::startToRequest(), MusicKGDownloadBackgroundRequest::startToRequest(), MusicBingTranslationRequest::startToRequest(), MusicBPDownloadBackgroundRequest::startToRequest(), MusicBDTranslationRequest::startToRequest(), MusicWYDownLoadTextRequest::startToRequest(), MusicResourceRequest::startToRequest(), MusicDataSourceRequest::startToRequest(), MusicIdentifySongRequest::startToRequest(), MusicTXDownloadBackgroundRequest::startToRequest(), MusicKWDownLoadCoverRequest::startToRequest(), MusicDownloadDataRequest::startToRequest(), and MusicSongRecommendRequest::startToSearch().
|
inlinenoexcept |
Definition at line 161 of file ttksmartptr.h.
References T.
QStringList TTK::supportAssociations | ( | ) |
Get current support association files.
Definition at line 125 of file musicfileassociationwidget.cpp.
References MusicFormats::supportMusicFormats(), and unsupportAssociations().
Referenced by MusicApplicationModule::applyParameter().
QByteArray TTK::syncNetworkQueryForGet | ( | QNetworkRequest * | request | ) |
Sync network query for get.
Definition at line 129 of file ttkabstractnetwork.cpp.
References TTKSemaphoreLoop::exec(), QtNetworkErrorVoidConnect, TTK_INFO_STREAM, and TTK_SLOT.
Referenced by ReqKGInterface::parseFromMovieInfo(), ReqKWInterface::parseFromMovieInfo(), ReqBLInterface::parseFromMovieInfo(), ReqKGInterface::parseFromMovieProperty(), ReqKWInterface::parseFromMovieProperty(), ReqBLInterface::parseFromMovieProperty(), ReqKGInterface::parseFromSongAlbumInfo(), ReqKGInterface::parseFromSongAlbumLrc(), parseSongPropertyA(), parseSongPropertyB(), parseSongPropertyV1(), parseSongPropertyV2(), parseSongPropertyV3(), MusicKGQueryArtistRequest::queryArtistIntro(), MusicKWQueryArtistRequest::queryArtistIntro(), MusicKGQueryToplistRequest::queryToplistInfo(), MusicKWQueryToplistRequest::queryToplistInfo(), MusicKGQueryPlaylistRequest::startToQueryInfo(), MusicKWQueryPlaylistRequest::startToQueryInfo(), MusicBingTranslationRequest::startToRequest(), MusicPVCounterRequest::startToRequest(), MusicYDTranslationRequest::startToRequest(), and MusicKWDownLoadCoverRequest::startToRequest().
QByteArray TTK::syncNetworkQueryForPatch | ( | QNetworkRequest * | request, |
const QByteArray & | data | ||
) |
Sync network query for patch.
Definition at line 189 of file ttkabstractnetwork.cpp.
References TTKSemaphoreLoop::exec(), QtNetworkErrorVoidConnect, TTK_INFO_STREAM, and TTK_SLOT.
QByteArray TTK::syncNetworkQueryForPost | ( | QNetworkRequest * | request, |
const QByteArray & | data | ||
) |
Sync network query for post.
Definition at line 149 of file ttkabstractnetwork.cpp.
References TTKSemaphoreLoop::exec(), QtNetworkErrorVoidConnect, TTK_INFO_STREAM, and TTK_SLOT.
Referenced by MusicWYQueryArtistMovieRequest::parseFromArtistMoviesCount(), MusicWYQueryMovieRequest::parseFromMovieList(), ReqWYInterface::parseFromMovieProperty(), MusicWYQueryMovieRequest::parseFromVideoList(), parseSongPropertyV2(), parseSongPropertyV3(), MusicWYQueryArtistRequest::queryArtistIntro(), ToolFM::startToListRequest(), and MusicWYQueryPlaylistRequest::startToQueryInfo().
QByteArray TTK::syncNetworkQueryForPut | ( | QNetworkRequest * | request, |
const QByteArray & | data | ||
) |
Sync network query for put.
Definition at line 169 of file ttkabstractnetwork.cpp.
References TTKSemaphoreLoop::exec(), QtNetworkErrorVoidConnect, TTK_INFO_STREAM, and TTK_SLOT.
QString TTK::toString | ( | Record | type | ) |
Mapping file path from enum type.
Definition at line 3 of file musicdownloadrecordconfigmanager.cpp.
References CLOUD_DOWN_PATH_FULL, CLOUD_UP_PATH_FULL, CloudDownload, CloudUpload, NORMAL_DOWN_PATH_FULL, and NormalDownload.
Referenced by MusicKGQueryPlaylistRequest::downloadDetailsFinished(), MusicWYQueryPlaylistRequest::downloadDetailsFinished(), MusicKWQueryPlaylistRequest::downloadDetailsFinished(), MusicDJRadioProgramCategoryRequest::downloadDetailsFinished(), MusicMVRadioCategoryRequest::downLoadFinished(), MusicMVRadioProgramRequest::downLoadFinished(), MusicKWDiscoverListRequest::downLoadFinished(), MusicKWDownLoadTextRequest::downLoadFinished(), MusicBarrageRequest::downLoadFinished(), MusicDownloadBingSkinRequest::downLoadFinished(), MusicResourceRequest::downLoadFinished(), MusicBDTranslationRequest::downLoadFinished(), MusicBingTranslationRequest::downLoadFinished(), MusicKWSongCommentsRequest::downLoadFinished(), MusicSongRecommendRequest::downLoadFinished(), MusicKGSongCommentsRequest::downLoadFinished(), MusicKGQueryArtistRequest::downLoadFinished(), MusicSongSuggestRequest::downLoadFinished(), MusicWYQueryAlbumRequest::downLoadFinished(), MusicWYQueryArtistRequest::downLoadFinished(), MusicKWQueryAlbumRequest::downLoadFinished(), MusicKWQueryArtistRequest::downLoadFinished(), MusicFMRadioSongRequest::downLoadFinished(), MusicKGQueryArtistListRequest::downLoadFinished(), MusicKWQueryToplistRequest::downLoadFinished(), MusicKGQueryToplistRequest::downLoadFinished(), MusicWYQueryMovieRequest::downLoadFinished(), MusicWYQueryRequest::downLoadFinished(), MusicWYQueryToplistRequest::downLoadFinished(), MusicKGQueryMovieRequest::downLoadFinished(), MusicKWQueryMovieRequest::downLoadFinished(), MusicKGQueryRequest::downLoadFinished(), MusicKWQueryRequest::downLoadFinished(), MusicDownloadBirdSkinRequest::downLoadFinished(), MusicKWQueryPlaylistRequest::downLoadFinished(), MusicIdentifySongRequest::downLoadFinished(), MusicKWPlaylistCommentsRequest::downLoadFinished(), MusicKGPlaylistCommentsRequest::downLoadFinished(), MusicWYQueryArtistAlbumRequest::downLoadFinished(), MusicKWQueryArtistAlbumRequest::downLoadFinished(), MusicKGQueryArtistAlbumRequest::downLoadFinished(), MusicKWQueryPlaylistRequest::downloadMoreDetailsFinished(), MusicIdentifySongRequest::downLoadRawDataFinished(), MusicKWQueryRequest::downLoadSingleFinished(), MusicKGQueryRequest::downLoadSingleFinished(), MusicWYQueryRequest::downLoadSingleFinished(), MusicUnityQueryMovieRequest::downLoadUnityFinished(), MusicTranslationRequest::findAllPlugins(), MusicMPRISPlayerCore::metadata(), ReqKWInterface::parseFromMovieInfo(), MusicWYQueryMovieRequest::parseFromMovieList(), ReqKGInterface::parseFromMovieProperty(), ReqKGInterface::parseFromSongAlbumInfo(), ReqKGInterface::parseFromSongAlbumLrc(), ReqLQInterface::parseFromSongProperty(), MusicWYQueryMovieRequest::parseFromVideoList(), parseSongPropertyA(), MusicKWQueryArtistRequest::queryArtistIntro(), MusicWYQueryArtistRequest::queryArtistIntro(), MusicJSPFConfigManager::readBuffer(), MusicKGQueryPlaylistRequest::startToQueryInfo(), MusicWYTranslationRequest::startToRequest(), MusicCiBaRequest::startToRequest(), MusicDownloadWidget::startToRequestMusic(), MusicAbstractDownloadTableWidget::updateSongsList(), QHttpResponsePrivate::writeHeaders(), and MusicAbstractDownloadTableWidget::~MusicAbstractDownloadTableWidget().
QString TTK::trackRelatedPath | ( | const QString & | path | ) |
Remove track info in path.
Definition at line 100 of file musicsong.cpp.
References MusicFormats::isTrack(), and TrackInfo::pathFromUrl().
Referenced by MusicSong::MusicSong(), and MusicFileInformationWidget::openFileDir().
TTK::TTK_DECLARE_LIST | ( | IndexProperty | ) |
TTK::TTK_DECLARE_LIST | ( | MusicSongProperty | ) |
TTK::TTK_DECLARE_LIST | ( | MusicArtistProperty | ) |
TTK::TTK_DECLARE_LIST | ( | MusicSongInformation | ) |
QStringList TTK::unsupportAssociations | ( | ) |
Get current unsupport association files.
Definition at line 139 of file musicfileassociationwidget.cpp.
References MusicSettingManager::FileAssociationValue, and G_SETTING_PTR.
Referenced by MusicApplicationModule::applyParameter(), and supportAssociations().
QString TTK::writeColorConfig | ( | const QList< QColor > & | colors | ) |
Transform color list to colors string.
Definition at line 143 of file musiclrcmanager.cpp.
References qAsConst.
Referenced by MusicSettingWidget::saveParameterSettings().
|
static |
Definition at line 8 of file ttkcryptographichash.cpp.
Referenced by base64Decode(), and base64Encode().