TTKMusicPlayer  4.3.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
musickgqueryinterface.h
Go to the documentation of this file.
1 #ifndef MUSICKGQUERYINTERFACE_H
2 #define MUSICKGQUERYINTERFACE_H
3 
4 /***************************************************************************
5  * This file is part of the TTK Music Player project
6  * Copyright (C) 2015 - 2026 Greedysky Studio
7 
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 3 of the License, or
11  * (at your option) any later version.
12 
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17 
18  * You should have received a copy of the GNU General Public License along
19  * with this program; If not, see <http://www.gnu.org/licenses/>.
20  ***************************************************************************/
21 
22 #include "musicglobaldefine.h"
23 
24 static constexpr const char *KG_SEARCH_URL = "ZGdSV3NWWE1CY3hDT2FMMXNqOW5uTXExZzc2Q1RFN1FMcUp2ZEdnRFpOMVE5QjloaUlXSjIyVmZaZHFsRnd2WDFxbVFjRUNzVVZhMU5HbzFUd3R5NU5aSHVoMzVMS0NOQ3NleStXUGNiU0RZNjZtdU5zb2N1Z2FBSEtVL2JGa2JqcllOekZrMHQ2QmpWREgvN2lKaFk3d2NRUkVpYkJ5UkxETDhuUlVUSVhaODFNN3dyUGhRbVZUN01CNnFxZmlqRE5wS2l3PT0=";
25 static constexpr const char *KG_SONG_LRC_URL = "Yld5K1Rac2JFc3d0YThTbnluN2RkQ0U0bjBWQkxSQWJGNDZoT2xvUERFdEUzV0RkalhjbVpYT1FGcmY0UlZJTDRoTHFMMklXNWRsdyswcG5XYzArUlJ6bHhoWXdyQ3JtSXRiWEdXbE53dXNjcU1QMzRBNFBhMDdWOE95eVVURG5KRHRPNFE9PQ==";
26 static constexpr const char *KG_SONG_INFO_URL = "dnVZTEYrYXgxcWkvT2dmWHdLNE1oMUZURStIKytVSnBIMzVXUlk2cVkyaURGcEl1WVRZa2lIRE13dTVSQ0JUcWwwM0hkUT09";
27 static constexpr const char *KG_MOVIE_INFO_URL = "ajJaR0tsRUUzcUE0ZnZGYmhhR205TkwvUGFMcSt3RU5RaGhqQVFEelRjemRVR3RKNjBEVXJzaWFCU2NFNExoaTFFcDI5bkpMQlRnZlRmWHcvQS9DNzVNNGw4ek1pM2NoTjN4QVBYME4zWkxBME94Mg==";
28 static constexpr const char *KG_TOPLIST_URL = "OHd0ZFEzSHlaVTE5K2tibnN0Rk5naDZmbXNTM1l5bjVTVndQbVJ0OTBPTmY0VytpK0FCaVpoQmpIOThMdnhzazJsaUczSXRQamxFTExaTUZNUWlMWlVsYUVERHNzS3NydldUR0xRbXJjVVk9";
29 
30 class QNetworkRequest;
31 struct MusicResultDataItem;
32 
36 namespace ReqKGInterface
37 {
41  void makeRequestRawHeader(QNetworkRequest *request) noexcept;
42 
46  QString makeSongArtist(const QString &name);
50  QString makeSongArtist(const QString &in, const QString &name);
51 
56 
60  void parseFromSongAlbumInfo(TTK::MusicSongInformation *info, const QString &album);
64  void parseFromSongAlbumInfo(MusicResultDataItem *item, const QString &hash, const QString &album);
65 
69  void parseFromSongProperty(TTK::MusicSongInformation *info, int bitrate);
73  void parseFromSongProperty(TTK::MusicSongInformation *info, const QVariantMap &key);
74 
75 }
76 
77 #endif // MUSICKGQUERYINTERFACE_H
The class of the search result data item.
static constexpr const char * KG_SONG_INFO_URL
QString makeSongArtist(const QString &name)
static constexpr const char * KG_SEARCH_URL
The namespace of the kugou request interface.
const char * name
Definition: http_parser.c:458
static constexpr wchar_t key[]
static constexpr const char * KG_SONG_LRC_URL
void parseFromSongAlbumLrc(TTK::MusicSongInformation *info)
static constexpr const char * KG_MOVIE_INFO_URL
void parseFromSongAlbumInfo(TTK::MusicSongInformation *info, const QString &album)
void parseFromSongProperty(TTK::MusicSongInformation *info, int bitrate)
static constexpr const char * KG_TOPLIST_URL
void makeRequestRawHeader(QNetworkRequest *request) noexcept
The class of the music song information.
Definition: musicobject.h:300