TTKMusicPlayer  4.3.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
musickwqueryinterface.h
Go to the documentation of this file.
1 #ifndef MUSICKWQUERYINTERFACE_H
2 #define MUSICKWQUERYINTERFACE_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 //TG5KazFERHlYc3hzS1JQd29ldXVEOWVRdGh2dmx0RWxma3I5cnRxekptRjdKM0NvQXo1bzV5c1ZpRDB2WGZ1UQ==
25 static constexpr const char *KW_SEARCH_URL = "azRpTk56R3ZhTXY5dk13YzFkaHJkMzRFY3NpRkRmUGdyUnQyWVY5NXNvOE82cUE4Mmg0VklKTTQrRFV0dEZHTExUSkJvTkRXMGdQVEpaK0Z4Rkp6ZUkrUnh1T29iSG1mTUxCNkRmMlVFT25zVzhjQUs1K0VCZk9UMWpTWGovMWR0czNlN0Z0Y1kyUCtxYlZSK3R3YnU3VTZ6dlkwanJIdGN6RWdjWEhxSi96ekRNWjBMMEMrL3JCUGxRQWJ6YkltQkRGeGljR3c4TmgxaXBXcGhzcnZlZ1p5cldlNzZTc1ZlZDFvUDcxTmtDdlJqY3JU";
26 static constexpr const char *KW_SONG_LRC_URL = "a2VZMjN2anovdkJJR2tmckthZmI2c1M4N0ZqOWN6WGcrbHBXbllJdnRWcS9JUnp4ZWIrTXpGODFETkVFN25QZ0lZc21HRC85bjdQWWI3b3I=";
27 static constexpr const char *KW_SONG_INFO_URL = "TjVRY3FwbGZRUkpITGYyczVUSGZ0MG14bEs4VEsyY3VJZE80S0lhSkF6b0p5UWsxSEl5aWpUNzdHY252aEhpSDAwZHhTR3UvM2J0ZlJ2dmc5SDRDa1ZBSGhLZy9SY2UrMllkUjJpUGtmWTA9";
28 static constexpr const char *KW_ALBUM_COVER_INFO_URL = "S0Z0Z0dTckV1TysxVnRGem43cU96Q0RRUVhiTS93RVhyNUFTNWNqOEduMDdMalZ1cCtGKzRudHRFcDB0enJ0bXI0VG5QVWMwQU1UKzRRdGc5clZPZ1NwKzRINjZoaDluWVAzVXpMWXlaemQvYnNjd1JwcmM5NGQ5VFhVU3k2SjE=";
29 static constexpr const char *KW_TOPLIST_URL = "T2QyOWl3WmttZlk1SnM4NFZ6S1BoZjhGQnV5Y0lHbm9nUDlEZUR1bDJRcmNITVZIVWxZT2YvYWtSQWxXQ1JjWE9DNjQydDdQRTQzZkZvclFOL25vd2JIUjl1T1RvRzFFOEFPSVFPVWQ0ZUR4dUVBbFYzbjhwUXdSQ09teFBucjA=";
30 
31 class QNetworkRequest;
32 
36 namespace ReqKWInterface
37 {
41  void makeRequestRawHeader(QNetworkRequest *request) noexcept;
42 
46  QString makeSongArtist(const QString &name);
50  QString makeSongArtist(const QString &in, const QString &name);
54  QString makeArtistPixmapUrl(const QString &url);
58  QString makeCoverPixmapUrl(const QString &url, const QString &id);
62  void parseFromSongProperty(TTK::MusicSongInformation *info, int bitrate);
66  void parseFromSongProperty(TTK::MusicSongInformation *info, const QString &format);
67 
68 }
69 
70 #endif // MUSICKWQUERYINTERFACE_H
static constexpr const char * KW_ALBUM_COVER_INFO_URL
QString makeCoverPixmapUrl(const QString &url, const QString &id)
static constexpr const char * KW_SEARCH_URL
static constexpr const char * KW_SONG_LRC_URL
const char * name
Definition: http_parser.c:458
QString makeArtistPixmapUrl(const QString &url)
QString makeSongArtist(const QString &name)
void makeRequestRawHeader(QNetworkRequest *request) noexcept
The namespace of the kuwo request interface.
static constexpr const char * KW_TOPLIST_URL
static constexpr const char * KW_SONG_INFO_URL
void parseFromSongProperty(TTK::MusicSongInformation *info, int bitrate)
The class of the music song information.
Definition: musicobject.h:300